Skip to content

Commit

Permalink
Merge pull request #143 from andthum/chore/release/v0.0.2.0
Browse files Browse the repository at this point in the history
Prepare new release `0.0.2.0`
  • Loading branch information
andthum authored Feb 9, 2023
2 parents 5e516d2 + 076df84 commit 37efbf7
Show file tree
Hide file tree
Showing 5 changed files with 66 additions and 20 deletions.
15 changes: 10 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ build/
develop-eggs/
dist/
downloads/
.?eggs/
eggs/
.eggs/
lib/
lib64/
parts/
Expand Down Expand Up @@ -176,10 +177,14 @@ celerybeat.pid
*.sage.py

# Virtual Python environments
.?ENV*/
.?env*/
.?VENV*/
.?venv*/
.ENV*/
.env*/
.VENV*/
.venv*/
ENV*/
env*/
VENV*/
venv*/

# Spyder project settings
.spyderproject
Expand Down
15 changes: 10 additions & 5 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,8 @@
"**/.Python": true,
"**/develop-eggs/": true,
"**/dist/": true,
"**/.?eggs/": true,
"**/eggs/": true,
"**/.eggs/": true,
"**/lib64/": true,
"**/sdist/": true,
"**/wheels/": true,
Expand All @@ -250,10 +251,14 @@
// PEP 582.
"**/__pypackages__/": true,
// Virtual Python environments.
"**/.?ENV*/": true,
"**/.?env*/": true,
"**/.?VENV*/": true,
"**/.?venv*/": true,
"**/.ENV*/": true,
"**/.env*/": true,
"**/.VENV*/": true,
"**/.venv*/": true,
"**/ENV*/": true,
"**/env*/": true,
"**/VENV*/": true,
"**/venv*/": true,
// mypy.
"**/.mypy_cache/": true,
},
Expand Down
4 changes: 4 additions & 0 deletions AUTHORS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ Upcoming release
:data:`mdtools._metadata.__author__` and in the CITATION.cff file.
* Andreas Thum

0.0.2.0

* Andreas Thum

0.0.1.0

* Andreas Thum
Expand Down
50 changes: 41 additions & 9 deletions docs/source/doc_pages/dev_guide/versioning.rst
Original file line number Diff line number Diff line change
Expand Up @@ -64,20 +64,52 @@ Publishing a new release
Follow these steps when publishing a new release.


1. Create a new tag
1. Update the version number
^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Create a new branch out of ``main`` named
``chore/release/vMAJOR-CORE.MAJOR-SCRIPTS.MINOR.PATCH``.

.. code:: bash
git checkout main
git checkout -b chore/release/vMAJOR-CORE.MAJOR-SCRIPTS.MINOR.PATCH
Update :file:`AUTHORS.rst` to list all authors that have contributed to
the new release and commit the changes to the new branch.

Update the version number ``__version__`` in the `version` module
(:file:`src/mdtools/version.py`) of MDTools to the new
MAJOR-CORE.MAJOR-SCRIPTS.MINOR.PATCH version and commit the changes to
the new branch.

Push the branch to the upstream repository.

.. code:: bash
git push --set-upstream origin chore/release/vMAJOR-CORE.MAJOR-SCRIPTS.MINOR.PATCH
Open the upstream repository in GitHub, create a pull request and merge
the branch into ``main`` when all tests passed successfully.

Pull the changes to your remote repository.

.. code:: bash
git pull
2. Create a new tag
^^^^^^^^^^^^^^^^^^^

Create a new tag that contains the new
On the ``main`` branch, create a new tag that contains the new
MAJOR-CORE.MAJOR-SCRIPTS.MINOR.PATCH version number prefixed with a "v":

.. code-block:: bash
git checkout main
git tag vMAJOR-CORE.MAJOR-SCRIPTS.MINOR.PATCH
2. Push the tag to the upstream repository
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Push the tag to the upstream repository.

.. important::

Expand All @@ -92,11 +124,11 @@ MAJOR-CORE.MAJOR-SCRIPTS.MINOR.PATCH version number prefixed with a "v":
3. Create a new release
^^^^^^^^^^^^^^^^^^^^^^^

Open the repository in GitHib and follow the steps outlined in the
GitHub doc page
Open the upstream repository in GitHib and follow the steps outlined in
the GitHub doc page
`Creating automatically generated release notes for a new release
<https://docs.github.com/en/repositories/releasing-projects-on-github/automatically-generated-release-notes#creating-automatically-generated-release-notes-for-a-new-release>`_.
When selecting a tag, use the tag you just created in the above steps.
When selecting a tag, use the tag you just created in the previous step.


.. _semantic versioning: http://semver.org/
2 changes: 1 addition & 1 deletion src/mdtools/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@

#: Release version of MDTools in MAJOR-CORE.MAJOR-SCRIPTS.MINOR.PATCH
#: format.
__version__ = "0.0.1.0"
__version__ = "0.0.2.0"

0 comments on commit 37efbf7

Please sign in to comment.