Skip to content

Commit

Permalink
Prepare v0.4.0 (#208)
Browse files Browse the repository at this point in the history
### What kind of change does this PR introduce?

* Prepares the next minor release

### Does this PR introduce a breaking change?

No.

### Other information:

The autoformatting for version bumping isn't great. I'm going to
redesign it upstream to be a tad simpler/more useful.

I'll also be proposing this version for acceptance into the
`conda-forge` repository. It's reached an adequate level of stability,
IMO.
  • Loading branch information
Zeitsperre authored Oct 4, 2024
2 parents 3b603f3 + 4e0ab1d commit bc6e158
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 33 deletions.
2 changes: 1 addition & 1 deletion .cruft.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"project_slug": "xhydro",
"project_short_description": "Hydrological analysis library built with xarray.",
"pypi_username": "TC-FF",
"version": "0.3.7-dev.8",
"version": "0.4.0",
"use_pytest": "y",
"use_black": "y",
"use_conda": "y",
Expand Down
4 changes: 2 additions & 2 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
Changelog
=========

v.4.0 (unreleased)
-------------------
v.4.0 (2024-10-04)
------------------
Contributors to this version: Trevor James Smith (:user:`Zeitsperre`), Gabriel Rondeau-Genesse (:user:`RondeauG`), Thomas-Charles Fortier Filion (:user:`TC-FF`).

New features and enhancements
Expand Down
29 changes: 1 addition & 28 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ target-version = [
]

[tool.bumpversion]
current_version = "0.3.7-dev.8"
current_version = "0.4.0"
commit = true
commit_args = "--no-verify"
tag = false
Expand All @@ -135,33 +135,6 @@ serialize = [
"{major}.{minor}.{patch}"
]

[[tool.bumpversion.files]]
filename = "CHANGELOG.rst"
include_bumps = ["release"]
search = """\
`Unreleased <https://github.com/hydrologie/xhydro>`_ (latest)
--------------------------------------------------------
"""
replace = """\
`Unreleased <https://github.com/hydrologie/xhydro>`_ (latest)
--------------------------------------------------------
Contributors:
Changes
^^^^^^^
* No change.
Fixes
^^^^^
* No change.
.. _changes_{new_version}:
`v{new_version} <https://github.com/TC-FF/xhydro/tree/{new_version}>`_
------------------------------------------------------
"""

[[tool.bumpversion.files]]
filename = "src/xhydro/__init__.py"
search = "__version__ = \"{current_version}\""
Expand Down
2 changes: 1 addition & 1 deletion src/xhydro/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@

__author__ = """Thomas-Charles Fortier Filion"""
__email__ = "[email protected]"
__version__ = "0.3.7-dev.8"
__version__ = "0.4.0"
2 changes: 1 addition & 1 deletion tests/test_xhydro.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ def test_package_metadata():
contents = f.read()
assert """Thomas-Charles Fortier Filion""" in contents
assert '__email__ = "[email protected]"' in contents
assert '__version__ = "0.3.7-dev.8"' in contents
assert '__version__ = "0.4.0"' in contents

0 comments on commit bc6e158

Please sign in to comment.