From eb69b9b042e64092983c44afc70278209f98922f Mon Sep 17 00:00:00 2001 From: Christopher Lorton Date: Mon, 18 Nov 2024 11:55:37 -0800 Subject: [PATCH] Switch to bump-my-version As recommended by bump2version --- .bumpversion.cfg | 32 --------------------------- pyproject.toml | 57 ++++++++++++++++++++++++++++++++++++++++++++++-- 2 files changed, 55 insertions(+), 34 deletions(-) delete mode 100644 .bumpversion.cfg diff --git a/.bumpversion.cfg b/.bumpversion.cfg deleted file mode 100644 index cf984b9..0000000 --- a/.bumpversion.cfg +++ /dev/null @@ -1,32 +0,0 @@ -[bumpversion] -current_version = 0.5.0 -commit = True -tag = True - -[bumpversion:file:setup.py] -search = version="{current_version}" -replace = version="{new_version}" - -[bumpversion:file (badge):README.rst] -search = /v{current_version}.svg -replace = /v{new_version}.svg - -[bumpversion:file (link):README.rst] -search = /v{current_version}...main -replace = /v{new_version}...main - -[bumpversion:file:docs/conf.py] -search = version = release = "{current_version}" -replace = version = release = "{new_version}" - -[bumpversion:file:src/laser_measles/__init__.py] -search = __version__ = "{current_version}" -replace = __version__ = "{new_version}" - -[bumpversion:file:.cookiecutterrc] -search = version: "{current_version}" -replace = version: "{new_version}" - -[bumpversion:file:pyproject.toml] -search = version = "{current_version}" -replace = version = "{new_version}" diff --git a/pyproject.toml b/pyproject.toml index e3e3a48..f80d9bf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,8 +8,9 @@ version = "0.5.0" dependencies = [ "click", - "laser-core @ git+https://github.com/InstituteforDiseaseModeling/laser.git@v0.0.3", - "numpy", + "laser-core @ git+https://github.com/InstituteforDiseaseModeling/laser.git@v0.1.0", + "numpy>=1.26.4,<2.0.0", + "numba>=0.59.1", "tqdm", "geopandas", "pandas", @@ -111,3 +112,55 @@ force-single-line = true [tool.ruff.format] quote-style = "double" + +[tool.bumpversion] +current_version = "0.5.0" +parse = "(?P\\d+)\\.(?P\\d+)\\.(?P\\d+)" +serialize = ["{major}.{minor}.{patch}"] +search = "{current_version}" +replace = "{new_version}" +regex = false +ignore_missing_version = false +tag = true +sign_tags = false +tag_name = "v{new_version}" +tag_message = "Bump version: {current_version} → {new_version}" +allow_dirty = false +commit = true +message = "Bump version: {current_version} → {new_version}" +commit_args = "" + +[[tool.bumpversion.files]] +filename = "setup.py" +search = 'version="{current_version}"' +replace = 'version="{new_version}"' + +[[tool.bumpversion.files]] + filename = "README.rst" +search = "/v{current_version}.svg" +replace = "/v{new_version}.svg" + +[[tool.bumpversion.files]] +filename = "README.rst" +search = "/v{current_version}...main" +replace = "/v{new_version}...main" + +[[tool.bumpversion.files]] +filename = "docs/conf.py" +search = 'version = release = "{current_version}"' +replace = 'version = release = "{new_version}"' + +[[tool.bumpversion.files]] +filename = "src/laser_measles/__init__.py" +search = '__version__ = "{current_version}"' +replace = '__version__ = "{new_version}"' + +[[tool.bumpversion.files]] +filename = ".cookiecutterrc" +search = 'version: "{current_version}"' +replace = 'version: "{new_version}"' + +[[tool.bumpversion.files]] +filename = "pyproject.toml" +search = 'version = "{current_version}"' +replace = 'version = "{new_version}"'