From 7f6ce9da0acccdf39cebb06b689389e3717119ac Mon Sep 17 00:00:00 2001 From: Anne Haley Date: Wed, 9 Oct 2024 18:52:30 +0000 Subject: [PATCH] fix: Update version in `setup.py` and `package.json` with semantic release --- pyproject.toml | 3 +++ setup.py | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 273810c1..39b8a3c9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -23,3 +23,6 @@ quote-style = "single" [tool.ruff.lint.isort] force-sort-within-sections = true # Sort by name, don't cluster "from" vs "import" combine-as-imports = true # Combines "as" imports on the same line + +[tool.semantic_release] +version_variables = ["setup.py:__version__", "web/package.json:version"] diff --git a/setup.py b/setup.py index 0062c0b2..9f6aad6e 100644 --- a/setup.py +++ b/setup.py @@ -2,6 +2,8 @@ from setuptools import find_packages, setup +__version__ = '0.4.1' + readme_file = Path(__file__).parent / 'README.md' if readme_file.exists(): with readme_file.open() as f: @@ -12,7 +14,7 @@ setup( name='uvdat', - version='0.1.0', + version=__version__, description='', long_description=long_description, long_description_content_type='text/markdown',