Skip to content

Commit 3547790

Browse files
roed314claude
andcommitted
Support older setuptools; expose lmfdb_search as a console script
Sage ships its own setuptools (73.0.1 in sage 10.7), which can end up performing the build (e.g. with --no-build-isolation), so use license metadata that setuptools >= 64 understands rather than a PEP 639 SPDX string, which requires setuptools >= 77. Also register the new command-line search tool as a console script, so that pip installs get lmfdb_search on the PATH alongside lmfdb. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 12d826d commit 3547790

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

pyproject.toml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
1+
# setuptools>=64 rather than something newer: sage ships its own setuptools,
2+
# which can end up being used for the build (e.g. with --no-build-isolation),
3+
# so we stick to metadata that older versions understand (in particular the
4+
# license table rather than a PEP 639 SPDX string)
15
[build-system]
2-
requires = ["setuptools>=77"]
6+
requires = ["setuptools>=64"]
37
build-backend = "setuptools.build_meta"
48

59
[project]
610
name = "lmfdb"
711
dynamic = ["version"]
812
description = "The L-functions and modular forms database (LMFDB): python library and website"
913
readme = "README.md"
10-
license = "GPL-2.0-or-later"
11-
license-files = ["LICENSE"]
14+
license = {text = "GPL-2.0-or-later"}
1215
requires-python = ">=3.9"
1316
authors = [
1417
{name = "The LMFDB Collaboration"},
@@ -18,6 +21,7 @@ classifiers = [
1821
"Development Status :: 5 - Production/Stable",
1922
"Framework :: Flask",
2023
"Intended Audience :: Science/Research",
24+
"License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)",
2125
"Programming Language :: Python :: 3",
2226
"Topic :: Scientific/Engineering :: Mathematics",
2327
]
@@ -60,6 +64,7 @@ Issues = "https://github.com/LMFDB/lmfdb/issues"
6064

6165
[project.scripts]
6266
lmfdb = "lmfdb.website:main"
67+
lmfdb_search = "lmfdb.cmdline_search:main"
6368

6469
[tool.setuptools]
6570
include-package-data = true

0 commit comments

Comments
 (0)