-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
59 lines (49 loc) · 2.02 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
import platform
import os.path as osp
from setuptools import setup, find_namespace_packages
# Ensure user has the correct Python version
if sys.version_info < (3, 8):
print("Mathics support Python 3.8 and above; you have %d.%d" % sys.version_info[:2])
sys.exit(-1)
def get_srcdir():
filename = osp.normcase(osp.dirname(osp.abspath(__file__)))
return osp.realpath(filename)
def read(*rnames):
return open(osp.join(get_srcdir(), *rnames)).read()
# stores __version__ in the current namespace
exec(compile(open("pymathics/hello/version.py").read(), "version.py", "exec"))
long_description = read("README.rst") + "\n"
is_PyPy = platform.python_implementation() == "PyPy"
setup(
name="pymathics-hello",
maintainer="Mathics Group",
maintainer_email="[email protected]",
long_description=long_description,
long_description_content_type="text/x-rst",
version=__version__, # noqa
packages=find_namespace_packages(include=["pymathics.*"]),
install_requires=["Mathics3>=7.0.0.dev0"],
# don't pack Mathics in egg because of media files, etc.
zip_safe=False,
# metadata for upload to PyPI
classifiers=[
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Programming Language :: Python",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"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",
],
# TODO: could also include long_description, download_url,
)