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 buildpython3 -m buildpython3 -m pip install --upgrade twinepython3 -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-HEREto install from test
New way (production):
python3 -m pip install --upgrade buildpython3 -m buildpython3 -m pip install --upgrade twinetwine upload dist/*uploads to productionpython3 -m pip install daptto install from production