Skip to content

Commit 81f0048

Browse files
Switch to hatchling based build
1 parent eaba165 commit 81f0048

File tree

7 files changed

+16
-40
lines changed

7 files changed

+16
-40
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: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[build-system]
2-
requires = ["setuptools>=61.0"]
2+
requires = ["hatchling", "hatch-vcs"]
33
build-backend = "setuptools.build_meta"
44

55
[project]
@@ -62,15 +62,28 @@ 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+
6566
[tool.setuptools.packages.find]
6667
where = ["."]
6768
include = ["pymc_extras"]
6869
exclude = ["tests", "notebooks"]
6970
# Additional install requirements for running tests
7071
namespaces = false
7172

72-
[tool.setuptools.dynamic]
73-
version = {file = "pymc_extras/version.txt"}
73+
74+
[tool.hatch.version]
75+
source = 'vcs'
76+
77+
[tool.hatch.build.targets.sdist]
78+
exclude = [
79+
'/.github',
80+
'/notebooks',
81+
'/tests'
82+
]
83+
84+
[tool.hatch.build.targets.wheel]
85+
packages = ["pymc_extras"]
86+
7487

7588
[tool.pytest.ini_options]
7689
minversion = "6.0"

setup.py

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

0 commit comments

Comments
 (0)