Skip to content

Commit 872d572

Browse files
author
Release Manager
committed
sagemathgh-36562: `pkgs/sage-{docbuild,setup,sws2rst}`: Migrate from `setup.cfg` to `pyproject.toml` <!-- ^^^^^ Please provide a concise, informative and self-explanatory title. Don't put issue numbers in there, do this in the PR body below. For example, instead of "Fixes sagemath#1234" use "Introduce new method to calculate 1+1" --> <!-- Describe your changes here in detail --> <!-- Why is this change required? What problem does it solve? --> <!-- If this PR resolves an open issue, please link to it here. For example "Fixes sagemath#12345". --> - Split out from and part of sagemath#33577 <!-- If your change requires a documentation PR, please link it appropriately. --> ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. --> <!-- If your change requires a documentation PR, please link it appropriately --> <!-- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> <!-- Feel free to remove irrelevant items. --> - [x] The title is concise, informative, and self-explanatory. - [ ] 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 - sagemath#12345: short description why this is a dependency - sagemath#34567: ... --> <!-- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> URL: sagemath#36562 Reported by: Matthias Köppe Reviewer(s): François Bissey, Matthias Köppe
2 parents 39bbe48 + 784ecc8 commit 872d572

File tree

15 files changed

+121
-87
lines changed

15 files changed

+121
-87
lines changed

pkgs/sage-docbuild/pyproject.toml

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
[build-system]
2+
requires = ["setuptools>=61.2"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "sage-docbuild"
7+
description = "Sage: Open Source Mathematics Software: Build system of the Sage documentation"
8+
license = {text = "GNU General Public License (GPL) v2 or later"}
9+
authors = [{name = "The Sage Developers", email = "[email protected]"}]
10+
classifiers = [
11+
"Development Status :: 6 - Mature",
12+
"Intended Audience :: Education",
13+
"Intended Audience :: Science/Research",
14+
"License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)",
15+
"Operating System :: POSIX",
16+
"Operating System :: MacOS :: MacOS X",
17+
"Programming Language :: Python :: 3 :: Only",
18+
"Programming Language :: Python :: 3.9",
19+
"Programming Language :: Python :: 3.10",
20+
"Programming Language :: Python :: 3.11",
21+
"Programming Language :: Python :: Implementation :: CPython",
22+
"Topic :: Scientific/Engineering :: Mathematics",
23+
]
24+
urls = {Homepage = "https://www.sagemath.org"}
25+
dependencies = ["sphinx"]
26+
dynamic = ["version"]
27+
28+
[project.readme]
29+
file = "README.rst"
30+
content-type = "text/x-rst"
31+
32+
[tool.setuptools]
33+
packages = [
34+
"sage_docbuild",
35+
"sage_docbuild.ext",
36+
]
37+
include-package-data = false
38+
39+
[tool.setuptools.dynamic]
40+
version = {file = ["VERSION.txt"]}

pkgs/sage-docbuild/setup.cfg

-32
This file was deleted.

pkgs/sage-setup/pyproject.toml

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
[build-system]
2+
requires = ["setuptools>=61.2"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "sage-setup"
7+
description = "Sage: Open Source Mathematics Software: Build system of the Sage library"
8+
license = {text = "GNU General Public License (GPL) v2 or later"}
9+
authors = [{name = "The Sage Developers", email = "[email protected]"}]
10+
classifiers = [
11+
"Development Status :: 6 - Mature",
12+
"Intended Audience :: Education",
13+
"Intended Audience :: Science/Research",
14+
"License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)",
15+
"Operating System :: POSIX",
16+
"Operating System :: MacOS :: MacOS X",
17+
"Programming Language :: Python :: 3 :: Only",
18+
"Programming Language :: Python :: 3.9",
19+
"Programming Language :: Python :: 3.10",
20+
"Programming Language :: Python :: 3.11",
21+
"Programming Language :: Python :: Implementation :: CPython",
22+
"Topic :: Scientific/Engineering :: Mathematics",
23+
]
24+
urls = {Homepage = "https://www.sagemath.org"}
25+
requires-python = ">=3.9, <3.12"
26+
dependencies = []
27+
dynamic = ["version"]
28+
29+
[project.readme]
30+
file = "README.rst"
31+
content-type = "text/x-rst"
32+
33+
[project.optional-dependencies]
34+
autogen = ["jinja2"]
35+
36+
[tool.setuptools]
37+
packages = [
38+
"sage_setup",
39+
"sage_setup.autogen",
40+
"sage_setup.autogen.interpreters",
41+
"sage_setup.autogen.interpreters.specs",
42+
"sage_setup.command",
43+
]
44+
include-package-data = false
45+
46+
[tool.setuptools.dynamic]
47+
version = {file = ["VERSION.txt"]}

pkgs/sage-setup/setup.cfg

-39
This file was deleted.

pkgs/sage-sws2rst/pyproject.toml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
[build-system]
2+
requires = ["setuptools>=61.2"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "sage-sws2rst"
7+
description = "Sage: Open Source Mathematics Software: SageNB worksheet converter"
8+
license = {text = "GNU General Public License (GPL) v3 or later"}
9+
authors = [{name = "The Sage Developers", email = "[email protected]"}]
10+
urls = {Homepage = "https://www.sagemath.org"}
11+
dynamic = ["version"]
12+
13+
[project.readme]
14+
file = "README.rst"
15+
content-type = "text/x-rst"
16+
17+
[tool.setuptools]
18+
script-files = ["bin/sage-sws2rst"]
19+
include-package-data = false
20+
21+
[tool.setuptools.packages]
22+
find = {namespaces = false}
23+
24+
[tool.setuptools.dynamic]
25+
version = {file = ["VERSION.txt"]}

pkgs/sage-sws2rst/setup.cfg

-16
This file was deleted.

pkgs/sagemath-bliss/pyproject.toml.m4

+1
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@ requires = [
88
SPKG_INSTALL_REQUIRES_sagemath_environment
99
SPKG_INSTALL_REQUIRES_cython
1010
SPKG_INSTALL_REQUIRES_cysignals
11+
SPKG_INSTALL_REQUIRES_pkgconfig
1112
]
1213
build-backend = "setuptools.build_meta"

pkgs/sagemath-categories/pyproject.toml.m4

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ requires = [
1010
SPKG_INSTALL_REQUIRES_cython
1111
SPKG_INSTALL_REQUIRES_gmpy2
1212
SPKG_INSTALL_REQUIRES_cysignals
13+
SPKG_INSTALL_REQUIRES_pkgconfig
1314
]
1415
build-backend = "setuptools.build_meta"
1516

pkgs/sagemath-coxeter3/pyproject.toml.m4

+1
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@ requires = [
77
SPKG_INSTALL_REQUIRES_sagemath_environment
88
SPKG_INSTALL_REQUIRES_cython
99
SPKG_INSTALL_REQUIRES_cysignals
10+
SPKG_INSTALL_REQUIRES_pkgconfig
1011
]
1112
build-backend = "setuptools.build_meta"

pkgs/sagemath-mcqd/pyproject.toml.m4

+1
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@ requires = [
88
SPKG_INSTALL_REQUIRES_cython
99
SPKG_INSTALL_REQUIRES_memory_allocator
1010
SPKG_INSTALL_REQUIRES_cysignals
11+
SPKG_INSTALL_REQUIRES_pkgconfig
1112
]
1213
build-backend = "setuptools.build_meta"

pkgs/sagemath-meataxe/pyproject.toml.m4

+1
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@ requires = [
77
SPKG_INSTALL_REQUIRES_sagemath_environment
88
SPKG_INSTALL_REQUIRES_cython
99
SPKG_INSTALL_REQUIRES_cysignals
10+
SPKG_INSTALL_REQUIRES_pkgconfig
1011
]
1112
build-backend = "setuptools.build_meta"

pkgs/sagemath-objects/pyproject.toml.m4

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ requires = [
99
SPKG_INSTALL_REQUIRES_cython
1010
SPKG_INSTALL_REQUIRES_gmpy2
1111
SPKG_INSTALL_REQUIRES_cysignals
12+
SPKG_INSTALL_REQUIRES_pkgconfig
1213
]
1314
build-backend = "setuptools.build_meta"
1415

pkgs/sagemath-sirocco/pyproject.toml.m4

+1
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@ requires = [
88
SPKG_INSTALL_REQUIRES_cython
99
SPKG_INSTALL_REQUIRES_cypari
1010
SPKG_INSTALL_REQUIRES_cysignals
11+
SPKG_INSTALL_REQUIRES_pkgconfig
1112
]
1213
build-backend = "setuptools.build_meta"

pkgs/sagemath-tdlib/pyproject.toml.m4

+1
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@ requires = [
77
SPKG_INSTALL_REQUIRES_sagemath_environment
88
SPKG_INSTALL_REQUIRES_cython
99
SPKG_INSTALL_REQUIRES_cysignals
10+
SPKG_INSTALL_REQUIRES_pkgconfig
1011
]
1112
build-backend = "setuptools.build_meta"

src/pyproject.toml.m4

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[build-system]
22
# Minimum requirements for the build system to execute.
33
requires = [
4+
"sage_setup[autogen]",
45
# Some version of sage-conf is required.
56
# Note that PEP517/518 have no notion of optional sage_spkg dependencies:
67
# https://github.com/pypa/pip/issues/6144

0 commit comments

Comments
 (0)