Skip to content

Commit cb0a0c8

Browse files
Switch to hatchling based build
1 parent eaba165 commit cb0a0c8

File tree

7 files changed

+19
-47
lines changed

7 files changed

+19
-47
lines changed

.pre-commit-config.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,4 @@ repos:
2626
rev: 0.4.1
2727
hooks:
2828
- id: no-print-statements
29-
exclude: _version.py
3029
files: ^pymc_extras/

MANIFEST.in

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

pymc_extras/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
recover_marginals,
2323
)
2424
from pymc_extras.model.model_api import as_model
25-
from pymc_extras.version import __version__
2625

2726
_log = logging.getLogger("pmx")
2827

pymc_extras/version.py

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

pymc_extras/version.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

pyproject.toml

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

55
[project]
66
name = "pymc-extras"
@@ -62,15 +62,24 @@ Documentation = "https://pymc-extras.readthedocs.io/"
6262
Repository = "https://github.com/pymc-devs/pymc-extras.git"
6363
Issues = "https://github.com/pymc-devs/pymc-extras/issues"
6464

65-
[tool.setuptools.packages.find]
66-
where = ["."]
67-
include = ["pymc_extras"]
68-
exclude = ["tests", "notebooks"]
69-
# Additional install requirements for running tests
70-
namespaces = false
65+
[tool.hatch.version]
66+
source = 'vcs'
7167

72-
[tool.setuptools.dynamic]
73-
version = {file = "pymc_extras/version.txt"}
68+
[tool.hatch.build.hooks.vcs]
69+
version-file = "_version.py"
70+
71+
[tool.hatch.build.targets.sdist]
72+
exclude = [
73+
'/.github',
74+
'/notebooks',
75+
'/tests'
76+
]
77+
78+
[tool.hatch.build.targets.wheel]
79+
packages = ["pymc_extras"]
80+
81+
[tool.hatch.metadata]
82+
allow-direct-references = true
7483

7584
[tool.pytest.ini_options]
7685
minversion = "6.0"

setup.py

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

0 commit comments

Comments
 (0)