Skip to content

Commit 66fe892

Browse files
mrecachinasCopilot
andcommitted
Fix pyproject.toml for modern packaging standards
- Use SPDX license expression (license = 'MIT') instead of deprecated classifier - Remove deprecated tool.setuptools.license-files in favor of auto-detection - Bump setuptools requirement to >=77.0.0 for SPDX support - Add Python 3.13 classifier - Fix MANIFEST.in: include LICENSE, exclude *.pyc/*.pyo/*.so/__pycache__ - Add check-manifest config to ignore uv.lock - Verified: twine check passes, check-manifest passes, wheel and sdist both install and work correctly Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent e4c7f31 commit 66fe892

2 files changed

Lines changed: 13 additions & 4 deletions

File tree

MANIFEST.in

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
include README.rst
2+
include LICENSE
23
include pyproject.toml
34

45
graft test
5-
graft src
6+
graft src
7+
8+
global-exclude *.pyc
9+
global-exclude *.pyo
10+
global-exclude *.so
11+
global-exclude __pycache__

pyproject.toml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
[build-system]
2-
requires = ["setuptools>=61.0", "wheel"]
2+
requires = ["setuptools>=77.0.0", "wheel"]
33
build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "hexhamming"
77
version = "2.2.3"
88
description = "Fast Hamming distance calculation for hexadecimal strings"
99
readme = "README.rst"
10+
license = "MIT"
1011
authors = [
1112
{ name = "Michael Recachinas", email = "m.recachinas@gmail.com" }
1213
]
1314
keywords = ["hamming", "distance", "simd"]
1415
classifiers = [
15-
"License :: OSI Approved :: MIT License",
1616
"Operating System :: MacOS :: MacOS X",
1717
"Operating System :: POSIX :: Linux",
1818
"Operating System :: Microsoft :: Windows",
@@ -23,6 +23,7 @@ classifiers = [
2323
"Programming Language :: Python :: 3.10",
2424
"Programming Language :: Python :: 3.11",
2525
"Programming Language :: Python :: 3.12",
26+
"Programming Language :: Python :: 3.13",
2627
]
2728
requires-python = ">=3.8"
2829

@@ -40,11 +41,13 @@ dev = [
4041
[tool.setuptools]
4142
zip-safe = false
4243
packages = []
43-
license-files = []
4444

4545
[tool.pytest.ini_options]
4646
testpaths = ["test"]
4747

48+
[tool.check-manifest]
49+
ignore = ["uv.lock"]
50+
4851
[tool.ruff]
4952
line-length = 88
5053
target-version = "py38"

0 commit comments

Comments
 (0)