build: migrate packaging to pyproject.toml, require Python >=3.10#6
Merged
Conversation
Move static metadata (name, version, description, readme, authors, classifiers, URL) from setup.py into a [project] table, and configure packaging via [tool.setuptools]. Remove the now-redundant setup.py. Set requires-python = ">=3.10": 3.9 is EOL and the dev dependency pytest>=9.0.3 requires 3.10+, so >=3.9 broke uv resolution. This also clears uv's "no requires-python" warning and the ty 'unresolved-import: setuptools' diagnostic (setup.py is gone). Packaging now ships only the SanskritTransliteration package with its CSV; the previous find_packages() also shipped tests/. Placeholder author/URL replaced with real values. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Align the CI matrix with requires-python >=3.10. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Repo advertised MIT via the (now-removed) classifier but shipped no license text. Add the standard MIT license, (c) 2025-2026 Yuzuki Tsukagoshi, matching the authors field and the 2025 first-commit year. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
setuptools >=77 deprecates the "License :: OSI Approved :: MIT License" classifier, so the build emitted SetuptoolsDeprecationWarning. Replace it with a PEP 639 license = "MIT" expression plus license-files = ["LICENSE"], and pin setuptools>=77.0.0 in build-system requires since the bare-string SPDX expression is only honored there. Build is now warning-free and METADATA carries License-Expression: MIT. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes uv's "No
requires-pythonvalue found" warning by migrating packagemetadata from
setup.pyinto a[project]table inpyproject.toml, and pinsthe supported Python range.
Setting
requires-pythonsurfaced a real inconsistency: the dev dependencypytest>=9.0.3needs Python 3.10+, but CI and the oldsetup.py(>=3.6)included 3.9. Since 3.9 is EOL, this standardizes on
>=3.10.Changes
pyproject.toml: add[project](name, version, description, readme,authors, classifiers, URL),
requires-python = ">=3.10", and[tool.setuptools]packaging config (packages,include-package-data,package-datafor the CSV).setup.py— now redundant; all metadata lives inpyproject.toml..github/workflows/python-package.yml: CI matrix3.9/3.10/3.11→3.10/3.11/3.12.uv.lock: re-resolved.Notable behavior changes
SanskritTransliterationpackage (withits
transliteration_table.csv). The previousfind_packages()also packagedtests/.author/url("Your Name",yourusername/…) replaced with thereal owner name and repository URL.
>=3.6to>=3.10(3.6–3.9 are EOL / untested).Supersedes #5
PR #5 reformatted
setup.py; this PR removes that file entirely, so #5 issuperseded and should be closed.
Verification
uv build --wheel→ wheel containsSanskritTransliteration/transliteration_table.csv, excludestests/;Requires-Python: >=3.10.uv sync→ resolves cleanly, no morerequires-pythonwarning.uv run ruff format --check/uv run ruff check→ clean.uv run ty check(whole repo) → All checks passed (the priorunresolved-import: setuptoolsfromsetup.pyis gone).uv run pytest→ 20 passed.🤖 Generated with Claude Code