Skip to content

Commit

Permalink
gh-36562: pkgs/sage-{docbuild,setup,sws2rst}: Migrate from `setup.c…
Browse files Browse the repository at this point in the history
…fg` 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 #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 #12345". -->
- Split out from and part of #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
- #12345: short description why this is a dependency
- #34567: ...
-->

<!-- If you're unsure about any of these, don't hesitate to ask. We're
here to help! -->
    
URL: #36562
Reported by: Matthias Köppe
Reviewer(s): François Bissey, Matthias Köppe
  • Loading branch information
Release Manager committed Dec 4, 2023
2 parents d67dba4 + 784ecc8 commit e86721e
Show file tree
Hide file tree
Showing 15 changed files with 121 additions and 87 deletions.
40 changes: 40 additions & 0 deletions pkgs/sage-docbuild/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
[build-system]
requires = ["setuptools>=61.2"]
build-backend = "setuptools.build_meta"

[project]
name = "sage-docbuild"
description = "Sage: Open Source Mathematics Software: Build system of the Sage documentation"
license = {text = "GNU General Public License (GPL) v2 or later"}
authors = [{name = "The Sage Developers", email = "sage-support@googlegroups.com"}]
classifiers = [
"Development Status :: 6 - Mature",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)",
"Operating System :: POSIX",
"Operating System :: MacOS :: MacOS X",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Scientific/Engineering :: Mathematics",
]
urls = {Homepage = "https://www.sagemath.org"}
dependencies = ["sphinx"]
dynamic = ["version"]

[project.readme]
file = "README.rst"
content-type = "text/x-rst"

[tool.setuptools]
packages = [
"sage_docbuild",
"sage_docbuild.ext",
]
include-package-data = false

[tool.setuptools.dynamic]
version = {file = ["VERSION.txt"]}
32 changes: 0 additions & 32 deletions pkgs/sage-docbuild/setup.cfg

This file was deleted.

47 changes: 47 additions & 0 deletions pkgs/sage-setup/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
[build-system]
requires = ["setuptools>=61.2"]
build-backend = "setuptools.build_meta"

[project]
name = "sage-setup"
description = "Sage: Open Source Mathematics Software: Build system of the Sage library"
license = {text = "GNU General Public License (GPL) v2 or later"}
authors = [{name = "The Sage Developers", email = "sage-support@googlegroups.com"}]
classifiers = [
"Development Status :: 6 - Mature",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)",
"Operating System :: POSIX",
"Operating System :: MacOS :: MacOS X",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Scientific/Engineering :: Mathematics",
]
urls = {Homepage = "https://www.sagemath.org"}
requires-python = ">=3.9, <3.12"
dependencies = []
dynamic = ["version"]

[project.readme]
file = "README.rst"
content-type = "text/x-rst"

[project.optional-dependencies]
autogen = ["jinja2"]

[tool.setuptools]
packages = [
"sage_setup",
"sage_setup.autogen",
"sage_setup.autogen.interpreters",
"sage_setup.autogen.interpreters.specs",
"sage_setup.command",
]
include-package-data = false

[tool.setuptools.dynamic]
version = {file = ["VERSION.txt"]}
39 changes: 0 additions & 39 deletions pkgs/sage-setup/setup.cfg

This file was deleted.

25 changes: 25 additions & 0 deletions pkgs/sage-sws2rst/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
[build-system]
requires = ["setuptools>=61.2"]
build-backend = "setuptools.build_meta"

[project]
name = "sage-sws2rst"
description = "Sage: Open Source Mathematics Software: SageNB worksheet converter"
license = {text = "GNU General Public License (GPL) v3 or later"}
authors = [{name = "The Sage Developers", email = "sage-support@googlegroups.com"}]
urls = {Homepage = "https://www.sagemath.org"}
dynamic = ["version"]

[project.readme]
file = "README.rst"
content-type = "text/x-rst"

[tool.setuptools]
script-files = ["bin/sage-sws2rst"]
include-package-data = false

[tool.setuptools.packages]
find = {namespaces = false}

[tool.setuptools.dynamic]
version = {file = ["VERSION.txt"]}
16 changes: 0 additions & 16 deletions pkgs/sage-sws2rst/setup.cfg

This file was deleted.

1 change: 1 addition & 0 deletions pkgs/sagemath-bliss/pyproject.toml.m4
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ requires = [
SPKG_INSTALL_REQUIRES_sagemath_environment
SPKG_INSTALL_REQUIRES_cython
SPKG_INSTALL_REQUIRES_cysignals
SPKG_INSTALL_REQUIRES_pkgconfig
]
build-backend = "setuptools.build_meta"
1 change: 1 addition & 0 deletions pkgs/sagemath-categories/pyproject.toml.m4
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ requires = [
SPKG_INSTALL_REQUIRES_cython
SPKG_INSTALL_REQUIRES_gmpy2
SPKG_INSTALL_REQUIRES_cysignals
SPKG_INSTALL_REQUIRES_pkgconfig
]
build-backend = "setuptools.build_meta"

Expand Down
1 change: 1 addition & 0 deletions pkgs/sagemath-coxeter3/pyproject.toml.m4
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ requires = [
SPKG_INSTALL_REQUIRES_sagemath_environment
SPKG_INSTALL_REQUIRES_cython
SPKG_INSTALL_REQUIRES_cysignals
SPKG_INSTALL_REQUIRES_pkgconfig
]
build-backend = "setuptools.build_meta"
1 change: 1 addition & 0 deletions pkgs/sagemath-mcqd/pyproject.toml.m4
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ requires = [
SPKG_INSTALL_REQUIRES_cython
SPKG_INSTALL_REQUIRES_memory_allocator
SPKG_INSTALL_REQUIRES_cysignals
SPKG_INSTALL_REQUIRES_pkgconfig
]
build-backend = "setuptools.build_meta"
1 change: 1 addition & 0 deletions pkgs/sagemath-meataxe/pyproject.toml.m4
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ requires = [
SPKG_INSTALL_REQUIRES_sagemath_environment
SPKG_INSTALL_REQUIRES_cython
SPKG_INSTALL_REQUIRES_cysignals
SPKG_INSTALL_REQUIRES_pkgconfig
]
build-backend = "setuptools.build_meta"
1 change: 1 addition & 0 deletions pkgs/sagemath-objects/pyproject.toml.m4
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ requires = [
SPKG_INSTALL_REQUIRES_cython
SPKG_INSTALL_REQUIRES_gmpy2
SPKG_INSTALL_REQUIRES_cysignals
SPKG_INSTALL_REQUIRES_pkgconfig
]
build-backend = "setuptools.build_meta"

Expand Down
1 change: 1 addition & 0 deletions pkgs/sagemath-sirocco/pyproject.toml.m4
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ requires = [
SPKG_INSTALL_REQUIRES_cython
SPKG_INSTALL_REQUIRES_cypari
SPKG_INSTALL_REQUIRES_cysignals
SPKG_INSTALL_REQUIRES_pkgconfig
]
build-backend = "setuptools.build_meta"
1 change: 1 addition & 0 deletions pkgs/sagemath-tdlib/pyproject.toml.m4
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ requires = [
SPKG_INSTALL_REQUIRES_sagemath_environment
SPKG_INSTALL_REQUIRES_cython
SPKG_INSTALL_REQUIRES_cysignals
SPKG_INSTALL_REQUIRES_pkgconfig
]
build-backend = "setuptools.build_meta"
1 change: 1 addition & 0 deletions src/pyproject.toml.m4
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[build-system]
# Minimum requirements for the build system to execute.
requires = [
"sage_setup[autogen]",
# Some version of sage-conf is required.
# Note that PEP517/518 have no notion of optional sage_spkg dependencies:
# https://github.com/pypa/pip/issues/6144
Expand Down

0 comments on commit e86721e

Please sign in to comment.