Skip to content

Commit f325b6e

Browse files
committed
Switch build backend to hatch
1 parent 1a87906 commit f325b6e

File tree

6 files changed

+24
-15
lines changed

6 files changed

+24
-15
lines changed

.bumpversion.cfg

-4
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,6 @@ replace = : str = "{new_version}"
1919
search = version = "{current_version}"
2020
replace = version = "{new_version}"
2121

22-
[bumpversion:file:setup.cfg]
23-
search = version = {current_version}
24-
replace = version = {new_version}
25-
2622
[bumpversion:file:.github/workflows/conda_ci.yml]
2723
search = ={current_version}=py_1
2824
replace = ={new_version}=py_1

.github/workflows/conda_ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
python -VV
4141
python -m site
4242
python -m pip install --upgrade pip setuptools wheel
43-
python -m pip install --upgrade "whey-conda" "setuptools!=61.*,<=67.1.0,>=40.6.0" "wheel>=0.34.2"
43+
python -m pip install --upgrade "whey-conda" "hatch-requirements-txt"
4444
# $CONDA is an environment variable pointing to the root of the miniconda directory
4545
$CONDA/bin/conda update -n base conda
4646
$CONDA/bin/conda config --add channels conda-forge

.github/workflows/python_ci_linux.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ jobs:
205205
python -VV
206206
python -m site
207207
python -m pip install --upgrade pip setuptools wheel
208-
python -m pip install --upgrade "mkrecipe" "setuptools!=61.*,<=67.1.0,>=40.6.0" "wheel>=0.34.2"
208+
python -m pip install --upgrade "mkrecipe" "hatch-requirements-txt"
209209
# $CONDA is an environment variable pointing to the root of the miniconda directory
210210
$CONDA/bin/conda config --set always_yes yes --set changeps1 no
211211
$CONDA/bin/conda update -n base conda

MANIFEST.in

-7
This file was deleted.

pyproject.toml

+21-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[build-system]
2-
requires = [ "setuptools!=61.*,<=67.1.0,>=40.6.0", "wheel>=0.34.2",]
3-
build-backend = "setuptools.build_meta"
2+
requires = [ "hatch-requirements-txt",]
3+
build-backend = "hatchling.build"
44

55
[project]
66
name = "domdf_python_tools"
@@ -184,3 +184,22 @@ include = false
184184
[tool.dependency-dash."doc-source/requirements.txt"]
185185
order = 30
186186
include = false
187+
188+
[tool.hatch.build]
189+
exclude = [
190+
"/*",
191+
"!/domdf_python_tools",
192+
"!/domdf_python_tools/**/requirements.txt",
193+
"!/requirements.txt",
194+
"tests",
195+
"doc-source",
196+
]
197+
198+
[tool.hatch.build.sdist]
199+
include = [ "domdf_python_tools", "requirements.txt",]
200+
201+
[tool.hatch.build.wheel]
202+
include = [ "domdf_python_tools",]
203+
204+
[tool.hatch.metadata.hooks.requirements_txt]
205+
files = [ "requirements.txt",]

repo_helper.yml

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ min_coverage: 95
1414
tox_testenv_extras: all
1515
pre_commit_exclude: "^domdf_python_tools/compat/importlib_resources.py$"
1616
docs_fail_on_warning: true
17+
use_hatch: true
1718

1819
conda_channels:
1920
- conda-forge

0 commit comments

Comments
 (0)