Skip to content

Commit 2be8eee

Browse files
committed
fix: setuptools packaging metadata for Python 3.10+ and setuptools 81-84 compatibility
- Align pyproject.toml build-system requires with setuptools>=77.0.1,<85 - Set requires-python to >=3.10 - Add fallback setup.cfg metadata for legacy pip/setuptools - Keep PEP 621 static license expression consistent
1 parent 3718e2d commit 2be8eee

2 files changed

Lines changed: 34 additions & 2 deletions

File tree

pyproject.toml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,17 @@
1616

1717

1818
[build-system]
19-
requires = ["setuptools>=77.0.1,<83"]
19+
requires = ["setuptools>=77.0.1,<85"]
2020
build-backend = "setuptools.build_meta"
2121

2222
[project]
2323
name = "TokeNicer"
2424
version = "0.0.14"
2525
description = "A (nicer) tokenizer you want to use for model `inference` and `training`: with all known peventable `gotchas` normalized or auto-fixed."
2626
readme = "README.md"
27-
requires-python = ">=3"
27+
requires-python = ">=3.10"
2828
license = "Apache-2.0"
29+
dynamic = ["dependencies"]
2930
authors = [
3031
{name = "ModelCloud", email = "qubitium@modelcloud.ai"}
3132
]
@@ -39,6 +40,8 @@ Homepage = "https://github.com/ModelCloud/Tokenicer"
3940

4041
[tool.setuptools.packages.find]
4142
where = ["."]
43+
include = ["tokenicer*"]
44+
exclude = ["tests*", "test*"]
4245

4346
[tool.setuptools.dynamic]
4447
dependencies = {file = ["requirements.txt"]}

setup.cfg

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Copyright 2025 ModelCloud.ai
2+
# Copyright 2025 qubitium@modelcloud.ai
3+
# Contact: qubitium@modelcloud.ai, x.com/qubitium
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
17+
[metadata]
18+
name = TokeNicer
19+
version = 0.0.14
20+
description = A (nicer) tokenizer you want to use for model `inference` and `training`: with all known peventable `gotchas` normalized or auto-fixed.
21+
long_description = file: README.md
22+
long_description_content_type = text/markdown
23+
author = ModelCloud
24+
author_email = qubitium@modelcloud.ai
25+
url = https://github.com/ModelCloud/Tokenicer
26+
27+
[options]
28+
packages = tokenicer
29+
python_requires = >=3.10

0 commit comments

Comments
 (0)