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 itself:
-
if using Github Milestones:
loghub spyder-ide/loghub -ilg type:feature "Features " -ilg type:enhancement "Enhancements" -ilg type:bug "Bugs fixed" -ilr "reso:completed" --no-prs -u <github-username> -m <github-milestone>
-
if using ZenHub Releases:
loghub spyder-ide/loghub -ilg type:feature "Features " -ilg type:enhancement "Enhancements" -ilg type:bug "Bugs fixed" -ilr "reso:completed" --no-prs -u <github-username> -zr <zenhub-release> -zt <zenhub-token>
-
-
Update version in
__init__.py
(set release version, remove 'dev0') -
Commit changes
git add . git commit -m "Set release version"
-
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 version'
-
Update
__init__.py
(add 'dev0' and increment minor) -
Commint changes
git add . git commit -m "Restore dev version"
-
Push changes
git push upstream master git push origin master git push --tags
- Update recipe on the loghub feedstock: https://github.com/conda-forge/loghub-feedstock