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:
python3 -m pip install --upgrade buildpython3 -m build
3. python3 -m pip install --upgrade twine
4a. python3 -m twine upload --repository testpypi dist/* uploads to test
4b. twine upload dist/* uploads to production
5a. python3 -m pip install --index-url https://test.pypi.org/simple/ --no-deps example-pkg-YOUR-USERNAME-HERE to install from test
5b. python3 -m pip install dapt to install from production
To clean up after a release:
- Navigate to the misc folder
cd misc - Make the
clean_after_release.shscript runnable (chmod + clean_after_release.sh) - Run the script (
./clean_after_release.sh)