Skip to main content

play_py37_package

Python3.7 で packageを作ってみる手順。 またその手順によって作成された、package。

init

python3 -m venv venv
. venv/bin/activate
(venv) $ pip install -U pip

play local

(venv) $ pip install -e .
(venv) $ pip list
(venv) $ python
>>> import py37nashiki
>>> py37nashiki.main()
This is pynashiki

配布作成 (ソースコード形式)

(venv) $ python setup.py sdist
(venv) $ ls dist
py37nashiki-1.0.0.tar.gz

配布物作成 (wheel)

(venv) $ pip install wheel==0.33.6
(venv) $ python setup.py bdist_wheel
(venv) $ ls dist
py37nashiki-1.0.0-py3-none-any.whl  py37nashiki-1.0.0.tar.gz

配布 (test)

(venv) $ pip install twine==2.0.0
(venv) $ twine upload -r testpypi dist/*
(venv) $ pip install -i https://test.pypi.org/simple/ py37nashiki

配布 (本番)

(venv) $ deactive
python3 -m venv newenv
. newenv/bin/activate
(newenv) $ pip install -U pip
(newenv) $ pip install wheel==0.33.6
(newenv) $ python setup.py sdist 
(newenv) $ python setup.py bdist_wheel
(newenv) $ ls dist 
(newenv) $ pip install twine==2.0.0 
(newenv) $ twine upload -r pypi dist/*
(newenv) $ pip install py37nashiki

後片付け

$ deactivate
$ rm -rf venv
$ rm -rf newenv

License

MIT

Metadata

Release files for py37nashiki 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for py37nashiki 1.0.0
File Size Uploaded Provenance Actions
py37nashiki-1.0.0.tar.gz 2.7 kB Without provenance Details for py37nashiki-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for py37nashiki 1.0.0
File Interpreter ABI Platform Actions
py37nashiki-1.0.0-py3-none-any.whl Python 3 none any Details for py37nashiki-1.0.0-py3-none-any.whl

Total release size: 5.2 kB

Release files / py37nashiki-1.0.0.tar.gz

Download URL py37nashiki-1.0.0.tar.gz
Size 2.7 kB
Tags Source
SHA-256 checksum
How to use checksums
808a0a3f28a48235229f908e9d527608a98bfdf7917b5008ab963d164925114e
BLAKE2b-256 checksum
How to use checksums
ec58f293e20b4dd881432013d7d2eda82b40aa39477534ba8c1875af4db88623
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.3

Release files / py37nashiki-1.0.0-py3-none-any.whl

Download URL py37nashiki-1.0.0-py3-none-any.whl
Size 2.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
18e73853bf19347f5c0a2c374c9e5f277d38360ade7e47098c7f8504fe195c9c
BLAKE2b-256 checksum
How to use checksums
76179ba76480770df82756eddb5cb6585b390792f808c06b35bce8d8a3d9c3ca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.3

Security for py37nashiki 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page