Skip to content

Commit 1ea3e23

Browse files
authored
Merge pull request #151 from pradyunsg/rename-project
Rename the project to `pyproject-hooks` and trim scope
2 parents 91895aa + ae0c75c commit 1ea3e23

29 files changed

+73
-937
lines changed

.bumpversion.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ current_version = 0.13.0
33
commit = True
44
tag = True
55

6-
[bumpversion:file:pep517/__init__.py]
6+
[bumpversion:file:src/pyproject_hooks/__init__.py]

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
strategy:
3131
fail-fast: false
3232
matrix:
33-
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11"]
33+
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
3434
os: [ubuntu-latest, macos-latest, windows-latest]
3535

3636
steps:

README.rst

Lines changed: 3 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Usage—you are responsible for ensuring build requirements are available:
2323
2424
import os
2525
import tomli
26-
from pep517.wrappers import Pep517HookCaller
26+
from pyproject_hooks import BuildBackendHookCaller
2727
2828
src = 'path/to/source' # Folder containing 'pyproject.toml'
2929
with open(os.path.join(src, 'pyproject.toml'), 'rb') as f:
@@ -33,8 +33,8 @@ Usage—you are responsible for ensuring build requirements are available:
3333
# The caller is responsible for installing these and running the hooks in
3434
# an environment where they are available.
3535
36-
hooks = Pep517HookCaller(
37-
src,
36+
hooks = BuildBackendHookCaller(
37+
src,
3838
build_backend=build_sys['build-backend'],
3939
backend_path=build_sys.get('backend-path'),
4040
)
@@ -47,43 +47,3 @@ Usage—you are responsible for ensuring build requirements are available:
4747
destination = 'also/a/folder'
4848
whl_filename = hooks.build_wheel(destination, config_options)
4949
assert os.path.isfile(os.path.join(destination, whl_filename))
50-
51-
Deprecated high-level
52-
---------------------
53-
54-
For now, ``pep517`` also contains higher-level functions which install the build
55-
dependencies into a temporary environment and build a wheel/sdist using them.
56-
This is a rough implementation, e.g. it does not do proper build isolation.
57-
The `PyPA build project <https://github.com/pypa/build>`_ is recommended as an
58-
alternative, although it's still quite young in October 2020.
59-
This layer of functionality in ``pep517`` is now deprecated, but won't be
60-
removed for some time, as there is code relying on it.
61-
62-
High level usage, with build requirements handled:
63-
64-
.. code-block:: python
65-
66-
import os
67-
from pep517.envbuild import build_wheel, build_sdist
68-
69-
src = 'path/to/source' # Folder containing 'pyproject.toml'
70-
destination = 'also/a/folder'
71-
whl_filename = build_wheel(src, destination)
72-
assert os.path.isfile(os.path.join(destination, whl_filename))
73-
74-
targz_filename = build_sdist(src, destination)
75-
assert os.path.isfile(os.path.join(destination, targz_filename))
76-
77-
To test the build backend for a project, run in a system shell:
78-
79-
.. code-block:: shell
80-
81-
python3 -m pep517.check path/to/source # source dir containing pyproject.toml
82-
83-
To build a backend into source and/or binary distributions, run in a shell:
84-
85-
.. code-block:: shell
86-
87-
python -m pep517.build path/to/source # source dir containing pyproject.toml
88-
89-
All of this high-level functionality is deprecated.

doc/callhooks.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
API reference
22
=============
33

4-
.. module:: pep517
4+
.. module:: pyproject_hooks
55

66
Calling the build system
77
------------------------
88

9-
.. autoclass:: Pep517HookCaller
9+
.. autoclass:: BuildBackendHookCaller
1010

1111
.. automethod:: get_requires_for_build_sdist
1212

@@ -29,8 +29,8 @@ Calling the build system
2929
Subprocess runners
3030
------------------
3131

32-
These functions may be provided when creating :class:`Pep517HookCaller`,
33-
or to :meth:`Pep517HookCaller.subprocess_runner`.
32+
These functions may be provided when creating :class:`BuildBackendHookCaller`,
33+
or to :meth:`BuildBackendHookCaller.subprocess_runner`.
3434

3535
.. autofunction:: default_subprocess_runner
3636

doc/changelog.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Changelog
5050
- Deprecated the higher level API which handles creating an environment and
5151
installing build dependencies. This was not very complete, and the `PyPA build
5252
project <https://github.com/pypa/build>`_ is designed for this use case.
53-
- New ``python_executable`` parameter for :class:`.Pep517HookCaller` to run hooks
53+
- New ``python_executable`` parameter for :class:`.BuildBackendHookCaller` to run hooks
5454
with a different Python interpreter.
5555
- Fix for locating the script to run in the subprocess in some scenarios.
5656
- Fix example in README to get ``build-backend`` correctly.

doc/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
# -- Project information -----------------------------------------------------
2020

21-
project = 'pep517'
21+
project = 'pyproject-hooks'
2222
copyright = '2020, Thomas Kluyver'
2323
author = 'Thomas Kluyver'
2424

doc/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
pep517
2-
======
1+
pyproject-hooks
2+
===============
33

44
This package provides an API to call the hooks defined in :pep:`517`.
55

issue_template.md

Lines changed: 0 additions & 4 deletions
This file was deleted.

pep517/__init__.py

Lines changed: 0 additions & 6 deletions
This file was deleted.

pep517/build.py

Lines changed: 0 additions & 126 deletions
This file was deleted.

0 commit comments

Comments
 (0)