Updates

Guide for pushing updates

  1. Install requirements by running pip install twine
  2. Test the code locally be running pip install . in the root directory.
  3. Update the version in setup.py file.
  4. Run python3 setup.py sdist bdist_wheel.
  5. Run twine upload dist/*.

New way (test):

  1. python3 -m pip install --upgrade build
  2. python3 -m build
  3. python3 -m pip install --upgrade twine
  4. python3 -m twine upload --repository testpypi dist/* uploads to test
  5. python3 -m pip install --index-url https://test.pypi.org/simple/ --no-deps example-pkg-YOUR-USERNAME-HERE to install from test

New way (production):

  1. python3 -m pip install --upgrade build
  2. python3 -m build
  3. python3 -m pip install --upgrade twine
  4. twine upload dist/* uploads to production
  5. python3 -m pip install dapt to install from production