Releasing a New Version
Follow the first steps from Using Git and GitHub to Contribute, where the issue is named "vX.Y.Z Version Release".
Increase the version number inside
pyproject.toml
.Place the same version number inside the
VERSION
constant frommutablesecurity/__init__.py
.Update
CHANGELOG.md
.Upload the new release to TestPyPi with the commands below, where
<testpypi_token>
is the TestPyPi token.poetry config repositories.test-pypi https://test.pypi.org/legacy/
poetry config pypi-token.test-pypi <testpypi_token>
poetry publish --build --dry-run --username mutablesecurity --repository test-pypi
poetry publish --build --username mutablesecurity --repository test-pypiInstall MutableSecurity in a test environment by running
pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple mutablesecurity
.Test the functionalities introduced by the release.
Follow the steps 5-9 from Using Git and GitHub to Contribute.
Once you ensure that all is properly functioning, upload to PyPi by using the command below, where
<pypi_token>
is the PyPi token.poetry config pypi-token.pypi <pypi_token>
poetry publish --build --dry-run --username mutablesecurity
poetry publish --build --username mutablesecurityUpdate the PEX executable using the guide.
Update the Debian package using the guide.
Create a new GitHub release by:
- Creating a new tag in the format
vX.Y.Z
. - Setting the title to be the same as the created tag
- Placing the version's CHANGELOG section in the description
- Uploading the PEX executable (named
mutablesecutity
) and the Debian package (namedmutablesecurity.deb
).
- Creating a new tag in the format
Update the Debian repository using the guide