Skip to content

setup.py: Require setuptools >=58.5.0 (fixes #1107) #1115

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

Conversation

hartwork
Copy link
Contributor

.. so that python3 setup.py sdist ends up including these four files in the resulting distribution source tarball:

  • /third_party/yapf_third_party/yapf_diff/LICENSE
  • /third_party/yapf_third_party/_ylib2to3/Grammar.txt
  • /third_party/yapf_third_party/_ylib2to3/LICENSE
  • /third_party/yapf_third_party/_ylib2to3/PatternGrammar.txt

Fixes #1107

CC @bwendling

@Spitfire1900
Copy link
Contributor

Note this is required because setup tools fixed pypa/setuptools#1461 with v58.5.0. See https://setuptools.pypa.io/en/latest/history.html#v58-5-0

Copy link
Contributor

@Spitfire1900 Spitfire1900 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Denote reason in setup.py rather than "see this issue".

setup.py Outdated
@@ -94,6 +94,9 @@ def run(self):
},
include_package_data=True,
python_requires='>=3.7',
setup_requires=[
'setuptools>=58.5.0', # see issue #1107
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
'setuptools>=58.5.0', # see issue #1107
'setuptools>=58.5.0', # #1107 - include_package_data fix

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Spitfire1900
Copy link
Contributor

This will be great to improve reproducibility of builds.

@hartwork hartwork force-pushed the issue-1107-require-recent-enough-setuptools branch from 043cd3d to 2760e2e Compare June 21, 2023 14:51
@hartwork hartwork requested a review from Spitfire1900 June 21, 2023 14:51
.. so that "python3 setup.py sdist" ends up including these four
files in the resulting distribution source tarball:

- /third_party/yapf_third_party/yapf_diff/LICENSE
- /third_party/yapf_third_party/_ylib2to3/Grammar.txt
- /third_party/yapf_third_party/_ylib2to3/LICENSE
- /third_party/yapf_third_party/_ylib2to3/PatternGrammar.txt
@hartwork hartwork force-pushed the issue-1107-require-recent-enough-setuptools branch from 2760e2e to 6480174 Compare June 21, 2023 15:19
@bwendling bwendling merged commit 53af81a into google:main Jun 22, 2023
@hartwork hartwork deleted the issue-1107-require-recent-enough-setuptools branch September 21, 2023 17:38
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.

PyPI package is missing Grammar.txt
3 participants