Commit
1 year ago
gh-38226: `build/pkgs/setuptools_scm`: Upgrade to 8.1.0, fix dependency typing_extensions, change some packages to `wheel` <!-- ^ Please provide a concise and informative title. --> <!-- ^ Don't put issue numbers in the title, do this in the PR description below. --> <!-- ^ For example, instead of "Fixes #12345" use "Introduce new method to calculate 1 + 2". --> <!-- v Describe your changes below in detail. --> <!-- v Why is this change required? What problem does it solve? --> <!-- v If this PR resolves an open issue, please link to it here. For example, "Fixes #12345". --> Currently several packages show a (non-fatal) build error like this: ``` [asttokens-2.4.1] [spkg-install] < INFO: pip is looking at multiple versions of setuptools-scm to determine [asttokens-2.4.1] [spkg-install] which version is compatible with other requirements. This could take a [asttokens-2.4.1] [spkg-install] while. [asttokens-2.4.1] [spkg-install] < ERROR: Could not find a version that satisfies the requirement typing- [asttokens-2.4.1] [spkg-install] extensions (from setuptools-scm) (from versions: none) [asttokens-2.4.1] [spkg-install] < ERROR: No matching distribution found for typing-extensions ``` The reason: `setuptools_scm` 8.0.4 (our current version) has an unconditional dependency on `typing_extensions`, but our `spkg- configure.m4` marks that as "not required" when using Python >= 3.11. In this PR: - We reduce several of these packages to (platform-independent) wheel packages (and incidental updates) -- so that there is no build dependency any more - Two packages (`hatch_*`) that were build dependencies only are deleted - We upgrade `setuptools_scm` to 8.1.0, which conditionalizes the dependency on `typing_extensions` on `python_version < "3.10"` https://github.com/pypa/setuptools_scm/blob/v8.1.0/pyproject.toml#L46 ### :memo: Checklist <!-- Put an `x` in all the boxes that apply. --> - [x] The title is concise and informative. - [x] The description explains in detail what this PR is about. - [ ] I have linked a relevant issue or discussion. - [ ] I have created tests covering the changes. - [ ] I have updated the documentation and checked the documentation preview. ### :hourglass: Dependencies <!-- List all open PRs that this PR logically depends on. For example, --> <!-- - #12345: short description why this is a dependency --> <!-- - #34567: ... --> URL: https://github.com/sagemath/sage/pull/38226 Reported by: Matthias Köppe Reviewer(s): Kwankyu Lee
Author
Release Manager
Loading