-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #33 from fyndata/develop
Release
- Loading branch information
Showing
8 changed files
with
155 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[bumpversion] | ||
current_version = 0.5.0 | ||
current_version = 0.5.1 | ||
commit = True | ||
tag = True | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,4 @@ | |
""" | ||
|
||
|
||
__version__ = '0.5.0' | ||
__version__ = '0.5.1' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,127 @@ | ||
=================== | ||
Project maintenance | ||
=================== | ||
|
||
Release new version | ||
------------------- | ||
|
||
0) Sync with remote | ||
+++++++++++++++++++ | ||
|
||
(local workstation) | ||
|
||
Make sure main branches are synced with local ones, and tests pass:: | ||
|
||
make -s clean | ||
test -z "$(git status --porcelain)" && echo 'CLEAN' || echo 'DIRTY' | ||
git checkout master | ||
git push | ||
git checkout develop | ||
git push | ||
|
||
Then wait for the | ||
`CircleCI tests (develop) <https://circleci.com/gh/fyndata/workflows/lib-cl-sii-python/tree/develop>`_ | ||
and verify they were successful. | ||
|
||
1) Update changelog | ||
+++++++++++++++++++ | ||
|
||
(local workstation) | ||
|
||
Generate summary:: | ||
|
||
git lg-github-pr-summary master..develop | ||
|
||
Add new entry to changelog including the changes summary (remember to format as reST):: | ||
|
||
nano 'HISTORY.rst' | ||
git add 'HISTORY.rst' | ||
git commit -m "HISTORY: update for new version" | ||
|
||
2) Bump package version | ||
+++++++++++++++++++ | ||
|
||
(local workstation) | ||
|
||
Either of the following alternatives:: | ||
|
||
bumpversion major|minor|patch | ||
bumpversion --new-version 'X.Y.Z' | ||
|
||
Push commit ``abcd1234`` and tag ``vX.Y.Z`` automatically created by ``bumpversion``:: | ||
|
||
git push | ||
git push --tags | ||
|
||
3) Create pull request and new release | ||
+++++++++++++++++++ | ||
|
||
(GitHub) | ||
|
||
* Create PR for | ||
`master...develop <https://github.com/fyndata/lib-cl-sii-python/compare/master...develop>`_. | ||
|
||
* Name: "Release". | ||
|
||
* Labels: ``kind: release``. | ||
|
||
* Description: same as the new changelog entry (remember to format as Markdown). | ||
|
||
* Merge PR. | ||
|
||
* Go to the CircleCI job named ``ci/circleci: dist`` corresponding to commit ``abcd1234`` | ||
(tagged ``vX.Y.Z``), tab "Artifacts", and download the generated package files to local repo | ||
directory ``dist/``: | ||
|
||
* ``cl-sii-X.Y.Z.tar.gz`` | ||
|
||
* ``cl_sii-X.Y.Z-py3-none-any.whl`` | ||
|
||
* Create new release: | ||
|
||
* Go to the repo's | ||
`"Releases/tags" section <https://github.com/fyndata/lib-cl-sii-python/tags>`_. | ||
|
||
* Create release for the new tag just pushed. | ||
|
||
* Title: ``vX.Y.Z``. | ||
|
||
* Description: same as the PR just created. | ||
|
||
* For the new GitHub release, add the files downloaded to ``dist/``. | ||
|
||
* "Publish release". | ||
|
||
4) Publish to PyPI | ||
+++++++++++++++++++ | ||
|
||
(local workstation) | ||
|
||
Run:: | ||
|
||
make upload-release | ||
make -s clean | ||
|
||
Check out the `project's page at PyPI <https://pypi.org/project/cl-sii/>`_. | ||
|
||
5) Update ``develop`` | ||
+++++++++++++++++++ | ||
|
||
(local workstation) | ||
|
||
Update ``develop`` from ``master``:: | ||
|
||
git checkout master | ||
git pull | ||
git checkout develop | ||
git merge --ff master | ||
git push | ||
|
||
Appendix | ||
-------- | ||
|
||
Add git alias:: | ||
|
||
git config --global alias.lg-github-pr-summary \ | ||
'!f() { git log --date=short --merges --grep "^Merge pull request #[[:digit:]]* from" --pretty="tformat:- (%C(auto,red)<S>%s</S>%C(reset), %C(auto,green)%ad%C(reset)) %w(72,0,2)%b" "$@" | sed -E "s|<S>Merge pull request (#[0-9]+) from .+</S>|PR \1|"; }; f' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters