pydanny / cookiecutter-djangopackage

A cookiecutter template for creating reusable Django packages quickly.
435 stars 152 forks source link

In case you're wondering how to deploy to Test PyPI/PyPI given the current out-of-the-box deployment setup... #448

Closed webyneter closed 4 years ago

webyneter commented 6 years ago

...here's the workflow I followed to deploy a demo cookiecutter-djangopackage-based project to Test PyPI and PyPI:

# Make sure your package name is somewhat unique (yeah, sounds silly but you got the point) like abc_def123456

pip install -r ./requirements_dev.txt
# Remove [bumpversion:file:setup.py] from setup.cfg
bumpversion minor
git push origin master
git push --tags origin

# https://packaging.python.org/tutorials/packaging-projects/
python3 -m pip install --user --upgrade setuptools wheel
make clean
python3 setup.py sdist bdist_wheel
python3 -m pip install --user --upgrade twine
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
twine upload dist/*
stardust85 commented 4 years ago

yes, I also believe we should update Makefile target 'release' to use twine