Skip to content
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

Add toml to setup_requires #30

Closed
wants to merge 1 commit into from

Conversation

seppeljordan
Copy link

@seppeljordan seppeljordan commented Jan 21, 2020

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
Copy link
Contributor

layday commented Jan 22, 2020

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

@xhochy
Copy link

xhochy commented Jan 22, 2020

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
Copy link
Contributor

layday commented Jan 22, 2020

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
Author

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

@layday
Copy link
Contributor

layday commented Jan 22, 2020

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
Copy link
Owner

jaraco commented Jan 23, 2020

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 <[email protected]>
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 <[email protected]>

* 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 <[email protected]>
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