Skip to content

Commit 66b554c

Browse files
committed
Switch build backend to hatch
1 parent c14033b commit 66b554c

File tree

8 files changed

+24
-103
lines changed

8 files changed

+24
-103
lines changed

.bumpversion.cfg

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@ replace = : str = "{new_version}"
2121

2222
[bumpversion:file:repo_helper.yml]
2323

24-
[bumpversion:file:setup.cfg]
25-
search = version = {current_version}
26-
replace = version = {new_version}
27-
2824
[bumpversion:file:.github/workflows/conda_ci.yml]
2925
search = ={current_version}=py_1
3026
replace = ={new_version}=py_1

.github/workflows/conda_ci.yml

Lines changed: 1 addition & 1 deletion
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

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

MANIFEST.in

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

pyproject.toml

Lines changed: 21 additions & 2 deletions
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 = "pyproject-parser"
@@ -207,3 +207,22 @@ include = false
207207
[tool.dependency-dash."doc-source/requirements.txt"]
208208
order = 30
209209
include = false
210+
211+
[tool.hatch.build]
212+
exclude = [
213+
"/*",
214+
"!/pyproject_parser",
215+
"!/pyproject_parser/**/requirements.txt",
216+
"!/requirements.txt",
217+
"tests",
218+
"doc-source",
219+
]
220+
221+
[tool.hatch.build.sdist]
222+
include = [ "pyproject_parser", "requirements.txt",]
223+
224+
[tool.hatch.build.wheel]
225+
include = [ "pyproject_parser",]
226+
227+
[tool.hatch.metadata.hooks.requirements_txt]
228+
files = [ "requirements.txt",]

repo_helper.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ preserve_custom_theme: true
1717
tox_testenv_extras: readme,cli
1818
min_coverage: 97.5
1919
on_conda_forge: true
20+
use_hatch: true
2021

2122
mypy_plugins:
2223
- attr_utils.mypy_plugin

setup.cfg

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

setup.py

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

0 commit comments

Comments
 (0)