Skip to content

Commit aa81752

Browse files
author
Release Manager
committed
sagemathgh-36561: `pkgs/sage-conf`: Move metadata 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". --> - In part split out from sagemath#36489 - 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: ... --> - Depends on sagemath#36533 (which changes setup.cfg, merged here) - Depends on sagemath#36885 <!-- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> URL: sagemath#36561 Reported by: Matthias Köppe Reviewer(s): François Bissey
2 parents 64dccb3 + 8a39542 commit aa81752

File tree

9 files changed

+49
-29
lines changed

9 files changed

+49
-29
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ build/bin/sage-build-env-config
193193
/pkgs/*/*.egg-info
194194
/pkgs/*/.tox
195195

196+
/pkgs/sage-conf/pyproject.toml
196197
/pkgs/sage-conf_pypi/sage_root/config.log
197198
/pkgs/sage-conf_pypi/sage_root/config.status
198199
/pkgs/sage-conf_pypi/sage_root/local/

build/pkgs/sage_conf/bootstrap

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../sagelib/bootstrap

build/pkgs/sage_conf/dependencies

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
$(SAGE_ROOT)/pkgs/sage-conf/_sage_conf/_conf.py $(SAGE_ROOT)/pkgs/sage-conf/setup.cfg $(SAGE_ROOT)/pkgs/sage-conf/bin/sage-env-config | $(PYTHON_TOOLCHAIN) $(PYTHON)
1+
$(SAGE_ROOT)/pkgs/sage-conf/_sage_conf/_conf.py $(SAGE_ROOT)/pkgs/sage-conf/pyproject.toml $(SAGE_ROOT)/pkgs/sage-conf/bin/sage-env-config | $(PYTHON_TOOLCHAIN) $(PYTHON)

pkgs/sage-conf/.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
/_sage_conf/_conf.py
2+
/setup.cfg
3+
/pyproject.toml
24
/build
35
/dist
46
/*.egg-info

pkgs/sage-conf/pyproject.toml

-3
This file was deleted.

pkgs/sage-conf/pyproject.toml.m4

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
include(`sage_spkg_versions_toml.m4')dnl' -*- conf-toml -*-
2+
[build-system]
3+
requires = [
4+
SPKG_INSTALL_REQUIRES_setuptools
5+
]
6+
build-backend = "setuptools.build_meta"
7+
8+
[project]
9+
name = "sage-conf"
10+
description = "Sage: Open Source Mathematics Software: Configuration module for the SageMath library"
11+
readme = "README.rst"
12+
dnl Not including the standard metadata from pyproject_toml_metadata.m4
13+
dnl because sage-conf is GPL v3+.
14+
license = {text = "GNU General Public License (GPL) v3 or later"}
15+
authors = [{name = "The Sage Developers", email = "[email protected]"}]
16+
classifiers = [
17+
"Development Status :: 6 - Mature",
18+
"Intended Audience :: Education",
19+
"Intended Audience :: Science/Research",
20+
"License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)",
21+
"Operating System :: POSIX",
22+
"Operating System :: MacOS :: MacOS X",
23+
"Programming Language :: Python :: 3 :: Only",
24+
"Programming Language :: Python :: 3.9",
25+
"Programming Language :: Python :: 3.10",
26+
"Programming Language :: Python :: 3.11",
27+
"Programming Language :: Python :: Implementation :: CPython",
28+
"Topic :: Scientific/Engineering :: Mathematics",
29+
]
30+
urls = {Homepage = "https://www.sagemath.org"}
31+
requires-python = ">=3.9, <3.12"
32+
dynamic = ["version"]
33+
34+
[project.scripts]
35+
sage-config = "sage_conf:_main"
36+
37+
[tool.setuptools]
38+
packages = ["_sage_conf"]
39+
py-modules = ["sage_conf"]
40+
script-files = ["bin/sage-env-config"]
41+
include-package-data = false
42+
43+
[tool.setuptools.dynamic]
44+
version = {file = ["VERSION.txt"]}

pkgs/sage-conf/setup.cfg

-23
This file was deleted.

pkgs/sage-conf_conda/setup.cfg

-1
This file was deleted.

pkgs/sage-conf_pypi/setup.cfg

-1
This file was deleted.

0 commit comments

Comments
 (0)