提交 665cc921 authored 作者: Ben Mares's avatar Ben Mares 提交者: Brandon T. Willard

Move configuration to setup.cfg

上级 f2a7fb99
[metadata]
name = aesara
author = aesara-devs
author_email = aesara.devs@gmail.com
description = Optimizing compiler for evaluating mathematical expressions on CPUs and GPUs.
long_description = file: DESCRIPTION.txt
long_description_content_type = text/x-rst
url = https://github.com/aesara-devs/aesara
license = BSD
platforms =
Windows
Linux
Solaris
Mac OS-X
Unix
classifiers =
Development Status :: 6 - Mature
Intended Audience :: Education
Intended Audience :: Science/Research
Intended Audience :: Developers
License :: OSI Approved :: BSD License
Programming Language :: Python
Topic :: Software Development :: Code Generators
Topic :: Software Development :: Compilers
Topic :: Scientific/Engineering :: Mathematics
Operating System :: Microsoft :: Windows
Operating System :: POSIX
Operating System :: Unix
Operating System :: MacOS
Programming Language :: Python :: 3
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
keywords =
aesara
math
numerical
symbolic
blas
numpy
autodiff
differentiation
[options]
packages = find:
install_requires =
numpy >=1.17.0
scipy >=0.14
filelock
etuples
logical-unification
miniKanren
cons
typing_extensions
setuptools >=48.0.0
[options.packages.find]
exclude =
tests
tests.*
[options.entry_points]
console_scripts =
aesara-cache = bin.aesara_cache:main
[options.package_data]
aesara =
*.txt
*.rst
*.txt
*.rst
*.cu
*.cuh
*.c
*.sh
*.pkl
*.h
*.cpp
ChangeLog
c_code/*
py.typed
aesara.misc =
*.sh
aesara.d3viz =
html/*
css/*
js/*
[flake8] [flake8]
select = C,E,F,W select = C,E,F,W
ignore = E203,E231,E501,E741,W503,W504,C901 ignore = E203,E231,E501,E741,W503,W504,C901
......
#!/usr/bin/env python #!/usr/bin/env python
import os import os
from setuptools import find_packages, setup from setuptools import setup
from setuptools.dist import Distribution
import versioneer import versioneer
dist = Distribution()
dist.parse_config_files()
def read_file(filename): def read_file(filename):
with open(filename, "rt") as buff: with open(filename, "rt") as buff:
return buff.read() return buff.read()
NAME = "aesara" NAME: str = dist.get_name() # type: ignore
MAINTAINER = "Aesara developers"
MAINTAINER_EMAIL = "aesara.devs@gmail.com"
DESCRIPTION = (
"Optimizing compiler for evaluating mathematical expressions on CPUs and GPUs."
)
LONG_DESCRIPTION = read_file("DESCRIPTION.txt")
URL = "https://github.com/aesara-devs/aesara"
LICENSE = "BSD"
AUTHOR = "aesara-devs"
AUTHOR_EMAIL = "aesara.devs@gmail.com"
PLATFORMS = ["Windows", "Linux", "Solaris", "Mac OS-X", "Unix"]
CLASSIFIERS = """\
Development Status :: 6 - Mature
Intended Audience :: Education
Intended Audience :: Science/Research
Intended Audience :: Developers
License :: OSI Approved :: BSD License
Programming Language :: Python
Topic :: Software Development :: Code Generators
Topic :: Software Development :: Compilers
Topic :: Scientific/Engineering :: Mathematics
Operating System :: Microsoft :: Windows
Operating System :: POSIX
Operating System :: Unix
Operating System :: MacOS
Programming Language :: Python :: 3
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
"""
CLASSIFIERS = [_f for _f in CLASSIFIERS.split("\n") if _f]
install_requires = [
"numpy>=1.17.0",
"scipy>=0.14",
"filelock",
"etuples",
"logical-unification",
"miniKanren",
"cons",
"typing_extensions",
"setuptools>=48.0.0",
]
# Handle builds of nightly release # Handle builds of nightly release
if "BUILD_AESARA_NIGHTLY" in os.environ: if "BUILD_AESARA_NIGHTLY" in os.environ:
...@@ -80,50 +41,4 @@ if __name__ == "__main__": ...@@ -80,50 +41,4 @@ if __name__ == "__main__":
name=NAME, name=NAME,
version=versioneer.get_version(), version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(), cmdclass=versioneer.get_cmdclass(),
description=DESCRIPTION,
long_description=LONG_DESCRIPTION,
long_description_content_type="text/x-rst",
classifiers=CLASSIFIERS,
author=AUTHOR,
author_email=AUTHOR_EMAIL,
url=URL,
license=LICENSE,
platforms=PLATFORMS,
packages=find_packages(exclude=["tests", "tests.*"]),
install_requires=install_requires,
package_data={
"": [
"*.txt",
"*.rst",
"*.cu",
"*.cuh",
"*.c",
"*.sh",
"*.pkl",
"*.h",
"*.cpp",
"ChangeLog",
"c_code/*",
],
"aesara": ["py.typed"],
"aesara.misc": ["*.sh"],
"aesara.d3viz": ["html/*", "css/*", "js/*"],
},
entry_points={
"console_scripts": [
"aesara-cache = bin.aesara_cache:main",
]
},
keywords=" ".join(
[
"aesara",
"math",
"numerical",
"symbolic",
"blas",
"numpy",
"autodiff",
"differentiation",
]
),
) )
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论