diff --git a/dev-requirements.txt b/dev-requirements.txt index 32cde7a..365250d 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -3,5 +3,3 @@ flake8 testpath setuptools>=30 tomli ; python_version<'3.11' -importlib_metadata ; python_version<'3.8' -zipp ; python_version<'3.8' diff --git a/docs/changelog.rst b/docs/changelog.rst index 7b53ec9..607ac05 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -1,6 +1,21 @@ Changelog ========= +v1.0 +---- + +- Rename package to ``pyproject_hooks`` (from ``pep517``). +- Remove deprecated modules (``.build``, ``.check`` and ``.envbuild``). + Use the `build `_ project + instead for this higher-level functionality of setting up a temporary build + environment. +- Require Python 3.7 or above. +- Use ``tomllib`` from the standard library on Python 3.11. ``pyproject_hooks`` + now has no external dependencies when installed in Python 3.11. +- Avoid chaining exceptions when using the fallback implementation for + :meth:`.prepare_metadata_for_build_wheel`. +- Fix propagating error message for :exc:`.BackendInvalid` errors. + v0.13 ----- diff --git a/pyproject.toml b/pyproject.toml index dff4ee1..5133b07 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,24 +2,27 @@ requires = ["flit_core >=3.2,<4"] build-backend = "flit_core.buildapi" -[tool.flit.metadata] -module = "pyproject_hooks" -dist-name = "pyproject-hooks" -author = "Thomas Kluyver" -author-email = "thomas@kluyver.me.uk" -home-page = "https://github.com/pypa/pyproject-hooks" -description-file = "README.rst" -requires = [ - "tomli >=1.1.0;python_version<'3.11'", - "importlib_metadata;python_version<'3.8'", - "zipp;python_version<'3.8'", +[project] +name = "pyproject_hooks" +authors = [ + {name = "Thomas Kluyver", email = "thomas@kluyver.me.uk"}, ] +readme = "README.rst" requires-python = ">=3.7" +dependencies = [ + "tomli >=1.1.0 ; python_version<'3.11'", +] classifiers = [ "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3 :: Only", ] +dynamic = ["version", "description"] + +[project.urls] +Source = "https://github.com/pypa/pyproject-hooks" +Documentation = "https://pyproject-hooks.readthedocs.io/" +Changelog = "https://pyproject-hooks.readthedocs.io/en/latest/changelog.html" [tool.isort] profile = "black" diff --git a/src/pyproject_hooks/_impl.py b/src/pyproject_hooks/_impl.py index 20ffa7b..37b0e65 100644 --- a/src/pyproject_hooks/_impl.py +++ b/src/pyproject_hooks/_impl.py @@ -35,7 +35,7 @@ def __init__(self, backend_name, backend_path, message): class HookMissing(Exception): - """Will be raised on missing hooks.""" + """Will be raised on missing hooks (if a fallback can't be used).""" def __init__(self, hook_name): super().__init__(hook_name) self.hook_name = hook_name