Skip to content

Commit

Permalink
Minor docstring tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
twm committed Jul 7, 2024
1 parent bb8a918 commit 9ddfbc9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ Subsequent installations of your project will then use Incremental for versionin


Using ``setup.py``
~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~

Incremental may be used from ``setup.py`` instead of ``pyproject.toml``.
Add this to your ``setup()`` call, removing any other versioning arguments:
Expand Down
10 changes: 5 additions & 5 deletions _build_meta.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
"""
Comply with PEP 517's restictions on in-tree backends.
We use setuptools to package Incremental, but also want to use
Incremental to manage its own version. To do this we specify
``backend-path`` in our ``pyproject.toml``, but PEP 517 requires
that when ``backend-path`` is specified:
We use setuptools to package Incremental and want to activate
the in-tree Incremental plugin to manage its own version. To do
this we specify ``backend-path`` in our ``pyproject.toml``,
but PEP 517 requires that when ``backend-path`` is specified:
> The backend code MUST be loaded from one of the directories
> specified in backend-path (i.e., it is not permitted to
> specify backend-path and not have in-tree backend code).
We comply by re-publishing setuptools' build_meta.
We comply by re-publishing setuptools' ``build_meta``.
"""

from setuptools import build_meta
Expand Down

0 comments on commit 9ddfbc9

Please sign in to comment.