Skip to main content

PyPI Version PyPI Platform PyPI License PyPI Doc

Mac OS Linux

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




Sen LEI Website Sen LEI Github

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

auto_pypi-2.0.6.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

auto_pypi-2.0.6-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

Details for the file auto_pypi-2.0.6.tar.gz.

File metadata

  • Download URL: auto_pypi-2.0.6.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.6

File hashes

Hashes for auto_pypi-2.0.6.tar.gz
Algorithm Hash digest
SHA256 843ce3548f370201a3508a0bda8e5bee72220f2515965f29f82e765a03339106
MD5 ca26110c9f47779d3f2ec983145cf019
BLAKE2b-256 ec04a0f6b12f6c80f1166f671067bcd69735c7a62874a52f9b0cf77a4e48c81a

See more details on using hashes here.

File details

Details for the file auto_pypi-2.0.6-py3-none-any.whl.

File metadata

  • Download URL: auto_pypi-2.0.6-py3-none-any.whl
  • Upload date:
  • Size: 7.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.6

File hashes

Hashes for auto_pypi-2.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 4c66808e385ad0c00ea0aacc3c828ede3bf44af094f11a9d9ca466e32f5868dc
MD5 e85e006454ad2c475f77f6446a2b5114
BLAKE2b-256 2f166b22bd5fd34d56a2bf3cd1bb27f4d7795cabee09097acd19c15f70cf02cb

See more details on using hashes here.

Release history Release notifications | RSS feed

2.2.2

2 files

2.2.1

2 files

2.2.0

2 files

2.1.1

2 files

2.1.0

2 files

2.0.7

2 files

This release

2.0.6 This release

2 files

2.0.5

2 files

2.0.4

2 files

2.0.3

2 files

2.0.2

2 files

2.0.1

2 files

2.0.0

2 files

1.0.3

2 files

1.0.2

2 files

1.0.1

2 files

1.0.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page