Skip to content

Commit f91d975

Browse files
authored
ci(downstream): bump hatchling to 1.31.0 and fix its pytest rootdir (#1361)
1 parent b1a7124 commit f91d975

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

‎noxfile.py‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ class Project:
186186
pytest_args=("unit_test",),
187187
),
188188
"hatchling": Project(
189-
"https://github.com/pypa/hatch/archive/refs/tags/hatchling-v1.30.1.tar.gz",
189+
"https://github.com/pypa/hatch/archive/refs/tags/hatchling-v1.31.0.tar.gz",
190190
# hatchling lives in the hatch monorepo; its backend tests rely on the
191191
# full hatch package and its fixtures.
192192
install=(
@@ -197,13 +197,16 @@ class Project:
197197
"filelock",
198198
"editables",
199199
),
200-
install_env={"SETUPTOOLS_SCM_PRETEND_VERSION": "1.30.1"},
200+
install_env={"SETUPTOOLS_SCM_PRETEND_VERSION": "1.31.0"},
201201
# test_binary downloads a PyApp binary over the network.
202202
# See https://github.com/pypa/hatch/issues/2319.
203+
# hatchling ships no pytest config, so from nox's tmp dir inside this
204+
# checkout pytest makes packaging's own directory the rootdir. Node IDs
205+
# then carry a .nox/... prefix, which silently breaks --deselect.
203206
pytest_args=(
204207
"tests/backend",
208+
"--rootdir=.",
205209
"--ignore=tests/backend/builders/test_binary.py",
206-
"--deselect=tests/backend/builders/test_wheel.py::TestBuildStandard::test_default_shared_scripts",
207210
),
208211
),
209212
"tox": Project(

0 commit comments

Comments
 (0)