-
Notifications
You must be signed in to change notification settings - Fork 22
Support pyproject.toml #91
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
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
b51bf9d
First cut of pyproject.toml support
twm d383fce
Add newsfragment
twm 690ae46
Reorganize tests
twm 01bf22b
Make tomli more optional
twm 74acefb
Clean up MyPy issues
twm 8dea8f6
Runtime dep too
twm 3a8d26d
What version of setuptools?
twm 66ecb82
Remove some unreachable code
twm 28a1446
Backfill some unit tests
twm 1074d55
Move packaging metadata to pyproject.toml
twm 8e1ae1d
Fix readme syntax
twm e1682eb
A new approach
twm b2d4d8e
Bump setuptools dep
twm d08ff9d
Fix docstring syntax
twm 54380ca
Update readme
twm 895a9a9
Fix type annotation
twm 4d5a6f8
Re-enable build isolation
twm 59f0f38
Use coverage-p
twm fe3f0d3
Actually fix type annotation
twm 690994e
Omit redundant license text
twm 799b7f1
Fix coverage capture
twm a7e100e
Fix more MyPy noise
twm 81bfd06
Skip the remaining coverage holes
twm 6f17f0e
Remove unnecessary build deps
twm 6e6e4ee
Write all coverage to {toxinidir}
twm bd4d87b
A fresh new setuptools hack
twm 6cce917
Reduce diff size
twm bb8a918
Add Framework :: Setuptools Plugin classifier
twm 9ddfbc9
Minor docstring tweaks
twm 2a50e4c
Fix actions reference
twm e12b04a
Fix up MANIFEST.in
twm File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,17 +1,20 @@ | ||
| include .coveragerc | ||
| include LICENSE | ||
| include NEWS.rst | ||
| include towncrier.ini | ||
| include SECURITY.md | ||
| include tox.ini | ||
| exclude mypy.ini | ||
| include src/incremental/py.typed | ||
| include _build_meta.py | ||
|
|
||
| recursive-include src/incremental *.py | ||
| include src/incremental/py.typed | ||
| prune src/incremental/newsfragments | ||
|
|
||
| prune .travis | ||
| prune tests | ||
| global-exclude .coverage* | ||
| include .coveragerc | ||
|
|
||
| exclude examplesetup.py | ||
| prune src/exampleproj | ||
| graft tests | ||
| prune tests/example_*/src/*.egg-info | ||
| prune tests/example_*/build | ||
| prune tests/example_*/dist | ||
|
|
||
| global-exclude __pycache__ *.py[cod] *~ | ||
|
|
||
| prune src/incremental/newsfragments |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| """ | ||
| Comply with PEP 517's restictions on in-tree backends. | ||
|
glyph marked this conversation as resolved.
|
||
|
|
||
| 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``. | ||
| """ | ||
|
|
||
| from setuptools import build_meta | ||
|
|
||
| __all__ = ["build_meta"] | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.