Skip to main content

releasecmd is a release subcommand for setup.py (setuptools.setup). the subcommand create a git tag and push, and upload packages to PyPI.

Project description

releasecmd

PyPI package version Supported Python versions

Summary

releasecmd is a release subcommand for setup.py (setuptools.setup). The subcommand create a git tag and push, and upload packages to PyPI.

The subcommand class (releasecmd.ReleaseCommand) is implemented as a subclass of setuptools.Command class. The release subcommand does the followings:

  1. Find a file that defined the package version

  2. Create a git tag from the package version information

  3. Push git tags

  4. Upload package files to PyPI by using twine

Example

$ python setup.py release
running release
[get the version from ./releasecmd/__version__.py]
[create a git tag: v0.0.15]
[push git tags]
[upload the package to PyPI]
...

Before execute, need to exist uploading binaries in dist/ directory.

Create a GPG signed tag

$ python setup.py release --sign
running release
[get the version from ./releasecmd/__version__.py]
[create a git tag with gpg signing: v0.0.15]
[push git tags]
[upload the package to PyPI]
...

Skip create a git tag

$ python setup.py release --skip-tagging
running release
[get the version from ./releasecmd/__version__.py]
[push git tags]
[upload the package to PyPI]
...

Dependencies

Python 2.7+ or 3.5+

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

releasecmd-0.0.20.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

releasecmd-0.0.20-py2.py3-none-any.whl (5.1 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file releasecmd-0.0.20.tar.gz.

File metadata

  • Download URL: releasecmd-0.0.20.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for releasecmd-0.0.20.tar.gz
Algorithm Hash digest
SHA256 132b52803ea4abf1937a8614bfc5357e883d7bd3700353861f8bd8f598a2973c
MD5 277482e5cea77c6f5603962ef721e590
BLAKE2b-256 d81ad3a617e0aa981fb68cf81453d15f40a31032046f10653eb7f1f5da66fb4d

See more details on using hashes here.

File details

Details for the file releasecmd-0.0.20-py2.py3-none-any.whl.

File metadata

  • Download URL: releasecmd-0.0.20-py2.py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for releasecmd-0.0.20-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 3631f84e0e7fb910c04499f9b017b1df853d5b30a3d874023cf459cf73898329
MD5 6bf88d79e84b1485ee93ca78dfc4d590
BLAKE2b-256 202d4723162c1494aa6a5ef6a472bbcca871b55863a09a14726b7d171ea738f8

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