From fd1b8c886782e1f872cd37e47ca1c45b27be9849 Mon Sep 17 00:00:00 2001 From: Alex Ruddick Date: Thu, 7 Sep 2023 13:42:51 -0500 Subject: [PATCH] Add bumpversion tool and config --- .bumpversion.toml | 8 ++++++++ .github/workflows/python-package.yml | 2 +- setup.py | 3 ++- 3 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 .bumpversion.toml diff --git a/.bumpversion.toml b/.bumpversion.toml new file mode 100644 index 0000000..6865a70 --- /dev/null +++ b/.bumpversion.toml @@ -0,0 +1,8 @@ +[tool.bumpversion] +current_version = "0.5.0" +commit = true +tag = true +tag_name = "{new_version}" + +[[tool.bumpversion.files]] +filename = "setup.py" diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index e40d102..b7d0550 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -30,7 +30,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - python -m pip install '.[test]' + python -m pip install '.[dev]' - name: Lint with ruff run: | ruff . diff --git a/setup.py b/setup.py index ed79e8f..b43a214 100644 --- a/setup.py +++ b/setup.py @@ -20,13 +20,14 @@ install_requires=['pyserial'], extras_require={ - 'test': [ + 'dev': [ 'mypy==1.5.1', 'pytest>=6,<8', 'pytest-cov>=4,<5', 'pytest-asyncio==0.*', 'ruff==0.0.287', 'types-pyserial', + 'bump-my-version', ] }, entry_points={