From a060f7d15531b2f8c52c2d93ec1676b13dabd2ed Mon Sep 17 00:00:00 2001 From: RondeauG Date: Wed, 11 Oct 2023 10:41:17 -0400 Subject: [PATCH 01/11] release note helper --- tests/test_utils.py | 26 +++++++++++++++ xhydro/utils.py | 81 ++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 106 insertions(+), 1 deletion(-) diff --git a/tests/test_utils.py b/tests/test_utils.py index 52e62450..24fa7b8c 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -4,3 +4,29 @@ # Smoke test for xscen functions that are imported into xhydro def test_xscen_imported(): assert callable(getattr(xh.utils, "health_checks")) + + +def test_publish_release_notes(): + history = xh.utils.publish_release_notes(style="md") + + assert history.startswith("# History") + version = xh.__version__ + vsplit = version.split(".") + + v_4history = ( + vsplit[0] + + "." + + str(int(vsplit[1]) + 1 if vsplit[2] != "0" else vsplit[1]) + + ".0" + ) + assert f"## v{v_4history}" in history + if vsplit[2] != "0": + assert "(unreleased)" in history + else: + assert "(unreleased)" not in history + assert ":user:`" not in history + assert ":issue:`" not in history + assert ":pull:`" not in history + + history_rst = xh.utils.publish_release_notes(style="rst") + assert history_rst.startswith("=======\nHistory\n=======") diff --git a/xhydro/utils.py b/xhydro/utils.py index b1392915..c053aa01 100644 --- a/xhydro/utils.py +++ b/xhydro/utils.py @@ -1,5 +1,84 @@ """Utility functions for xhydro.""" +import os +import re +from io import StringIO +from pathlib import Path +from typing import Optional, TextIO, Union + from xscen.diagnostics import health_checks -__all__ = ["health_checks"] +__all__ = ["health_checks", "publish_release_notes"] + + +def publish_release_notes( + style: str = "md", file: Optional[Union[os.PathLike, StringIO, TextIO]] = None +) -> Optional[str]: + """Format release history in Markdown or ReStructuredText. + + Parameters + ---------- + style: {"rst", "md"} + Use ReStructuredText formatting or Markdown. Default: Markdown. + file: {os.PathLike, StringIO, TextIO}, optional + If provided, prints to the given file-like object. Otherwise, returns a string. + + Returns + ------- + str, optional + + Notes + ----- + This function exists solely for development purposes. + Adapted from xclim.testing.utils.publish_release_notes. + """ + history_file = Path(__file__).parent.parent.joinpath("HISTORY.rst") + + if not history_file.exists(): + raise FileNotFoundError("History file not found in xhydro file tree.") + + with open(history_file) as hf: + history = hf.read() + + if style == "rst": + hyperlink_replacements = { + r":issue:`([0-9]+)`": r"`GH/\1 `_", + r":pull:`([0-9]+)`": r"`PR/\1 `_", + r":user:`([a-zA-Z0-9_.-]+)`": r"`@\1 `_", + } + elif style == "md": + hyperlink_replacements = { + r":issue:`([0-9]+)`": r"[GH/\1](https://github.com/hydrologie/xhydro/issues/\1)", + r":pull:`([0-9]+)`": r"[PR/\1](https://github.com/hydrologie/xhydro/pull/\1)", + r":user:`([a-zA-Z0-9_.-]+)`": r"[@\1](https://github.com/\1)", + } + else: + raise NotImplementedError() + + for search, replacement in hyperlink_replacements.items(): + history = re.sub(search, replacement, history) + + if style == "md": + history = history.replace("=======\nHistory\n=======", "# History") + + titles = {r"\n(.*?)\n([\-]{1,})": "-", r"\n(.*?)\n([\^]{1,})": "^"} + for title_expression, level in titles.items(): + found = re.findall(title_expression, history) + for grouping in found: + fixed_grouping = ( + str(grouping[0]).replace("(", r"\(").replace(")", r"\)") + ) + search = rf"({fixed_grouping})\n([\{level}]{'{' + str(len(grouping[1])) + '}'})" + replacement = f"{'##' if level=='-' else '###'} {grouping[0]}" + history = re.sub(search, replacement, history) + + link_expressions = r"[\`]{1}([\w\s]+)\s<(.+)>`\_" + found = re.findall(link_expressions, history) + for grouping in found: + search = rf"`{grouping[0]} <.+>`\_" + replacement = f"[{str(grouping[0]).strip()}]({grouping[1]})" + history = re.sub(search, replacement, history) + + if not file: + return history + print(history, file=file) From f2a720b8490b9a22bb638b620d9ce230b844711b Mon Sep 17 00:00:00 2001 From: RondeauG Date: Wed, 11 Oct 2023 10:45:58 -0400 Subject: [PATCH 02/11] upd history --- HISTORY.rst | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/HISTORY.rst b/HISTORY.rst index 980914e9..b4600d43 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -2,6 +2,30 @@ History ======= +v0.3.0 (unreleased) +------------------- +Contributors to this version: Gabriel Rondeau-Genesse (:user:`RondeauG`) + +Announcements +^^^^^^^^^^^^^ +* N/A + +New features and enhancements +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +* N/A + +Breaking changes +^^^^^^^^^^^^^^^^ +* N/A + +Bug fixes +^^^^^^^^^ +* N/A + +Internal changes +^^^^^^^^^^^^^^^^ +* Added `xhydro.utils.publish_release_notes()` to help with the release process. (:pull:`37`). + v0.2.0 (2023-10-10) ------------------- Contributors to this version: Trevor James Smith (:user:`Zeitsperre`), Gabriel Rondeau-Genesse (:user:`RondeauG`), Thomas-Charles Fortier Filion (:user:`TC-FF`), Sébastien Langlois (:user:`sebastienlanglois`) From bb380f0bd8fe5bb573a8d1ccf093505bf6d12fd2 Mon Sep 17 00:00:00 2001 From: RondeauG Date: Wed, 11 Oct 2023 10:59:28 -0400 Subject: [PATCH 03/11] contributing --- CONTRIBUTING.rst | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst index 1e2a220b..c1b863e9 100644 --- a/CONTRIBUTING.rst +++ b/CONTRIBUTING.rst @@ -129,16 +129,31 @@ To run a subset of tests:: $ pytest tests.test_xhydro -Versioning/Tagging +Versioning/Releasing ------------------ -A reminder for the maintainers on how to deploy. -Make sure all your changes are committed (including an entry in HISTORY.rst). +We use `bumpversion` to maintain version numbers, so most of the time you don't have to worry about it. + +This section is thus mostly a reminder for the maintainers on how to proceed when a new version is ready to be released. + +1. Create a new branch from `main` (e.g. `release-0.2.0`). +2. Update the `HISTORY.rst` file to change the `Unreleased` section to the current date. + Then run:: -$ bumpversion patch # possible: major / minor / patch +$ bumpversion minor # In most cases, we will be releasing a minor version $ git push -$ git push --tags + +3. Create a pull request from your branch to `main`. +4. Once the pull request is merged, create a new release on GitHub. Both the tag and the release title should be the version number, prefixed with a `v` (e.g. `v0.2.0`). +5. To generate the release notes, run:: + +$ import xhydro +$ print(xhydro.utils.publish_release_notes()) + +This will print the release notes (taken from the `HISTORY.rst` file) to your python console. Copy and paste them into the GitHub release description, keeping only the changes for the current version. + +6. Once the release is published, it will go into a `staging` mode on Github Actions. Once the tests pass, admins can approve the release (an e-mail will be sent) and it will be published on PyPI. Packaging --------- From 095771f54c68d6fa1ffd7959faa7d35621c0bfbf Mon Sep 17 00:00:00 2001 From: RondeauG Date: Wed, 11 Oct 2023 11:02:17 -0400 Subject: [PATCH 04/11] remove ambiguous test --- tests/test_utils.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tests/test_utils.py b/tests/test_utils.py index 24fa7b8c..73f46716 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -20,10 +20,6 @@ def test_publish_release_notes(): + ".0" ) assert f"## v{v_4history}" in history - if vsplit[2] != "0": - assert "(unreleased)" in history - else: - assert "(unreleased)" not in history assert ":user:`" not in history assert ":issue:`" not in history assert ":pull:`" not in history From f7baade83eafb15d81ba0db065f0ed1f1cbc18a3 Mon Sep 17 00:00:00 2001 From: RondeauG Date: Wed, 11 Oct 2023 15:49:37 -0400 Subject: [PATCH 05/11] fix text --- CONTRIBUTING.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst index c1b863e9..6d87582d 100644 --- a/CONTRIBUTING.rst +++ b/CONTRIBUTING.rst @@ -130,7 +130,7 @@ $ pytest tests.test_xhydro Versioning/Releasing ------------------- +-------------------- We use `bumpversion` to maintain version numbers, so most of the time you don't have to worry about it. @@ -148,8 +148,8 @@ $ git push 4. Once the pull request is merged, create a new release on GitHub. Both the tag and the release title should be the version number, prefixed with a `v` (e.g. `v0.2.0`). 5. To generate the release notes, run:: -$ import xhydro -$ print(xhydro.utils.publish_release_notes()) + $ import xhydro + $ print(xhydro.utils.publish_release_notes()) This will print the release notes (taken from the `HISTORY.rst` file) to your python console. Copy and paste them into the GitHub release description, keeping only the changes for the current version. From 769fe10be377047f421c308dc376b47f1f2436e3 Mon Sep 17 00:00:00 2001 From: RondeauG Date: Thu, 12 Oct 2023 12:07:42 -0400 Subject: [PATCH 06/11] testing utils --- tests/test_testing_utils.py | 24 +++++++++++ tests/test_utils.py | 22 ---------- xhydro/testing/__init__.py | 1 + xhydro/testing/utils.py | 80 ++++++++++++++++++++++++++++++++++++ xhydro/utils.py | 82 +------------------------------------ 5 files changed, 106 insertions(+), 103 deletions(-) create mode 100644 tests/test_testing_utils.py create mode 100644 xhydro/testing/__init__.py create mode 100644 xhydro/testing/utils.py diff --git a/tests/test_testing_utils.py b/tests/test_testing_utils.py new file mode 100644 index 00000000..ae595b4a --- /dev/null +++ b/tests/test_testing_utils.py @@ -0,0 +1,24 @@ +import xhydro as xh +import xhydro.testing.utils as xhu + + +def test_publish_release_notes(): + history = xhu.publish_release_notes(style="md") + + assert history.startswith("# History") + version = xh.__version__ + vsplit = version.split(".") + + v_4history = ( + vsplit[0] + + "." + + str(int(vsplit[1]) + 1 if vsplit[2] != "0" else vsplit[1]) + + ".0" + ) + assert f"## v{v_4history}" in history + assert ":user:`" not in history + assert ":issue:`" not in history + assert ":pull:`" not in history + + history_rst = xhu.publish_release_notes(style="rst") + assert history_rst.startswith("=======\nHistory\n=======") diff --git a/tests/test_utils.py b/tests/test_utils.py index 73f46716..52e62450 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -4,25 +4,3 @@ # Smoke test for xscen functions that are imported into xhydro def test_xscen_imported(): assert callable(getattr(xh.utils, "health_checks")) - - -def test_publish_release_notes(): - history = xh.utils.publish_release_notes(style="md") - - assert history.startswith("# History") - version = xh.__version__ - vsplit = version.split(".") - - v_4history = ( - vsplit[0] - + "." - + str(int(vsplit[1]) + 1 if vsplit[2] != "0" else vsplit[1]) - + ".0" - ) - assert f"## v{v_4history}" in history - assert ":user:`" not in history - assert ":issue:`" not in history - assert ":pull:`" not in history - - history_rst = xh.utils.publish_release_notes(style="rst") - assert history_rst.startswith("=======\nHistory\n=======") diff --git a/xhydro/testing/__init__.py b/xhydro/testing/__init__.py new file mode 100644 index 00000000..92c8062e --- /dev/null +++ b/xhydro/testing/__init__.py @@ -0,0 +1 @@ +"""Helpers for testing.""" diff --git a/xhydro/testing/utils.py b/xhydro/testing/utils.py new file mode 100644 index 00000000..281d142f --- /dev/null +++ b/xhydro/testing/utils.py @@ -0,0 +1,80 @@ +"""Utilities for testing and releasing xhydro.""" + +import os +import re +from io import StringIO +from pathlib import Path +from typing import Optional, TextIO, Union + + +def publish_release_notes( + style: str = "md", file: Optional[Union[os.PathLike, StringIO, TextIO]] = None +) -> Optional[str]: + """Format release history in Markdown or ReStructuredText. + + Parameters + ---------- + style: {"rst", "md"} + Use ReStructuredText formatting or Markdown. Default: Markdown. + file: {os.PathLike, StringIO, TextIO}, optional + If provided, prints to the given file-like object. Otherwise, returns a string. + + Returns + ------- + str, optional + + Notes + ----- + This function exists solely for development purposes. + Adapted from xclim.testing.utils.publish_release_notes. + """ + history_file = Path(__file__).parent.parent.joinpath("HISTORY.rst") + + if not history_file.exists(): + raise FileNotFoundError("History file not found in xhydro file tree.") + + with open(history_file) as hf: + history = hf.read() + + if style == "rst": + hyperlink_replacements = { + r":issue:`([0-9]+)`": r"`GH/\1 `_", + r":pull:`([0-9]+)`": r"`PR/\1 `_", + r":user:`([a-zA-Z0-9_.-]+)`": r"`@\1 `_", + } + elif style == "md": + hyperlink_replacements = { + r":issue:`([0-9]+)`": r"[GH/\1](https://github.com/hydrologie/xhydro/issues/\1)", + r":pull:`([0-9]+)`": r"[PR/\1](https://github.com/hydrologie/xhydro/pull/\1)", + r":user:`([a-zA-Z0-9_.-]+)`": r"[@\1](https://github.com/\1)", + } + else: + raise NotImplementedError() + + for search, replacement in hyperlink_replacements.items(): + history = re.sub(search, replacement, history) + + if style == "md": + history = history.replace("=======\nHistory\n=======", "# History") + + titles = {r"\n(.*?)\n([\-]{1,})": "-", r"\n(.*?)\n([\^]{1,})": "^"} + for title_expression, level in titles.items(): + found = re.findall(title_expression, history) + for grouping in found: + fixed_grouping = ( + str(grouping[0]).replace("(", r"\(").replace(")", r"\)") + ) + search = rf"({fixed_grouping})\n([\{level}]{'{' + str(len(grouping[1])) + '}'})" + replacement = f"{'##' if level=='-' else '###'} {grouping[0]}" + history = re.sub(search, replacement, history) + + link_expressions = r"[\`]{1}([\w\s]+)\s<(.+)>`\_" + found = re.findall(link_expressions, history) + for grouping in found: + search = rf"`{grouping[0]} <.+>`\_" + replacement = f"[{str(grouping[0]).strip()}]({grouping[1]})" + history = re.sub(search, replacement, history) + + if not file: + return history + print(history, file=file) diff --git a/xhydro/utils.py b/xhydro/utils.py index c053aa01..1d87af94 100644 --- a/xhydro/utils.py +++ b/xhydro/utils.py @@ -1,84 +1,4 @@ """Utility functions for xhydro.""" - -import os -import re -from io import StringIO -from pathlib import Path -from typing import Optional, TextIO, Union - from xscen.diagnostics import health_checks -__all__ = ["health_checks", "publish_release_notes"] - - -def publish_release_notes( - style: str = "md", file: Optional[Union[os.PathLike, StringIO, TextIO]] = None -) -> Optional[str]: - """Format release history in Markdown or ReStructuredText. - - Parameters - ---------- - style: {"rst", "md"} - Use ReStructuredText formatting or Markdown. Default: Markdown. - file: {os.PathLike, StringIO, TextIO}, optional - If provided, prints to the given file-like object. Otherwise, returns a string. - - Returns - ------- - str, optional - - Notes - ----- - This function exists solely for development purposes. - Adapted from xclim.testing.utils.publish_release_notes. - """ - history_file = Path(__file__).parent.parent.joinpath("HISTORY.rst") - - if not history_file.exists(): - raise FileNotFoundError("History file not found in xhydro file tree.") - - with open(history_file) as hf: - history = hf.read() - - if style == "rst": - hyperlink_replacements = { - r":issue:`([0-9]+)`": r"`GH/\1 `_", - r":pull:`([0-9]+)`": r"`PR/\1 `_", - r":user:`([a-zA-Z0-9_.-]+)`": r"`@\1 `_", - } - elif style == "md": - hyperlink_replacements = { - r":issue:`([0-9]+)`": r"[GH/\1](https://github.com/hydrologie/xhydro/issues/\1)", - r":pull:`([0-9]+)`": r"[PR/\1](https://github.com/hydrologie/xhydro/pull/\1)", - r":user:`([a-zA-Z0-9_.-]+)`": r"[@\1](https://github.com/\1)", - } - else: - raise NotImplementedError() - - for search, replacement in hyperlink_replacements.items(): - history = re.sub(search, replacement, history) - - if style == "md": - history = history.replace("=======\nHistory\n=======", "# History") - - titles = {r"\n(.*?)\n([\-]{1,})": "-", r"\n(.*?)\n([\^]{1,})": "^"} - for title_expression, level in titles.items(): - found = re.findall(title_expression, history) - for grouping in found: - fixed_grouping = ( - str(grouping[0]).replace("(", r"\(").replace(")", r"\)") - ) - search = rf"({fixed_grouping})\n([\{level}]{'{' + str(len(grouping[1])) + '}'})" - replacement = f"{'##' if level=='-' else '###'} {grouping[0]}" - history = re.sub(search, replacement, history) - - link_expressions = r"[\`]{1}([\w\s]+)\s<(.+)>`\_" - found = re.findall(link_expressions, history) - for grouping in found: - search = rf"`{grouping[0]} <.+>`\_" - replacement = f"[{str(grouping[0]).strip()}]({grouping[1]})" - history = re.sub(search, replacement, history) - - if not file: - return history - print(history, file=file) +__all__ = ["health_checks"] From 719bc64dfb1a7f640eb6adcbe05007d2e761996f Mon Sep 17 00:00:00 2001 From: RondeauG <38501935+RondeauG@users.noreply.github.com> Date: Thu, 12 Oct 2023 12:08:51 -0400 Subject: [PATCH 07/11] Update HISTORY.rst --- HISTORY.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HISTORY.rst b/HISTORY.rst index b4600d43..c3a873b5 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -24,7 +24,7 @@ Bug fixes Internal changes ^^^^^^^^^^^^^^^^ -* Added `xhydro.utils.publish_release_notes()` to help with the release process. (:pull:`37`). +* Added `xhydro.testing.utils.publish_release_notes()` to help with the release process. (:pull:`37`). v0.2.0 (2023-10-10) ------------------- From 6a2d3a5e5f158b64257ee5701a4e4debc01fa86d Mon Sep 17 00:00:00 2001 From: RondeauG <38501935+RondeauG@users.noreply.github.com> Date: Thu, 12 Oct 2023 12:09:34 -0400 Subject: [PATCH 08/11] Update CONTRIBUTING.rst --- CONTRIBUTING.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst index 6d87582d..ed5c8a1e 100644 --- a/CONTRIBUTING.rst +++ b/CONTRIBUTING.rst @@ -148,8 +148,8 @@ $ git push 4. Once the pull request is merged, create a new release on GitHub. Both the tag and the release title should be the version number, prefixed with a `v` (e.g. `v0.2.0`). 5. To generate the release notes, run:: - $ import xhydro - $ print(xhydro.utils.publish_release_notes()) + $ import xhydro.testing.utils as xhu + $ print(xhu.publish_release_notes()) This will print the release notes (taken from the `HISTORY.rst` file) to your python console. Copy and paste them into the GitHub release description, keeping only the changes for the current version. From 2f371cc113e9dccac013ab2bfe8a7bedfab47917 Mon Sep 17 00:00:00 2001 From: RondeauG Date: Thu, 12 Oct 2023 13:02:01 -0400 Subject: [PATCH 09/11] fix tests --- xhydro/testing/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xhydro/testing/utils.py b/xhydro/testing/utils.py index 281d142f..c7659c98 100644 --- a/xhydro/testing/utils.py +++ b/xhydro/testing/utils.py @@ -28,7 +28,7 @@ def publish_release_notes( This function exists solely for development purposes. Adapted from xclim.testing.utils.publish_release_notes. """ - history_file = Path(__file__).parent.parent.joinpath("HISTORY.rst") + history_file = Path(__file__).parent.parent.parent.joinpath("HISTORY.rst") if not history_file.exists(): raise FileNotFoundError("History file not found in xhydro file tree.") From 221c1603084e257ca2e7c43084f0fc3fee1b0e60 Mon Sep 17 00:00:00 2001 From: RondeauG <38501935+RondeauG@users.noreply.github.com> Date: Thu, 12 Oct 2023 13:19:54 -0400 Subject: [PATCH 10/11] Update xhydro/testing/utils.py Co-authored-by: Trevor James Smith <10819524+Zeitsperre@users.noreply.github.com> --- xhydro/testing/utils.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/xhydro/testing/utils.py b/xhydro/testing/utils.py index c7659c98..744121f0 100644 --- a/xhydro/testing/utils.py +++ b/xhydro/testing/utils.py @@ -14,10 +14,10 @@ def publish_release_notes( Parameters ---------- - style: {"rst", "md"} - Use ReStructuredText formatting or Markdown. Default: Markdown. - file: {os.PathLike, StringIO, TextIO}, optional - If provided, prints to the given file-like object. Otherwise, returns a string. + style : {"rst", "md"} + Use ReStructuredText (`rst`) or Markdown (`md`) formatting. Default: Markdown. + file : {os.PathLike, StringIO, TextIO, None} + If provided, prints to the given file-like object. Otherwise, returns a string. Returns ------- From f39965b1ecee879a519437a33d125100344c067f Mon Sep 17 00:00:00 2001 From: "bumpversion[bot]" Date: Thu, 12 Oct 2023 17:28:30 +0000 Subject: [PATCH 11/11] =?UTF-8?q?Bump=20version:=200.2.0=20=E2=86=92=200.2?= =?UTF-8?q?.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .cruft.json | 2 +- setup.cfg | 2 +- setup.py | 2 +- tests/test_xhydro.py | 2 +- xhydro/__init__.py | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.cruft.json b/.cruft.json index 3821fc4c..ee0ff7e8 100644 --- a/.cruft.json +++ b/.cruft.json @@ -11,7 +11,7 @@ "project_slug": "xhydro", "project_short_description": "Hydrological analysis library built with xarray", "pypi_username": "TC-FF", - "version": "0.2.0", + "version": "0.2.1", "use_pytest": "y", "use_black": "y", "add_pyup_badge": "n", diff --git a/setup.cfg b/setup.cfg index 43188e5c..5cafa6f8 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 0.2.0 +current_version = 0.2.1 commit = True tag = True diff --git a/setup.py b/setup.py index 078dde4b..4887f7d7 100644 --- a/setup.py +++ b/setup.py @@ -47,6 +47,6 @@ "dev": dev_requirements, }, url="https://github.com/hydrologie/xhydro", - version="0.2.0", + version="0.2.1", zip_safe=False, ) diff --git a/tests/test_xhydro.py b/tests/test_xhydro.py index 461f2a4a..6dcea564 100644 --- a/tests/test_xhydro.py +++ b/tests/test_xhydro.py @@ -36,4 +36,4 @@ def test_package_metadata(): contents = f.read() assert """Thomas-Charles Fortier Filion""" in contents assert '__email__ = "tcff_hydro@outlook.com"' in contents - assert '__version__ = "0.2.0"' in contents + assert '__version__ = "0.2.1"' in contents diff --git a/xhydro/__init__.py b/xhydro/__init__.py index ea9cdd3f..657893e9 100644 --- a/xhydro/__init__.py +++ b/xhydro/__init__.py @@ -6,4 +6,4 @@ __author__ = """Thomas-Charles Fortier Filion""" __email__ = "tcff_hydro@outlook.com" -__version__ = "0.2.0" +__version__ = "0.2.1"