Generate a base setup.py file to upload a python package to pypi
Install
pip install pip-init
Usage
pip-init
I created a setup.py file, what are the next steps?
What are the next steps to upload a package to pypi?
Create or edit the python code of your package:
mkdir package_code $EDITOR package_code/__init__.py
Create an account on the PyPI website.
Create a ~/.pypirc file
[pypi] repository = https://pypi.python.org/pypi username = <username> password = <password>
Register and upload your package to pypi
python setup.py register python setup.py sdist upload -r pypi
References
Contributors
Metadata
Release files for pip-init 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 |
|---|---|---|---|---|
| pip-init-0.1.0.tar.gz | 3.0 kB | Without provenance | Details for pip-init-0.1.0.tar.gz |
Release files / pip-init-0.1.0.tar.gz
| Download URL | pip-init-0.1.0.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
44b1fa5b13cbe305d472ae0bd0fb43670f88a9a45e77cb1216cd6e014ae2a110
|
|
BLAKE2b-256 checksum How to use checksums |
1fcf146b30c08f190ba2bba3487744711e9ed8c22bc2bce7330a6b28824d75c0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pip-init 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.