Skip to content
Ling Li edited this page Feb 3, 2020 · 3 revisions

Welcome to the drf-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://pypi.python.org/pypi
username: YOUR_USERNAME_HERE
password: YOUR_PASSWORD_HERE

[pypitest]
repository: https://testpypi.python.org/pypi
username: YOUR_USERNAME_HERE
password: YOUR_PASSWORD_HERE
then using twine (pipenv install twine)

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

python setup.py register -r pypitest   # register package with pypi 
python setup.py sdist upload -r pypitest

# or using 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