Auto-PyPi Command Line Tool
Why Should I Use This?
This is a Python command line tool to automatically setup your (updated version) python package onto PyPi.
As you may know, PyPi indexes (both real and test index) do not allow you to reuse package name (considering version numner), which means you can not upload your package with the same package name together with an identical version numner.
In another word, you have to change the version number in your setup.py file before each time you want to upload your modified package. What’s more, you also need to remove the old build and egg folder before you run the setup tools.
You’ll find it not convenient at all if you are uploading and testing your package frequently. Even if you are not going to upload and test frequently, each time you remove the previous setup related folders comes with some risks and is still time-consuming.
By using this command line tool, you will be all set after a single command autopypi. The only thing you need to care about now is the package version number.
You could chage the version number in the setup.py file as usual, but I highly recommend you to change a little bit in your setup.py file making the version number as an input value from the terminal:
version_number = input("Input the new version number you are going to use: ")
setuptools.setup(
name="auto_pypi",
version=version_number,
author="Sen LEI",
...)
By doing this, you just need to run the command autopypi, and specify a version number later when it pops up.
Usage
Use As A Command Line Tool
Just run autopypi in terminal, providing your package’s location and new version number later:
Usage: autopypi [OPTIONS] PKG_DIR
Python command line tool to setup Python package automatically.
Example: $ autopypi your-package-root-directory -r
Example: $ cd your-package-root-directory
$ autopypi . -r
Options:
-r, --real Use the real PyPi index (instead of test PyPi).
--help Show this message and exit.
Then you’ll be asked to input the username and passcode of PyPi / Test-PyPi as usual.
Documentation
Check out the latest auto_pypi documentation at Read the Docs
Metadata
Release files for auto-pypi 2.2.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 | Actions |
|---|---|---|---|---|
| auto_pypi-2.2.2.tar.gz | 7.7 kB | Without provenance | Details for auto_pypi-2.2.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| auto_pypi-2.2.2-py3-none-any.whl | Python 3 | none | any | Details for auto_pypi-2.2.2-py3-none-any.whl |
Total release size: 15.6 kB
Release files / auto_pypi-2.2.2.tar.gz
| Download URL | auto_pypi-2.2.2.tar.gz |
|---|---|
| Size | 7.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c9f1154ed7339104af06df9729dbbe185e1f994f1b7e7ed7294cfc6ab1c29bef
|
|
BLAKE2b-256 checksum How to use checksums |
4a30da9224a2a100b2e82b14acc143b80144c890be6074cabc13f2e5fada86a3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8
|
Release files / auto_pypi-2.2.2-py3-none-any.whl
| Download URL | auto_pypi-2.2.2-py3-none-any.whl |
|---|---|
| Size | 7.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4691b5f81e81587a8e4647120d5aadf4a02a8a29892ed6236c1249a42a6fea74
|
|
BLAKE2b-256 checksum How to use checksums |
1305d27e19be727ec5da7d5c74c43f0b4f499007c28c5630d8cb3a79ceadda4a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8
|
Security for auto-pypi 2.2.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.