Skip to content
Ling Li edited this page May 27, 2020 · 5 revisions

Welcome to the drf-api-tracking wiki!

Release procedure

Update the file: rest_framework_tracking/__init__.py with updated version number commit to repo and create a new tag with the same version number run:

python setup.py sdist

If you have not installed the dependencies you can do so with pipenv:

python3 -m venv ~/venv/drf
source ~/venv/drf/bin/activate
python3 -m pip install pipfile 
pipenv install 

configure you ~/.pypirc file like this:

[distutils]
index-servers =
  pypi
  pypitest

[pypi]
repository: https://upload.pypi.org/legacy/
username: YOUR_USERNAME_HERE
password: YOUR_PASSWORD_HERE

[pypitest]
repository: https://test.pypi.org/legacy/
username: YOUR_USERNAME_HERE or use __token__
password: YOUR_PASSWORD_HERE or generate token api on pypi

# then using twine (pipenv install twine)

Test upload on pypi test server as you can't remove incorrect packages/version numbers once uploaded

# using twine (pip install twine):
twine upload dist/* -r pypitest
# upload to production:
twine upload dist/* -r pypi

You may need to update you keyring on linux and also be permissioned to the repo in pypi.org.

Clone this wiki locally