-
-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modernize Python metadata (local) (#1014)
Local fork of #1013 - Adds redoes packaging in the form that 3.12 is going to need since setuptools is deprecated. In the process, something happened with the way that Cython gets run and we were then getting lots of Cython type annotation mismatch failures. So these have been corrected. We could split this into just the Cython corrections and then apply the packaging toml changes in #1013. Your thoughts? @mmatera and @mkoeppe --------- Co-authored-by: Matthias Koeppe <[email protected]>
- Loading branch information
Showing
12 changed files
with
188 additions
and
186 deletions.
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
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
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
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
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
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
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
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
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
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
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,146 @@ | ||
[build-system] | ||
requires = [ | ||
"setuptools>=61.2", | ||
"cython>=0.15.1; implementation_name!='pypy'" | ||
] | ||
|
||
[project] | ||
name = "Mathics3" | ||
description = "A general-purpose computer algebra system." | ||
dependencies = [ | ||
"Mathics-Scanner >= 1.3.0", | ||
"llvmlite", | ||
"mpmath>=1.2.0", | ||
"numpy<1.27", | ||
"palettable", | ||
# Pillow 9.1.0 supports BigTIFF with big-endian byte order. | ||
# ExampleData image hedy.tif is in this format. | ||
# Pillow 9.2 handles sunflowers.jpg | ||
"pillow >= 9.2", | ||
"pint", | ||
"python-dateutil", | ||
"requests", | ||
"setuptools", | ||
"sympy>=1.8", | ||
] | ||
requires-python = ">=3.7" | ||
readme = "README.rst" | ||
license = {text = "GPL"} | ||
keywords = ["Mathematica", "Wolfram", "Interpreter", "Shell", "Math", "CAS"] | ||
maintainers = [ | ||
{name = "Mathics Group", email = "[email protected]"}, | ||
] | ||
classifiers = [ | ||
"Intended Audience :: Developers", | ||
"Intended Audience :: Science/Research", | ||
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: Implementation :: CPython", | ||
"Programming Language :: Python :: Implementation :: PyPy", | ||
"Topic :: Scientific/Engineering", | ||
"Topic :: Scientific/Engineering :: Mathematics", | ||
"Topic :: Scientific/Engineering :: Physics", | ||
"Topic :: Software Development :: Interpreters", | ||
] | ||
dynamic = ["version"] | ||
|
||
[project.urls] | ||
Homepage = "https://mathics.org/" | ||
Downloads = "https://github.com/Mathics3/mathics-core/releases" | ||
|
||
[project.optional-dependencies] | ||
dev = [ | ||
"pexpect", | ||
"pytest", | ||
] | ||
full = [ | ||
"ipywidgets", | ||
"lxml", | ||
"psutil", | ||
"pyocr", | ||
"scikit-image >= 0.17", | ||
"unidecode", | ||
"wordcloud >= 1.9.3", | ||
] | ||
cython = [ | ||
"cython", | ||
] | ||
|
||
[project.scripts] | ||
mathics = "mathics.main:main" | ||
|
||
[tool.setuptools] | ||
include-package-data = false | ||
packages = [ | ||
"mathics", | ||
"mathics.algorithm", | ||
"mathics.compile", | ||
"mathics.core", | ||
"mathics.core.convert", | ||
"mathics.core.parser", | ||
"mathics.builtin", | ||
"mathics.builtin.arithfns", | ||
"mathics.builtin.assignments", | ||
"mathics.builtin.atomic", | ||
"mathics.builtin.binary", | ||
"mathics.builtin.box", | ||
"mathics.builtin.colors", | ||
"mathics.builtin.distance", | ||
"mathics.builtin.exp_structure", | ||
"mathics.builtin.drawing", | ||
"mathics.builtin.fileformats", | ||
"mathics.builtin.files_io", | ||
"mathics.builtin.forms", | ||
"mathics.builtin.functional", | ||
"mathics.builtin.image", | ||
"mathics.builtin.intfns", | ||
"mathics.builtin.list", | ||
"mathics.builtin.matrices", | ||
"mathics.builtin.numbers", | ||
"mathics.builtin.numpy_utils", | ||
"mathics.builtin.pymimesniffer", | ||
"mathics.builtin.pympler", | ||
"mathics.builtin.quantum_mechanics", | ||
"mathics.builtin.scipy_utils", | ||
"mathics.builtin.specialfns", | ||
"mathics.builtin.statistics", | ||
"mathics.builtin.string", | ||
"mathics.builtin.testing_expressions", | ||
"mathics.builtin.vectors", | ||
"mathics.eval", | ||
"mathics.doc", | ||
"mathics.format", | ||
] | ||
|
||
[tool.setuptools.package-data] | ||
"mathics" = [ | ||
"data/*.csv", | ||
"data/*.json", | ||
"data/*.yml", | ||
"data/*.yaml", | ||
"data/*.pcl", | ||
"data/ExampleData/*", | ||
"doc/xml/data", | ||
"doc/tex/data", | ||
"autoload/*.m", | ||
"autoload-cli/*.m", | ||
"autoload/formats/*/Import.m", | ||
"autoload/formats/*/Export.m", | ||
"packages/*/*.m", | ||
"packages/*/Kernel/init.m", | ||
] | ||
"mathics.doc" = [ | ||
"documentation/*.mdoc", | ||
"xml/data", | ||
] | ||
"mathics.builtin.pymimesniffer" = [ | ||
"mimetypes.xml", | ||
] | ||
|
||
[tool.setuptools.dynamic] | ||
version = {attr = "mathics.version.__version__"} |
Oops, something went wrong.
ffb3647
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.
Since this PR makes everything work again, I am OK to merge this all together. Thanks again @mkoeppe and @rocky for all this work!