Skip to content

Commit f9f2bbb

Browse files
committed
Fix plone-stubs install: use git URL with Python >= 3.12 marker
plone-stubs is not published on PyPI, so reference it directly from GitHub. Remove it from mx.ini (no marker support) and use a PEP 508 direct reference in pyproject.toml instead.
1 parent f0227cb commit f9f2bbb

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

mx.ini

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,3 @@ version-overrides =
1111
pytest-plone>=1.0.0a1
1212
zope.pytestlayer>=8.3
1313
pytest>=8.4.0
14-
15-
[plone-stubs]
16-
url = https://github.com/plone/plone-stubs.git
17-
pushurl = git@github.com:plone/plone-stubs.git

pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ dependencies = [
4646

4747
[project.optional-dependencies]
4848
test = [
49-
"plone-stubs; python_version >= '3.12'",
49+
"plone-stubs @ git+https://github.com/plone/plone-stubs.git ; python_version >= '3.12'",
5050
"pytest-cov",
5151
"pytest-xdist",
5252
"mypy>=1.15.0",
@@ -68,6 +68,9 @@ plone = "pytest_plone.fixtures"
6868
[tool.uv]
6969
managed = false
7070

71+
[tool.hatch.metadata]
72+
allow-direct-references = true
73+
7174
[tool.hatch.version]
7275
path = "src/pytest_plone/__init__.py"
7376

0 commit comments

Comments
 (0)