You need to have conda
install since the process relies on conda environments.
Make sure your current environment has rever installed.
conda install rever -c conda-forge
Run checks before to make sure things are in order.
rever check
Delete the rever/
folder to start a clean release.
rm -rf rever/
Run rever with the type version (major|minor|patch|MAJOR.MINOR.PATCH) to update.
If the current version is 3.0.0.dev0
, running:
rever major
Will produce version 4.0.0
and update the dev version to 4.0.0.dev0
If the current version is 3.0.0.dev0
, running:
rever minor
Will produce version 3.1.0
and update the dev version to 3.1.0.dev0
If the current version is 3.0.0.dev0
, running:
rever patch
Will produce version 3.0.1
and update the dev version to 3.0.1.dev0
If the current version is 3.0.0.dev0
, running:
rever 5.0.1
Will produce version 5.0.1
and update the dev version to 5.0.1.dev0
- In case some of the steps appear as completed, delete the
rever
folder.
rm -rf rever/
- Some of the intermediate steps may ask for feedback, like checking the changelog.
- Ensure you have the latest version from upstream and update your fork
git pull upstream master
git push origin master
- Clean the repo
git clean -xfdi
- Update CHANGELOG.md using loghub
loghub spyder-ide/qtsass -zr <release>
-
Update version in
__init__.py
(set release version, remove 'dev0') -
Commit changes
git add .
git commit -m "Release X.X.X"
- Create distributions
python setup.py sdist bdist_wheel
- Upload distributions
twine upload dist/* -u <username> -p <password>
- Add release tag
git tag -a vX.X.X -m "Release X.X.X"
-
Update
__init__.py
(add 'dev0' and increment minor) -
Commint changes
git add .
git commit -m "Back to work"
- Push changes
git push upstream master
git push origin master
git push --tags
- Update recipe on the qtsass feedstock