diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0d259b7f..f6f04834 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -7,7 +7,7 @@ ci: repos: - repo: https://github.com/asottile/pyupgrade - rev: v3.8.0 + rev: v3.10.1 hooks: - id: pyupgrade args: [--py38-plus] @@ -16,7 +16,7 @@ repos: hooks: - id: isort - repo: https://github.com/psf/black - rev: 23.3.0 + rev: 23.7.0 hooks: - id: black - repo: https://github.com/collective/zpretty @@ -32,7 +32,7 @@ repos: # """ ## - repo: https://github.com/PyCQA/flake8 - rev: 6.0.0 + rev: 6.1.0 hooks: - id: flake8 - repo: https://github.com/codespell-project/codespell @@ -63,7 +63,7 @@ repos: - id: check-python-versions args: ['--only', 'setup.py,pyproject.toml'] - repo: https://github.com/collective/i18ndude - rev: "6.0.0" + rev: "6.1.0" hooks: - id: i18ndude diff --git a/news/172.internal b/news/172.internal new file mode 100644 index 00000000..6a54c549 --- /dev/null +++ b/news/172.internal @@ -0,0 +1,5 @@ +Require setuptools 68.2 or higher for building the package. +When built with setuptools 68.1, you could not import the package, at least not an editable package. +Note that you can still *install* this package with older setuptools versions. +See `Plone meta issue 172 `_ for details. +[maurits] diff --git a/pyproject.toml b/pyproject.toml index 4f15ca58..fd2ab3e2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,9 @@ # Generated from: # https://github.com/plone/meta/tree/master/config/default # See the inline comments on how to expand/tweak this configuration file +[build-system] +requires = ["setuptools>=68.2", "wheel"] + [tool.towncrier] directory = "news/" filename = "CHANGES.rst" diff --git a/tox.ini b/tox.ini index 60d323c7..3f82c641 100644 --- a/tox.ini +++ b/tox.ini @@ -58,7 +58,7 @@ deps = build z3c.dependencychecker==2.11 commands = - python -m build --sdist --no-isolation + python -m build --sdist dependencychecker [testenv:dependencies-graph] @@ -125,7 +125,7 @@ commands = # we build the change log as news entries might break # the README that is displayed on PyPI towncrier build --version=100.0.0 --yes - python -m build --sdist --no-isolation + python -m build --sdist twine check dist/* [testenv:circular]