Skip to content

Various cleanup and prepare for 1.0 release #152

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Nov 21, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions dev-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,3 @@ flake8
testpath
setuptools>=30
tomli ; python_version<'3.11'
importlib_metadata ; python_version<'3.8'
zipp ; python_version<'3.8'
15 changes: 15 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
Changelog
=========

v1.0
----

- Rename package to ``pyproject_hooks`` (from ``pep517``).
- Remove deprecated modules (``.build``, ``.check`` and ``.envbuild``).
Use the `build <https://pypa-build.readthedocs.io/en/stable/>`_ 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
-----

Expand Down
25 changes: 14 additions & 11 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "[email protected]"
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 = "[email protected]"},
]
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"
2 changes: 1 addition & 1 deletion src/pyproject_hooks/_impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down