Skip to content

Commit 3f7f012

Browse files
committed
adopt hatchling here, too
1 parent a484173 commit 3f7f012

File tree

3 files changed

+24
-28
lines changed

3 files changed

+24
-28
lines changed

.bumpversion.cfg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,7 @@ tag = True
77
[bumpversion:file:normality/__init__.py]
88
search = __version__ = "{current_version}"
99
replace = __version__ = "{new_version}"
10+
11+
[bumpversion:file:pyproject.toml]
12+
search = version = "{current_version}"
13+
replace = version = "{new_version}"

pyproject.toml

Lines changed: 20 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
[build-system]
2-
requires = ["setuptools>=61.2.0", "wheel", "setuptools_scm[toml]>=3.4.3"]
3-
build-backend = "setuptools.build_meta"
2+
requires = ["hatchling"]
3+
build-backend = "hatchling.build"
44

55
[project]
66
name = "normality"
7-
authors = [{name = "Friedrich Lindenberg", email = "[email protected]"}]
8-
license = {text = "MIT"}
7+
version = "2.5.0"
8+
authors = [{ name = "Friedrich Lindenberg", email = "[email protected]" }]
9+
license = { file = "LICENSE" }
910
description = "Micro-library to normalize text strings"
1011
readme = "README.md"
1112
keywords = ["text", "unicode", "normalization", "slugs"]
@@ -14,40 +15,31 @@ classifiers = [
1415
"Intended Audience :: Developers",
1516
"License :: OSI Approved :: MIT License",
1617
"Operating System :: OS Independent",
17-
"Programming Language :: Python :: 3.5",
18-
"Programming Language :: Python :: 3.6",
19-
"Programming Language :: Python :: 3.7",
18+
"Programming Language :: Python :: 3.9",
19+
"Programming Language :: Python :: 3.10",
20+
"Programming Language :: Python :: 3.11",
21+
"Programming Language :: Python :: 3.12",
2022
]
21-
urls = {Homepage = "http://github.com/pudo/normality"}
23+
requires-python = ">= 3.9"
2224
dependencies = [
2325
"banal >= 1.0.1",
2426
"text-unidecode",
2527
"chardet",
2628
"charset-normalizer >= 2.0.0",
2729
]
28-
dynamic = ["version"]
30+
# dynamic = ["version"]
31+
32+
[project.urls]
33+
Documentation = "https://github.com/pudo/normality"
34+
Repository = "https://github.com/pudo/normality.git"
35+
Issues = "https://github.com/pudo/normality/issues"
2936

3037
[project.optional-dependencies]
3138
icu = ["pyicu >= 1.9.3"]
32-
dev = [
33-
"pyicu >= 1.9.3",
34-
"mypy",
35-
"pytest",
36-
"types-chardet",
37-
]
38-
39-
[tool.setuptools]
40-
zip-safe = false
41-
include-package-data = true
42-
43-
[tool.setuptools.packages.find]
44-
exclude = ["ez_setup", "examples", "tests"]
45-
namespaces = false
46-
47-
[tool.setuptools.package-data]
48-
banal = ["py.typed"]
39+
dev = ["pyicu >= 1.9.3", "mypy", "pytest", "types-chardet", "wheel", "build"]
4940

50-
[tool.setuptools_scm]
41+
[tool.hatch.build.targets.sdist]
42+
only-include = ["normality", "LICENSE", "README.md"]
5143

5244
[tool.distutils.bdist_wheel]
53-
universal = 1
45+
universal = true

setup.cfg

Whitespace-only changes.

0 commit comments

Comments
 (0)