Updates¶
Guide for pushing updates¶
- Install requirements by running
pip install twine
- Test the code locally be running
pip install .
in the root directory. - Update the version in setup.py file.
- Run
python3 setup.py sdist bdist_wheel
. - Run
twine upload dist/*
.
New way (test):
python3 -m pip install --upgrade build
python3 -m build
python3 -m pip install --upgrade twine
python3 -m twine upload --repository testpypi dist/*
uploads to testpython3 -m pip install --index-url https://test.pypi.org/simple/ --no-deps example-pkg-YOUR-USERNAME-HERE
to install from test
New way (production):
python3 -m pip install --upgrade build
python3 -m build
python3 -m pip install --upgrade twine
twine upload dist/*
uploads to productionpython3 -m pip install dapt
to install from production