Skip to content

fix: durable version single-source, gitignore typo, release tag-only trigger - #129

Merged
martinkersner merged 1 commit into
mainfrom
issue-128-version-drift-gitignore-release
Jul 2, 2026
Merged

fix: durable version single-source, gitignore typo, release tag-only trigger#129
martinkersner merged 1 commit into
mainfrom
issue-128-version-drift-gitignore-release

Conversation

@martinkersner

Copy link
Copy Markdown
Member

Closes #128

Three maintenance fixes from repo health scan.

1. Version drift (durable)

__version__.py was 0.26.3 while pyproject/tags were 0.28.0, so User-Agent (api.py:50) self-reported wrong version. Now single source of truth: datamaxi/__version__.py = 0.28.0, pyproject version is dynamic via attr = datamaxi.__version__.__version__ (AST-read, no package import). Future bumps can't drift.

2. .gitignore

__pycache___ (triple underscore, matched nothing) -> __pycache__/.

3. release.yml

on: push -> on: push: tags: ['v*'] so wheel builds only on release tags. publish job's startsWith(refs/tags/) gate left intact.

Test plan

  • python -m build --sdist -> datamaxi-0.28.0.tar.gz (version resolves from single source)
  • pytest -m 'not integration' -q: 134 passed, 11 skipped
  • black --check: clean; flake8: clean

- 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
@martinkersner martinkersner self-assigned this Jul 2, 2026
@martinkersner
martinkersner merged commit 6d92740 into main Jul 2, 2026
5 checks passed
@martinkersner
martinkersner deleted the issue-128-version-drift-gitignore-release branch July 2, 2026 05:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix version drift durably, .gitignore typo, and release.yml push trigger

1 participant