Migrate to pyproject.toml with setuptools_scm

Replace custom version management with setuptools_scm to eliminate
source file modifications during installation. Version is now derived
from git tags at build time without writing to tracked files.

Changes:
- Add pyproject.toml with full project metadata
- Simplify setup.py to minimal backwards-compatible shim
- Remove curateipsum/_version.py from version control
- Add _version.py to .gitignore (auto-generated at build time)
- Use PEP 440 compliant version strings

Fixes #18
This commit is contained in:
2026-02-03 21:27:49 -08:00
parent 6fd6051642
commit 32ce113608
4 changed files with 45 additions and 49 deletions

6
.gitignore vendored
View File

@@ -25,6 +25,9 @@ wheels/
*.egg
MANIFEST
# Version file generated by setuptools_scm
curateipsum/_version.py
# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
@@ -72,8 +75,9 @@ target/
# Jupyter Notebook
.ipynb_checkpoints
# pyenv
# uv
.python-version
uv.lock
# celery beat schedule file
celerybeat-schedule