diff --git a/.bumpversion.toml b/.bumpversion.toml index a99bac563..cb7fdbed3 100644 --- a/.bumpversion.toml +++ b/.bumpversion.toml @@ -1,5 +1,5 @@ [tool.bumpversion] -current_version = "1.4.0-dev0" +current_version = "1.4.1" parse = """(?x) (?P0|[1-9]\\d*)\\. @@ -12,9 +12,10 @@ parse = """(?x) )? # pre-release section is optional """ serialize = [ - "{major}.{minor}.{patch}-{pre_l}{pre_n}", "{major}.{minor}.{patch}", + "{major}.{minor}.{patch}-{pre_l}{pre_n}" ] + [tool.bumpversion.parts.pre_l] values = ["dev", "rc", "final"] optional_value = "final" @@ -24,17 +25,14 @@ replace = "{new_version}" regex = false ignore_missing_version = false ignore_missing_files = false -tag = false +tag = true sign_tags = false tag_name = "v{new_version}" tag_message = "Bump version: {current_version} → {new_version}" allow_dirty = false -commit = false +commit = true # Commit after bumping the version message = "Bump version: {current_version} → {new_version}" commit_args = "" -setup_hooks = [] -pre_commit_hooks = [] -post_commit_hooks = [] [[tool.bumpversion.files]] filename = "setup.py" diff --git a/.github/workflows/Conda-app.yml b/.github/workflows/Conda-app.yml index 8dab462cc..882eca360 100644 --- a/.github/workflows/Conda-app.yml +++ b/.github/workflows/Conda-app.yml @@ -19,7 +19,7 @@ jobs: - "3.10" os: - - "ubuntu-latest" + - "ubuntu-22.04" runs-on: "${{ matrix.os }}" diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst index ec3b63561..14ae2de48 100644 --- a/CONTRIBUTING.rst +++ b/CONTRIBUTING.rst @@ -162,7 +162,7 @@ Start 1. **Run the tests** – seriously, run them now. 2. Ensure `HISTORY.rst` is up to date with all changes since the last release. 3. Use `bump-my-version show-bump` to determine the appropriate version bump. -4. Update the version for release: `bump-my-version bump [minor | patch | pre_l | pre_n]`. +4. Update the version for release: `bump-my-version bump [minor | patch | pre_l | pre_n]`. If show-bump does not have the right option, we can manually set it `bump-my-version bump --new-version 1.4.0` 5. Publish the release to PyPi and update the Conda package. 6. Post-release, update the version to the next development iteration: - Run `bump-my-version show-bump` to check the target version. diff --git a/deepforest/__init__.py b/deepforest/__init__.py index e4907e77e..74223c1e1 100644 --- a/deepforest/__init__.py +++ b/deepforest/__init__.py @@ -4,6 +4,7 @@ __email__ = 'ben.weinstein@weecology.org' import os +from ._version import __version__ from pytorch_lightning.utilities import disable_possible_user_warnings _ROOT = os.path.abspath(os.path.dirname(__file__)) diff --git a/deepforest/_version.py b/deepforest/_version.py index b77530a1d..d3c6dce36 100644 --- a/deepforest/_version.py +++ b/deepforest/_version.py @@ -1 +1,2 @@ -__version__ = '1.4.0-dev0' +__version__ = '1.4.1' +# Version updated using bump-my-version diff --git a/setup.py b/setup.py index 05d355642..ba31f7fff 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ from distutils.command.build_ext import build_ext as DistUtilsBuildExt NAME = 'deepforest' -VERSION = '1.4.0-dev0' +VERSION = '1.4.1' DESCRIPTION = 'Tree crown prediction using deep learning retinanets' URL = 'https://github.com/Weecology/DeepForest' AUTHOR = 'Ben Weinstein' diff --git a/version_switcher.json b/version_switcher.json index 427e844d7..78129b4e4 100644 --- a/version_switcher.json +++ b/version_switcher.json @@ -5,11 +5,16 @@ "url": "https://deepforest.readthedocs.io/en/latest/" }, { - "name": "1.3.3 (stable)", - "version": "1.3.3", - "url": "https://deepforest.readthedocs.io/en/v1.3.3/", + "name": "1.4.1 (stable)", + "version": "1.4.1", + "url": "https://deepforest.readthedocs.io/en/v1.4.1/", "preferred": true }, + { + "name": "1.3.3", + "version": "1.3.3", + "url": "https://deepforest.readthedocs.io/en/v1.3.3/" + }, { "name": "1.3.2", "version": "1.3.2",