First time only.
mkdir myproject
cd myproject/
python -m venv venv
source venv/bin/activate
git clone [email protected]:username/myproject.git
cd myproject/
python setup.py install
source venv/bin/activate
First time only!
pip install django black tox sphinx sphinx-autobuild sphinx_rtd_theme wheel twine
Make changes.
django-admin test myproject.tests --settings="myproject.tests.settings"
black .
sphinx-autobuild docs/ docs/_build_html
Make changes to docs/<file>.rst
. Confirm at 127.0.0.1:8000.
git add .
git commit -m "Added feature"
git push origin main
Confirm continuous integration results.
nano setup.py # change point release
git add .
git commit -m "Bumped version"
git push origin main
python setup.py sdist bdist_wheel # maybe use `python -m build` instead?
twine check dist/*
twine upload -r testpypi dist/*
twine upload dist/*
deactivate