Skip to content

Commit

Permalink
maint: Switch to hatchling build system
Browse files Browse the repository at this point in the history
  • Loading branch information
nvictus committed Feb 13, 2024
1 parent 8ee1cef commit a863de6
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 27 deletions.
17 changes: 0 additions & 17 deletions MANIFEST.in

This file was deleted.

28 changes: 18 additions & 10 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[build-system]
requires = ["setuptools>=43.0.0", "wheel"]
build-backend = "setuptools.build_meta"
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"

[project]
name = "pqdict"
Expand Down Expand Up @@ -32,7 +32,8 @@ classifiers = [
"Programming Language :: Python :: Implementation :: PyPy",
]

dynamic = ["readme", "version"]
readme = "README.rst"
dynamic = ["version"]
dependencies = []

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

[tool.setuptools.dynamic]
readme = { file = ["README.rst"] }
version = { attr = "pqdict.__version__" }
[tool.hatch.version]
path = "pqdict/__init__.py"

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

[tool.distutils.bdist_wheel]
universal = true
[tool.hatch.envs.test]
template = "default"
skip-install = false
features = ["test"]

[[tool.hatch.envs.test.matrix]]
python = ["3.8", "3.9", "3.10", "3.11"]

[tool.isort]
profile = "black"
Expand Down

0 comments on commit a863de6

Please sign in to comment.