Skip to content

Commit a863de6

Browse files
committed
maint: Switch to hatchling build system
1 parent 8ee1cef commit a863de6

File tree

2 files changed

+18
-27
lines changed

2 files changed

+18
-27
lines changed

MANIFEST.in

Lines changed: 0 additions & 17 deletions
This file was deleted.

pyproject.toml

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

55
[project]
66
name = "pqdict"
@@ -32,7 +32,8 @@ classifiers = [
3232
"Programming Language :: Python :: Implementation :: PyPy",
3333
]
3434

35-
dynamic = ["readme", "version"]
35+
readme = "README.rst"
36+
dynamic = ["version"]
3637
dependencies = []
3738

3839
[project.optional-dependencies]
@@ -56,15 +57,22 @@ documentation = "https://pqdict.readthedocs.io"
5657
repository = "https://github.com/nvictus/pqdict"
5758
changelog = "https://github.com/nvictus/pqdict/blob/master/CHANGES"
5859

59-
[tool.setuptools.dynamic]
60-
readme = { file = ["README.rst"] }
61-
version = { attr = "pqdict.__version__" }
60+
[tool.hatch.version]
61+
path = "pqdict/__init__.py"
6262

63-
[tool.setuptools.package-data]
64-
pqdict = ['py.typed']
63+
[tool.hatch.envs.default.scripts]
64+
lint = "ruff ."
65+
fix = "ruff --fix ."
66+
test = "pytest"
67+
docs = "sphinx-autobuild docs docs/_build/html"
6568

66-
[tool.distutils.bdist_wheel]
67-
universal = true
69+
[tool.hatch.envs.test]
70+
template = "default"
71+
skip-install = false
72+
features = ["test"]
73+
74+
[[tool.hatch.envs.test.matrix]]
75+
python = ["3.8", "3.9", "3.10", "3.11"]
6876

6977
[tool.isort]
7078
profile = "black"

0 commit comments

Comments
 (0)