-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
39 lines (36 loc) · 1.2 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
import ast, re, io, os.path
from setuptools import setup
# determine version (adapted from mitsuhiko)
VERSION_RE = re.compile(r"__version__\s+=\s+(.*)")
with open("moment_polytopes/__init__.py", "rb") as f:
version = VERSION_RE.search(f.read().decode("utf-8")).group(1)
version = str(ast.literal_eval(version))
# read long description
long_description = io.open(
os.path.join(os.path.dirname(os.path.abspath(__file__)), "README"), encoding="utf-8"
).read()
setup(
name="moment_polytopes",
version=version,
description="A SageMath package for computing moment polytopes.",
long_description=long_description,
author="Michael Walter",
author_email="[email protected]",
url="https://qi-rub.github.io/moment_polytopes/",
license="MIT",
classifiers=[
"License :: OSI Approved :: MIT License",
"Intended Audience :: Science/Research"
"Topic :: Scientific/Engineering :: Mathematics",
"Development Status :: 3 - Alpha",
"Programming Language :: Python :: 2",
],
packages=["moment_polytopes"],
install_requires=["tabulate"],
extras_require={
"dev": [
"pytest>=3.3",
"Sphinx",
]
},
)