Skip to content

Commit 6d92740

Browse files
fix: single-source version, gitignore typo, release tag-only trigger (#129)
- version dynamic from datamaxi/__version__.py (0.28.0); drops static dup - .gitignore __pycache___ -> __pycache__/ - release.yml runs only on v* tag pushes Closes #128
1 parent 0024416 commit 6d92740

4 files changed

Lines changed: 8 additions & 5 deletions

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: Publish Python 🐍 distribution 📦 to PyPI and TestPyPI
22

3-
on: push
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
47

58
jobs:
69
build:

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
build
22
dist
33
datamaxi.egg-info/
4-
__pycache___
4+
__pycache__/
55
*.pyc
66
.DS_Store
77

datamaxi/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.26.3"
1+
__version__ = "0.28.0"

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
[project]
22
name = "datamaxi"
3-
version = "0.28.0"
43
authors = [
54
{ name="Bisonai", email="business@bisonai.com" },
65
]
@@ -17,10 +16,11 @@ classifiers = [
1716
"Programming Language :: Python :: 3.13",
1817
"Programming Language :: Python :: 3.14",
1918
]
20-
dynamic = ["dependencies"]
19+
dynamic = ["dependencies", "version"]
2120

2221
[tool.setuptools.dynamic]
2322
dependencies = {file = ["requirements/common.txt"]}
23+
version = {attr = "datamaxi.__version__.__version__"}
2424

2525
[project.urls]
2626
Homepage = "https://github.com/bisonai/datamaxi-python"

0 commit comments

Comments
 (0)