Skip to content

Commit

Permalink
pyproject.toml: Move packages, package-data here from setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mkoeppe committed Mar 9, 2024
1 parent 995b6a9 commit 67c24a6
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 63 deletions.
68 changes: 68 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -74,5 +74,73 @@ 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__"}
63 changes: 0 additions & 63 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,70 +101,7 @@ def get_srcdir():
setup(
cmdclass=CMDCLASS,
ext_modules=EXTENSIONS,
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",
],
dependency_links=DEPENDENCY_LINKS,
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",
"requirements-cython.txt",
"requirements-full.txt",
],
"mathics.doc": ["documentation/*.mdoc", "xml/data"],
"mathics.builtin.pymimesniffer": ["mimetypes.xml"],
"pymathics": ["doc/documentation/*.mdoc", "doc/xml/data"],
},
# don't pack Mathics in egg because of media files, etc.
zip_safe=False,
)

0 comments on commit 67c24a6

Please sign in to comment.