gonna learnz how to uploadz dem packagez
note how package name on PYPI doesn't have to be the same as X in IMPORT X
- pypi packge name is just what you choose and will impact pip install that_name
- IMPORT X depends on the name of the folder you have in the package
Steps:
- Create package folder (typically same name as host folder)
- Create empty init.py inside
- Create README.me - for longer docs you should use https://readthedocs.org/
- Create setup.py - fill out as in here
- Create MANIFEST.in - which describes not source code files to include / exclude
- To install packages you will need to run: pip install twine
- Packages in pypi are not distributed as raw source code. Instead they are wrapped into a format called "wheel". It's like a zip archive. To create a "wheel" for your packeg run: python setup.py sdist bdist_wheel
- List the contents of your pakage to make sure they're correct tar tzf dist/realpython_pypi_tut_AS_APPEAR_ON_PYPI-1.0.0.tar.gz
- Check that your package description will render properly on pypi twine check dist/*
- Upload your package! twine upload --repository-url https://test.pypi.org/legacy/ dist/*
- Remember to remove dist files between uploading new versions!
Metadata
Release files for rp_pypi_tut_flit 0.1.0
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 |
|---|---|---|---|---|
| rp_pypi_tut_flit-0.1.0.tar.gz | 1.9 kB | Without provenance | Details for rp_pypi_tut_flit-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| rp_pypi_tut_flit-0.1.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for rp_pypi_tut_flit-0.1.0-py2.py3-none-any.whl |
Total release size: 4.6 kB
Release files / rp_pypi_tut_flit-0.1.0.tar.gz
| Download URL | rp_pypi_tut_flit-0.1.0.tar.gz |
|---|---|
| Size | 1.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8ffbf842927ce312db84b2234a2b88e2e311326d73f1c9b3f8250e81a849ba39
|
|
BLAKE2b-256 checksum How to use checksums |
9f2bd4c0432df3e858758c17475fd9b51c7cc6f0f0d061e47d35a213db172d4c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.23.0
|
Release files / rp_pypi_tut_flit-0.1.0-py2.py3-none-any.whl
| Download URL | rp_pypi_tut_flit-0.1.0-py2.py3-none-any.whl |
|---|---|
| Size | 2.6 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
fcc89d592e87bff03bb58036c32159e4a179188f6fbde08f3723d675c3673cae
|
|
BLAKE2b-256 checksum How to use checksums |
3cc2487e410a13ec1254c539368f6850448c4a587f083e1e8ae6e20c0afb71a1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.23.0
|
Security for rp_pypi_tut_flit 0.1.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.