Skip to content

Commit 215bc8b

Browse files
razvanNickLarsenNZ
andauthored
update versions and switch to dynamic project versioning (#18)
* chore: use package name and version from pyproject.toml * chore: use 'with' for convenience * index on chore/beku-nix-version: b875089 chore: use 'with' for convenience * Update readme * Update pr version --------- Co-authored-by: Nick Larsen <nick.larsen@stackable.tech>
1 parent 8da3cd4 commit 215bc8b

File tree

7 files changed

+25
-12
lines changed

7 files changed

+25
-12
lines changed

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
runs-on: ubuntu-latest
88
strategy:
99
matrix:
10-
python-version: ["3.10", "3.11"]
10+
python-version: ["3.11", "3.12"]
1111
steps:
1212
- uses: actions/checkout@v3
1313
- name: Set up Python ${{ matrix.python-version }}

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
runs-on: ubuntu-latest
88
strategy:
99
matrix:
10-
python-version: ["3.10", "3.11"]
10+
python-version: ["3.11", "3.12"]
1111
steps:
1212
- uses: actions/checkout@v3
1313
- name: Set up Python ${{ matrix.python-version }}

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
.env
22
build
33
dist
4+
__pycache__
45
result
56
src/beku_stackabletech.egg-info
67
examples/suites/tests/_work
8+
# pixi environments
9+
.pixi
10+

CHANGELOG.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,12 @@ All notable changes to this project will be documented in this file.
66

77
## Added
88

9-
- Nix build files ([#12])
9+
- Nix build files ([#18])
10+
- Raise build versions ([#18])
11+
- Use setuptools to build the project ([#18])
12+
- Drop support for 3.10 and add support for 3.12 ([#18])
1013

11-
[#12]: https://github.com/stackabletech/beku.py/pull/12
14+
[#18]: https://github.com/stackabletech/beku.py/pull/18
1215

1316
## [0.0.9] - 2023-08-23
1417

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,7 @@ Also see the `examples` folder.
6767

6868
Update the version in:
6969

70-
* `pyproject.toml`
71-
* `version.py`
70+
* `src/beku/version.py`
7271
* `README.md` : version and pip install command.
7372

7473
Update the CHANGELOG.
@@ -77,6 +76,6 @@ Build and publish:
7776

7877
```sh
7978
rm -rf dist/
80-
python -m build --wheel .
79+
python -m build --sdist --wheel .
8180
twine upload dist/*
8281
```

pyproject.toml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1+
[build-system]
2+
requires = ["setuptools >= 61.0"]
3+
build-backend = "setuptools.build_meta"
4+
15
[project]
26
name = "beku-stackabletech"
3-
version = "0.0.9"
7+
dynamic = ["version"]
48
authors = [{ name = "Razvan Mihai", email = "razvan.mihai@stackable.tech" }]
59
description = "Test suite expander for Stackable Kuttl tests."
610
readme = "README.md"
@@ -11,9 +15,10 @@ classifiers = [
1115
"Operating System :: OS Independent",
1216
]
1317
dependencies = ["Jinja2>=3.1.2", "PyYAML>=6.0"]
18+
1419
[project.optional-dependencies]
15-
lint = ['ruff==0.0.275', 'mypy==1.4.0']
16-
publish = ['twine==5.0.0', 'build==1.2.1']
20+
lint = ['ruff>=0.4', 'mypy>=1.10']
21+
publish = ['twine>=5.0', 'build>=1.2']
1722

1823
[project.scripts]
1924
beku = "beku.main:main"
@@ -28,3 +33,6 @@ line-length = 120
2833

2934
[tool.mypy]
3035
exclude = ['examples/']
36+
37+
[tool.setuptools.dynamic]
38+
version = { attr = "beku.version.__version__" }

src/beku/version.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
"""Package version."""
2-
__version_info__ = (0, 0, '9')
3-
__version__ = ".".join(map(str, __version_info__))
2+
__version__ = "0.0.9"

0 commit comments

Comments
 (0)