-
-
Notifications
You must be signed in to change notification settings - Fork 523
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pkgs/sage-{docbuild,setup,sws2rst}
: Migrate from setup.cfg
to pyproject.toml
#36562
Merged
Merged
Changes from 6 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
d514d8d
pkgs/sage-sws2rst (pyproject.toml): Convert from setup.cfg using ini2…
mkoeppe 6fa10e9
pkgs/sage-docbuild (pyproject.toml): Convert from setup.cfg using ini…
mkoeppe c67bd9a
pkgs/sage-setup (pyproject.toml): Convert from setup.cfg using ini2to…
mkoeppe 2b94d8d
pkgs/sage-setup/pyproject.toml: Remove Python 3.8
mkoeppe 02799e4
pkgs/sage-setup/pyproject.toml: Remove pkgconfig, make jinja2 an opti…
mkoeppe 0eef981
src/pyproject.toml.m4: Use sage_setup[autogen]
mkoeppe 7da8834
pkgs/sagemath-{bliss,coxeter3,...}/pyproject.toml.m4: Add pkgconfig t…
mkoeppe 815ce13
pkgs/sagemath-{objects,categories}/pyproject.toml.m4: Add pkgconfig t…
mkoeppe 0c25b8f
Merge branch 'develop' into sage_sws2rst_pyproject_toml
mkoeppe 784ecc8
Merge branch 'develop' into sage_sws2rst_pyproject_toml
mkoeppe File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"]} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"]} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"]} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't sage_docbuild also depend on jupyter-sphinx?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we are treating the dependencies on Sphinx extensions (declared in sage_docbuild/conf.py) as belonging to sagemath_doc_html
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I understand the logic but I am not very comfortable with it. Part of me feels that if you are going that route, sphinx should be treated the same way. It is not needed at install either, I think.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A difference is that sphinx is imported by
sage_docbuild.sphinxbuild
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not think I will argue with that one. Where to declare runtime dependency seems to be a bit unsettled.