Skip to content

Add toml to setup_requires#30

Closed
seppeljordan wants to merge 1 commit into
jaraco:masterfrom
seppeljordan:fix-missing-version
Closed

Add toml to setup_requires#30
seppeljordan wants to merge 1 commit into
jaraco:masterfrom
seppeljordan:fix-missing-version

Conversation

@seppeljordan

@seppeljordan seppeljordan commented Jan 21, 2020

Copy link
Copy Markdown

EDITED!

This PR makes toml available to setuptools add build time. This should fix an issue that would result in distributions with the version 0.0.0.

@layday

layday commented Jan 22, 2020

Copy link
Copy Markdown
Contributor

use_scm_version is not required when using pyproject.toml. The fix is in jaraco/skeleton#12.

@xhochy

xhochy commented Jan 22, 2020

Copy link
Copy Markdown

This is actually required for building a wheel from an sdist. jaraco/skeleton#12 is also needed to fix the linked error but with the PR here, zipp is installed as version 0.0.0 when built from an sdist.

@layday

layday commented Jan 22, 2020

Copy link
Copy Markdown
Contributor

No, it’s not required for building a wheel from an sdist. The reason it doesn’t work is the toml library is not available at build time.

@seppeljordan seppeljordan changed the title Add use_scm_version directive to setup.py Add toml to setup_requires Jan 22, 2020
@seppeljordan

Copy link
Copy Markdown
Author

I edited the PR that follows the advice from the previous comment by @layday

@layday

layday commented Jan 22, 2020

Copy link
Copy Markdown
Contributor

It is very much not my place to review this PR but: (a) this latest change places a hard dependency on the toml package; (b) it should also be reflected in pyproject.toml; and (c) jaraco/skeleton#12 accomplishes the same thing, and should it be merged, I presume it'll also be merged back into zipp.

@jaraco

jaraco commented Jan 23, 2020

Copy link
Copy Markdown
Owner

Fixed in 955cc9f. Thanks for the report.

@jaraco jaraco closed this Jan 23, 2020
@seppeljordan seppeljordan deleted the fix-missing-version branch January 23, 2020 13:29
jaraco added a commit that referenced this pull request Jan 30, 2021
* Replace pep517.build with build

Resolves #30

* Prefer simple usage

Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
jaraco added a commit that referenced this pull request Jan 30, 2021
* Use `extend-ignore` in flake8 config

This option allows to add extra ignored rules to the default list
instead of replacing it.

The default exclusions are: E121, E123, E126, E226, E24, E704,
W503 and W504.

Fixes #28.

Refs:
* https://github.com/pypa/setuptools/pull/2486/files#r541943356
* https://flake8.pycqa.org/en/latest/user/options.html#cmdoption-flake8-extend-ignore
*
https://flake8.pycqa.org/en/latest/user/options.html#cmdoption-flake8-ignore

* Enable complexity limit. Fixes jaraco/skeleton#34.

* Replace pep517.build with build (#37)

* Replace pep517.build with build

Resolves #30

* Prefer simple usage

Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>

* Use license_files instead of license_file in meta (#35)

Singular `license_file` is deprecated since wheel v0.32.0.

Refs:
* https://wheel.readthedocs.io/en/stable/news.html
* https://wheel.readthedocs.io/en/stable/user_guide.html#including-license-files-in-the-generated-wheel-file

Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants