Skip to main content

Publish python package to PyPI and Github

Project description

Build Status Codacy Quality Badge Codacy Coverage Badge

publish is a tool to package and release a python project. It will create a changelog and upload artifacts to Github and PyPI.

It is created for and by the FIAAS project, and used for most of our projects.

Usage

In order to use publish, you must first install it:

pip install publish

Under the covers, publish uses github-release and twine to do most of the work, and those tools require credentials for Github and PyPI to be available in environment variables:

export GITHUB_TOKEN=gh-token
export TWINE_USERNAME=pypi-user
export TWINE_PASSWORD=pypi-pass

In order to know where to upload the artifacts, you must specify an organization, and a repository:

publish fiaas k8s

Before uploading anything, publish will verify that the current checkout is suitable to be released, and checks the following items:

  • Are all files either ignored or in version control?

  • Is every change committed?

  • Is the currently checked out code tagged with an annotated tag?

  • Does that tag use the convention v<major>.<minor>.<bugfix>?

If the answer to all of these is yes, the name of the tag is used as the version to release. A changelog is generated from the git log, source tarballs and wheels are built, the release is created in Github and PyPI, and the files are uploaded.

Changes since last version

  • ec150cb: Change name to fiaas-publish, and use githubrelease library

  • 8569bc2: Set a returncode to reflect errors when uploading artifacts

  • a2879ac: Bump versions of 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

fiaas-publish-0.2.0.tar.gz (13.5 kB view details)

Uploaded Source

Built Distribution

fiaas_publish-0.2.0-py2.py3-none-any.whl (6.0 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file fiaas-publish-0.2.0.tar.gz.

File metadata

  • Download URL: fiaas-publish-0.2.0.tar.gz
  • Upload date:
  • Size: 13.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.29.0 CPython/3.4.3

File hashes

Hashes for fiaas-publish-0.2.0.tar.gz
Algorithm Hash digest
SHA256 39705b2363642dafdb89145d2d4447966c4687815eed78d09690bc5efc0b9bb9
MD5 99cad06b3693032abd903fbce45f5431
BLAKE2b-256 3ecb7caed81977b0c0be5ed7c33c7ac7d2810b2d7c9a815e03dd9cbd5319ecb5

See more details on using hashes here.

File details

Details for the file fiaas_publish-0.2.0-py2.py3-none-any.whl.

File metadata

  • Download URL: fiaas_publish-0.2.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.29.0 CPython/3.4.3

File hashes

Hashes for fiaas_publish-0.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 64a0ad0bfb8343bfe12bffdb54e931c3ae5d3ea8a65249b0ebd7fd66653b0914
MD5 8be63d7914edbc45724bf235317bd6b5
BLAKE2b-256 2f82768b045ed80d45ad57342d9115be17e19b81ac8ad87f4075d332f2252a8e

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