|
2 | 2 | # Minimum requirements for the build system to execute.
|
3 | 3 | requires = [
|
4 | 4 | esyscmd(`sage-get-system-packages install-requires-toml \
|
5 |
| - setuptools \ |
6 |
| - wheel \ |
| 5 | + setuptools_wheel \ |
7 | 6 | ')]
|
8 | 7 | build-backend = "setuptools.build_meta"
|
| 8 | + |
| 9 | +[project] |
| 10 | +name = "sagemath-environment" |
| 11 | +description = "Sage: Open Source Mathematics Software: System and software environment" |
| 12 | +license = {text = "GNU General Public License (GPL) v2 or later"} |
| 13 | +authors = [{name = "The Sage Developers", email = "[email protected]"}] |
| 14 | +classifiers = [ |
| 15 | + "Development Status :: 6 - Mature", |
| 16 | + "Intended Audience :: Education", |
| 17 | + "Intended Audience :: Science/Research", |
| 18 | + "License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)", |
| 19 | + "Operating System :: POSIX", |
| 20 | + "Operating System :: MacOS :: MacOS X", |
| 21 | + "Programming Language :: Python :: 3 :: Only", |
| 22 | + "Programming Language :: Python :: 3.8", |
| 23 | + "Programming Language :: Python :: 3.9", |
| 24 | + "Programming Language :: Python :: 3.10", |
| 25 | + "Programming Language :: Python :: 3.11", |
| 26 | + "Programming Language :: Python :: Implementation :: CPython", |
| 27 | + "Topic :: Scientific/Engineering :: Mathematics", |
| 28 | +] |
| 29 | +urls = {Homepage = "https://www.sagemath.org"} |
| 30 | +requires-python = ">=3.8, <3.12" |
| 31 | +dependencies = ["esyscmd(`sage-get-system-packages install-requires | sed \"2,\\$s/^/ /;\"')dnl"] |
| 32 | +dynamic = ["version"] |
| 33 | + |
| 34 | +[project.readme] |
| 35 | +file = "README.rst" |
| 36 | +content-type = "text/x-rst" |
| 37 | + |
| 38 | +[project.optional-dependencies] |
| 39 | +# sage.env can optionally use sage_conf |
| 40 | +conf = ["esyscmd(`sage-get-system-packages install-requires sage_conf')"] |
| 41 | +# For "sage --docbuild" |
| 42 | +docbuild = ["esyscmd(`sage-get-system-packages install-requires sage_docbuild')"] |
| 43 | +# For "sage", "sage -t", ... |
| 44 | +sage = ["esyscmd(`sage-get-system-packages install-requires sagelib')"] |
| 45 | +# For "sage --cython" |
| 46 | +cython = ["esyscmd(`sage-get-system-packages install-requires cython')"] |
| 47 | +# For "sage --pytest" |
| 48 | +pytest = ["esyscmd(`sage-get-system-packages install-requires pytest')"] |
| 49 | +# For "sage --rst2ipynb" |
| 50 | +rst2ipynb = ["esyscmd(`sage-get-system-packages install-requires rst2ipynb')"] |
| 51 | +# For "sage --sws2rst" |
| 52 | +sws2rst = ["esyscmd(`sage-get-system-packages install-requires sage_sws2rst')"] |
| 53 | + |
| 54 | +[tool.setuptools] |
| 55 | +py-modules = [ |
| 56 | + "sage.all__sagemath_environment", |
| 57 | + "sage.env", |
| 58 | + "sage.version", |
| 59 | + "sage.misc.all__sagemath_environment", |
| 60 | + "sage.misc.package", |
| 61 | + "sage.misc.package_dir", |
| 62 | + "sage.misc.temporary_file", |
| 63 | + "sage.misc.viewer", |
| 64 | +] |
| 65 | +packages = ["sage.features"] |
| 66 | +script-files = [ |
| 67 | + # The sage script |
| 68 | + "bin/sage", |
| 69 | + # Auxiliary scripts for setting up the environment |
| 70 | + "bin/sage-env", |
| 71 | + "bin/sage-num-threads.py", |
| 72 | + "bin/sage-venv-config", |
| 73 | + "bin/sage-version.sh", |
| 74 | + # Auxiliary script for invoking Python in the Sage environment |
| 75 | + "bin/sage-python", |
| 76 | + # Not included: |
| 77 | + # - bin/sage-env-config -- installed by sage_conf |
| 78 | + # - bin/sage-env-config.in -- not to be installed |
| 79 | + # - bin/sage-run, bin/sage-runtests, ... -- installed by sagemath-repl |
| 80 | + # - bin/sage-ipython -- uses sage.repl, so installed by sagemath-repl |
| 81 | +] |
| 82 | +include-package-data = false |
| 83 | + |
| 84 | +[tool.setuptools.dynamic] |
| 85 | +version = {file = ["VERSION.txt"]} |
0 commit comments