Skip to content
This repository was archived by the owner on Dec 20, 2022. It is now read-only.

Notes on uploading to pypi

Andrew Ang edited this page Jan 16, 2019 · 7 revisions

python packaging notes

Assumes use of docker-based build enviornment with twine/setuptools_scm installed.

Ensure current working copy is the version/branch you want to upload:

  • Check current git branch, tag
  • With setuptools_scm and docker environment:
docker-compose run app python -c "from setuptools_scm import get_version; print(get_version())"

Build distribution

python setup.py sdist bdist_wheel

# upload to test
twine upload --repository testpypi dist/*
# or ... dist/alosi/x.x.x*

# upload to pypi
twine upload dist/*

Clone this wiki locally