My very first library python
- Tutorial from
https://www.youtube.com/watch?v=KTaLs494xgo&list=PLyb_C2HpOQSB3z_4WliKt56WyDgfXzzMz
https://realpython.com/pypi-publish-python-package/
- Install requirements to build library
pip3 install wheel
pip3 install twine
- Build your packages
python3 setup.py sdist bdist_wheel
- Check the distribution
twine check dist/*
===> If passed ==> Now we goonna published to website
- TestPyPI: Test python package publishing before publishes on Python Package Index
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
- If you are using ubuntu, maybe you will get this error from commandline
....
from keyring.util.escape import escape as escape_for_ini
ModuleNotFoundError: No module named 'keyring.util.escape'
pip3 install --upgrade keyrings.alt
- PyPI: Find, install and publish python packages with PPI
twine upload --repository-url https://upload.pypi.org/legacy/ dist/*
Metadata
Release files for tn-weather-reporter 0.1.1
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 | Actions |
|---|---|---|---|---|
| tn_weather_reporter-0.1.1.tar.gz | 3.4 kB | Without provenance | Details for tn_weather_reporter-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tn_weather_reporter-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for tn_weather_reporter-0.1.1-py3-none-any.whl |
Total release size: 7.5 kB
Release files / tn_weather_reporter-0.1.1.tar.gz
| Download URL | tn_weather_reporter-0.1.1.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d74fae2cf0cc30f3021de171d51a344f203ffde99dfec672cf23018156819409
|
|
BLAKE2b-256 checksum How to use checksums |
65c221ade2aac0827ecf2bba454c5680a58c80a49ac313a88663c5f10e37d460
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.6.9
|
Release files / tn_weather_reporter-0.1.1-py3-none-any.whl
| Download URL | tn_weather_reporter-0.1.1-py3-none-any.whl |
|---|---|
| Size | 4.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8b7f3561115f6eac4b36bbc8d9fd83057cc79764eff67342ab7a1cbcebcf55a1
|
|
BLAKE2b-256 checksum How to use checksums |
0799363d959ccd547bdab0850bc7ae799c096f38f944d4c96564f82cfe351234
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.6.9
|
Security for tn-weather-reporter 0.1.1
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.