Skip to content

Commit

Permalink
adopt hatchling here, too
Browse files Browse the repository at this point in the history
  • Loading branch information
pudo committed Jan 9, 2025
1 parent a484173 commit 3f7f012
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 28 deletions.
4 changes: 4 additions & 0 deletions .bumpversion.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@ tag = True
[bumpversion:file:normality/__init__.py]
search = __version__ = "{current_version}"
replace = __version__ = "{new_version}"

[bumpversion:file:pyproject.toml]
search = version = "{current_version}"
replace = version = "{new_version}"
48 changes: 20 additions & 28 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
[build-system]
requires = ["setuptools>=61.2.0", "wheel", "setuptools_scm[toml]>=3.4.3"]
build-backend = "setuptools.build_meta"
requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "normality"
authors = [{name = "Friedrich Lindenberg", email = "[email protected]"}]
license = {text = "MIT"}
version = "2.5.0"
authors = [{ name = "Friedrich Lindenberg", email = "[email protected]" }]
license = { file = "LICENSE" }
description = "Micro-library to normalize text strings"
readme = "README.md"
keywords = ["text", "unicode", "normalization", "slugs"]
Expand All @@ -14,40 +15,31 @@ classifiers = [
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
urls = {Homepage = "http://github.com/pudo/normality"}
requires-python = ">= 3.9"
dependencies = [
"banal >= 1.0.1",
"text-unidecode",
"chardet",
"charset-normalizer >= 2.0.0",
]
dynamic = ["version"]
# dynamic = ["version"]

[project.urls]
Documentation = "https://github.com/pudo/normality"
Repository = "https://github.com/pudo/normality.git"
Issues = "https://github.com/pudo/normality/issues"

[project.optional-dependencies]
icu = ["pyicu >= 1.9.3"]
dev = [
"pyicu >= 1.9.3",
"mypy",
"pytest",
"types-chardet",
]

[tool.setuptools]
zip-safe = false
include-package-data = true

[tool.setuptools.packages.find]
exclude = ["ez_setup", "examples", "tests"]
namespaces = false

[tool.setuptools.package-data]
banal = ["py.typed"]
dev = ["pyicu >= 1.9.3", "mypy", "pytest", "types-chardet", "wheel", "build"]

[tool.setuptools_scm]
[tool.hatch.build.targets.sdist]
only-include = ["normality", "LICENSE", "README.md"]

[tool.distutils.bdist_wheel]
universal = 1
universal = true
Empty file removed setup.cfg
Empty file.

0 comments on commit 3f7f012

Please sign in to comment.