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 (e.g. <package>/__init__.py)

  2. Create .asc files if --sign option is specified

  3. Create a git tag from the package version information
    • GPG signing to the git tag if --sign option is specified

  4. Push git tags

  5. 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]
...

prerequisite: package binaries must bein in the dist/ directory.

Specify version manually

You can specify a vesion manually by --version option even if ./<package name>/__version__.py file does not exists.

$ python setup.py release --version 0.1.0
[create a git tag: v0.1.0]
[push git tags]
[upload packages to PyPI]

Create a GPG signed tag and upload packages

$ python setup.py release --sign
running release
[get the version from ./releasecmd/__version__.py]
[create a .asc file for releasecmd-0.1.0.tar.gz]
[create a .asc file for releasecmd-0.1.0-py2.py3-none-any.whl]
[create a git tag with gpg signing: v0.1.0]
[push git tags]
[upload packages to PyPI]
...

Skip create a git tag and upload packages

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

Dependencies

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.2.0.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

releasecmd-0.2.0-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: releasecmd-0.2.0.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.1

File hashes

Hashes for releasecmd-0.2.0.tar.gz
Algorithm Hash digest
SHA256 f63042778583e6061d78d3316181e0a681108c1b8194fb033b9b609fb4f09646
MD5 437c495a3736015bbfc6f31b8f19afb5
BLAKE2b-256 c764bc01fdc6783d6d73771182aeb645d5c32a80294f285746d557cc93b171c2

See more details on using hashes here.

File details

Details for the file releasecmd-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: releasecmd-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.1

File hashes

Hashes for releasecmd-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1fed06080a8d81322aa63b744edbafa937fecc78204502483d183225312b7c7a
MD5 d5add6092f0b2f041bbb1afa97424845
BLAKE2b-256 fd712a822c93ed0a1914a918452c4caaf49ea4821367bbb8140a2b6876db6e7d

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