Skip to content

Commit 8925453

Browse files
author
Release Manager
committed
sagemathgh-37482: src/pyproject.toml: Add 'external' section per draft PEP 725 (unbundled from sagemath#37446) <!-- ^ 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 sagemath#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 sagemath#12345". --> This is aspirational decoration for future use by skeleton generators by distributions such as conda, sage-the-distribution, pyodide. Split out from the disputed sagemath#37446, where it is bundled with a number of other changes, including: creating a `pyproject.toml` file in `SAGE_ROOT`, hardcoding versions of Python packages instead of using the existing `sage_bootstrap` infrastructure, etc. @roed314 @vbraun **The scope of PRs should be chosen to minimize friction, not to maximize friction.** sagemath#36726 (comment) Author: @mkoeppe, based on @tobiasdiez's sagemath#37446. ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. --> - [X] The title is concise and informative. - [ ] The description explains in detail what this PR is about. - [X] I have linked a relevant issue or discussion. - [ ] I have created tests covering the changes. - [ ] I have updated the documentation accordingly. ### ⌛ Dependencies <!-- List all open PRs that this PR logically depends on. For example, --> <!-- - sagemath#12345: short description why this is a dependency --> <!-- - sagemath#34567: ... --> URL: sagemath#37482 Reported by: Matthias Köppe Reviewer(s):
2 parents 9fb1a15 + ddfd7c0 commit 8925453

File tree

1 file changed

+65
-0
lines changed

1 file changed

+65
-0
lines changed

src/pyproject.toml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,68 @@ build-backend = "setuptools.build_meta"
2121
platforms = [
2222
'osx-64', 'linux-64', 'linux-aarch64', 'osx-arm64'
2323
]
24+
25+
[external]
26+
# External dependencies in the format proposed by https://peps.python.org/pep-0725
27+
# In the future, sage-the-distribution can read this information
28+
build-requires = [
29+
"virtual:compiler/c",
30+
"virtual:compiler/cpp",
31+
"pkg:generic/pkg-config"
32+
]
33+
34+
host-requires = [
35+
"virtual:interface/blas",
36+
"pkg:generic/boost",
37+
"pkg:generic/brial",
38+
"pkg:generic/cddlib",
39+
"pkg:generic/cliquer",
40+
"pkg:generic/ecl",
41+
"pkg:generic/eclib",
42+
"pkg:generic/ecm",
43+
"pkg:generic/fflas-ffpack",
44+
"pkg:generic/fplll",
45+
"pkg:generic/flint",
46+
"pkg:generic/libgd",
47+
"pkg:generic/gap",
48+
"pkg:generic/gfan",
49+
"pkg:generic/giac",
50+
"pkg:generic/givaro",
51+
"pkg:generic/glpk",
52+
"pkg:generic/gmp",
53+
"pkg:generic/gsl",
54+
"pkg:generic/iml",
55+
"pkg:generic/lcalc",
56+
"pkg:generic/libbraiding",
57+
"pkg:generic/libhomfly",
58+
"pkg:generic/linbox",
59+
"pkg:generic/lrcalc",
60+
"pkg:generic/m4ri",
61+
"pkg:generic/m4rie",
62+
"pkg:generic/maxima",
63+
"pkg:generic/mpc",
64+
"pkg:generic/mpfi",
65+
"pkg:generic/mpfr",
66+
"pkg:generic/nauty",
67+
"pkg:generic/ntl",
68+
"pkg:generic/palp",
69+
"pkg:generic/pari",
70+
"pkg:generic/pari-elldata",
71+
"pkg:generic/pari-galdata",
72+
"pkg:generic/pari-seadata",
73+
"pkg:generic/planarity",
74+
"pkg:generic/ppl",
75+
"pkg:generic/primesieve",
76+
"pkg:generic/primecount",
77+
"pkg:generic/qhull",
78+
"pkg:generic/rw",
79+
"pkg:generic/singular",
80+
"pkg:generic/symmetrica",
81+
"pkg:generic/sympow",
82+
]
83+
84+
dependencies = [
85+
"pkg:generic/tachyon",
86+
"pkg:generic/sagemath-polytopes-db",
87+
"pkg:generic/sagemath-elliptic-curves",
88+
]

0 commit comments

Comments
 (0)