@@ -43,26 +43,28 @@ install-test: clean-build ## Install test extra dependencies.
4343install-dev : clean-build # # Install development extra dependencies.
4444 @echo " Installing development requirements..."
4545 @$(PYTHON_PIP ) install -e .' [development]' -r requirements.txt
46+
47+ install-deploy : clean-build # # Install deploy extra dependencies.
48+ @echo " Installing deploy extra requirements..."
49+ @$(PYTHON_PIP ) install -e .' [deploy]'
4650
4751update-requirements : # # Updates the requirement.txt adding missing package dependencies
4852 @echo " Syncing the package requirements.txt..."
4953 @$(PIP_COMPILE )
5054
51- release-to-pypi : clean-build increase-version # # Release project to pypi
52- @$(PYTHON_PIP ) install -U twine wheel
53- @$(PYTHON ) setup.py sdist bdist_wheel
54- @twine check dist/*
55- @twine upload dist/*
56- @git push --tags
57- @git push
58-
5955# ----------------------------------------------------------
60- # ---------- Upgrade project version (bump2version) --------
56+ # ---------- Release the project to PyPI ----------- --------
6157# ----------------------------------------------------------
62- increase-version : clean-build guard-PART # # Bump the project version (using the $PART env: defaults to 'patch').
63- @echo " Increasing project '$( PART) ' version..."
64- @$(PYTHON_PIP ) install -q -e .' [deploy]'
65- @bump2version --verbose $(PART )
58+ increase-version : guard-PART # # Increase project version
59+ @bump2version $(PART )
60+ @git switch -c main
61+
62+ dist : clean # # builds source and wheel package
63+ @pip install build twine
64+ @python -m build
65+
66+ release : dist # # package and upload a release
67+ @twine upload dist/*
6668
6769# ----------------------------------------------------------
6870# --------- Run project Test -------------------------------
0 commit comments