Hello World
Just working through the "Hello World" example on how to publish a python module to PyPI from Publishing (Perfect) Python Packages on PyPi
Source Code: https://github.com/judy2k/publishing_python_packages_talk
Build the pip package
pipenv install -e .
pipenv install --dev 'pytest>=3.7'
pipenv shell
# (helloworld)
pytest
Source Distribution
# (helloworld)
python setup.py sdist
..writes dist/helloworld-msusol-0.0.1.tar.gz
tar tzf dist/helloworld-msusol-0.0.1.tar.gz
helloworld-msusol-0.0.1/
helloworld-msusol-0.0.1/LICENSE
helloworld-msusol-0.0.1/MANIFEST.in
helloworld-msusol-0.0.1/PKG-INFO
helloworld-msusol-0.0.1/Pipfile
helloworld-msusol-0.0.1/Pipfile.lock
helloworld-msusol-0.0.1/README.md
helloworld-msusol-0.0.1/pyproject.toml
helloworld-msusol-0.0.1/setup.cfg
helloworld-msusol-0.0.1/setup.py
helloworld-msusol-0.0.1/src/
helloworld-msusol-0.0.1/src/helloworld.py
helloworld-msusol-0.0.1/src/helloworld_msusol.egg-info/
helloworld-msusol-0.0.1/src/helloworld_msusol.egg-info/PKG-INFO
helloworld-msusol-0.0.1/src/helloworld_msusol.egg-info/SOURCES.txt
helloworld-msusol-0.0.1/src/helloworld_msusol.egg-info/dependency_links.txt
helloworld-msusol-0.0.1/src/helloworld_msusol.egg-info/requires.txt
helloworld-msusol-0.0.1/src/helloworld_msusol.egg-info/top_level.txt
helloworld-msusol-0.0.1/test_helloworld.py
helloworld-msusol-0.0.1/tox.ini
Publish
twine check dist/*
twine upload --repository-url https://upload.pypi.org/legacy/ dist/*
...Uploading distributions to https://upload.pypi.org/legacy/
...Enter your username:
...Enter your password:
...Uploading helloworld-msusol-0.0.1.tar.gz
Now available at: https://pypi.org/project/helloworld-msusol/
Installation
Run the following to install:
pip install helloworld-msusol
Usage
from helloworld import say_hello
# Generate "Hello, World!"
say_hello()
# Generate "Hello, Everybody!"
say_hello("Everybody")
Metadata
Release files for helloworld-msusol 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| helloworld-msusol-0.0.2.tar.gz | 6.9 kB | Without provenance | Details |
Release files / helloworld-msusol-0.0.2.tar.gz
| Download URL | helloworld-msusol-0.0.2.tar.gz |
|---|---|
| Size | 6.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
777dade5771c11635eec67d786acd0a3c22117b1f4304b247f2e6f975b2ef026
|
|
BLAKE2b-256 checksum How to use checksums |
62b99b2892838e47ce9261999a2a19c7767576509bf66b23fc0f5171978a620d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.1.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.0
|
Security for helloworld-msusol 0.0.2
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.