pkgs/sagemath-standard: Move metadata from setup.cfg to pyproject.toml#36951
pkgs/sagemath-standard: Move metadata from setup.cfg to pyproject.toml#36951vbraun merged 12 commits intosagemath:developfrom
pkgs/sagemath-standard: Move metadata from setup.cfg to pyproject.toml#36951Conversation
| name = "sagemath-standard" | ||
| description = "Sage: Open Source Mathematics Software: Standard Python Library" | ||
| dependencies = [ | ||
| SPKG_INSTALL_REQUIRES_sage_conf |
There was a problem hiding this comment.
I think you can simply use dynamic metadata and
dependencies = {file = ["build/pkgs/whatever/install-requires.txt", "build/pkgs/whatever2/install-requires.txt", ...]}
There was a problem hiding this comment.
Thanks, but that would not be an improvement.
It would make the sdist of this distribution depend on the monorepo / the Sage distribution.
There was a problem hiding this comment.
setuptools automatically includes the linked files (and only these) in the sdist.
There was a problem hiding this comment.
These file paths build/pkgs/... do not exist in this directory.
There was a problem hiding this comment.
In any case, changes to this design are outside of the scope of this PR. This design is already in place in
- https://github.com/sagemath/sage/blob/develop/pkgs/sagemath-bliss/pyproject.toml.m4
- https://github.com/sagemath/sage/blob/develop/pkgs/sagemath-categories/pyproject.toml.m4
- https://github.com/sagemath/sage/blob/develop/pkgs/sagemath-coxeter3/pyproject.toml.m4
- https://github.com/sagemath/sage/blob/develop/pkgs/sagemath-environment/pyproject.toml.m4
- https://github.com/sagemath/sage/blob/develop/pkgs/sagemath-mcqd/pyproject.toml.m4
- https://github.com/sagemath/sage/blob/develop/pkgs/sagemath-meataxe/pyproject.toml.m4
- https://github.com/sagemath/sage/blob/develop/pkgs/sagemath-objects/pyproject.toml.m4
- https://github.com/sagemath/sage/blob/develop/pkgs/sagemath-repl/pyproject.toml.m4
- https://github.com/sagemath/sage/blob/develop/pkgs/sagemath-sirocco/pyproject.toml.m4
- https://github.com/sagemath/sage/blob/develop/pkgs/sagemath-tdlib/pyproject.toml.m4
|
Let's get it in. |
|
Rebase onto |
…ve src/setup.cfg.m4, update docs
|
Rebased. |
|
Both choices for the metadata ( |
Yes, but |
|
Also, in PRs such as the following, I make less code dependent on the file layout within |
No, I wouldn't know how it could. |
|
Let's get this in please. |
@kwankyu Sorry, forgot to mention that this suggestion was implemented in #36982. To not hold up this PR here until #36982 is merged, I would be fine for now with putting the dynamically created information in file that is generated during bootstrap and included in |
There's now a conflicting proposal in #36982, both are probably headed to the dispute pile. |
This PR does not have to wait for any such innovations. |
|
Merge conflict |
Once a ticket has a "disputed" label, its review status should not be changed. (This policy was communicated only to a few developers, not widely as it should have been.) On those PRs, the ticket was labeled as disputed, then the ticket was given a positive review, and then the positive review was undone to comply with the policy to keep the labels as they were when it was tagged as disputed. |
I added the |
@orlitzky Elsewhere, I have explained how pointing to such so-called competing PRs presents a false dichotomy. There's nothing in this PR here that would preclude making design changes as a follow up. In the meantime, this PR is ready (and has been, for months) and is an obvious and clear improvement. |
Yes, but in certain cases you're asking for commit wars to replace the label wars and that will waste a lot more of everyone's time. |
|
@orlitzky Yes, I can also imagine many more ways how bad actors can obstruct and disrupt development. But this should not have a bearing on how we do Sage development. Our standard of review is clear: Is it an improvement? Is it ready? Then we merge it. |
|
I'm posting to record a vote of -1 on behalf of Tobias Diez. |
|
+1 from me. |
|
Still +1 from me. |
|
Based on @kwankyu's suggestion and discussion by the new Code of Conduct Committee, I'm setting this ticket to Needs Review so that all the disputed tickets start with a clean slate prior to being update based on voting. Starting at midnight US/Pacific time tonight anyone involved should feel free to set the status to positive review or needs review in accordance with the new policy. |
…tandard_pyproject_toml
|
You missed my concerns #36951 (comment) I'm -1 on this for several reasons:
|
No, I didn't.
Scope, Gonzalo, scope. As explained in #36951 (comment)
No, I don't to fix anything. I've explained it to you already. That's simply not how setuptools works.
No, it does not. |
|
Documentation preview for this PR (built with commit 18cb712; changes) is ready! 🎉 |
|
+1 from me. |
|
Thanks, John. |
Modernize the metadata.
This is a trivial "chore" PR. It updates Python metadata to the latest format. No controversies about the current format are known about in the Python community. In a typical open source project, someone in a Maintainer role would open a PR and then immediately merge it, or when receiving such a PR from the outside, quickly review and merge it (examples: my PRs pytest-dev/pytest-mock#410 (merged in within 1 day), pyodide/pyodide#4472, pytest-dev/pytest-xdist#1020,
sagemath/cypari2#158, fplll/fpylll#258, polymake/JuPyMake#2, cvxpy/cvxpy#2276, sagemath/cysignals#177).
Also fixes the
pyproject.tomlbuild requirements of sagemath-standard, broken since 10.2, hence "critical".📝 Checklist
⌛ Dependencies