Skip to main content

A Python command line tool to automatically setup and upload your package to PyPi.

Project description

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

Project details


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-setup-1.0.0.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

auto_pypi_setup-1.0.0-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file auto-pypi-setup-1.0.0.tar.gz.

File metadata

  • Download URL: auto-pypi-setup-1.0.0.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.15

File hashes

Hashes for auto-pypi-setup-1.0.0.tar.gz
Algorithm Hash digest
SHA256 a5b7374dd90a05a4de5e1f3906d3fb888e6e35263b1cb079b0bfdba606d3846c
MD5 3fb06fcdfb31bb325fcdfc3d57dd4697
BLAKE2b-256 0711198b57bc2fecce6b78302bbdc15c652cac3b27eb8b071240ad2fb442ef10

See more details on using hashes here.

File details

Details for the file auto_pypi_setup-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for auto_pypi_setup-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7b7f3e160cb49e2004b9bc6f9a1b443e57bddf927eb0d5acb8e74eb6b638cb80
MD5 552b1bb8b9510e1319ad21fa4e1d3d1a
BLAKE2b-256 f824f7e060d8db6daa45c8859591239f50119b0b9ca4e55f700e45838ba89dbc

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page