-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
52 lines (46 loc) · 1.58 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
import os
import sys
from setuptools import setup
if sys.version_info[:2] < (3, 7):
error = (
"PyTropical 0.0.1+ requires Python 3.7 or later (%d.%d detected). \n"
#"For Python 2.7, please install version x using: \n"
#"$ pip install 'pytropical==x'" % sys.version_info[:2]
)
sys.stderr.write(error + "\n")
sys.exit(1)
with open("pytropical/__init__.py") as fid:
for line in fid:
if line.startswith("__version__"):
version = line.strip().split()[-1][1:-1]
break
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Scientific/Engineering",
]
setup(
name='pytropical',
version='0.0.1',
description='PyTropical is a Python package for tropical mathematics.',
url='https://github.com/heitorbaldo/pytropical',
author='Heitor Baldo',
author_email='heitorbaldo@gmail.com',
maintainer = 'PyTropical Developers',
keywords=['Max-Plus Algebra', 'Min-Plus Algebra', 'Tropical Algebra'],
platforms = ["Linux", "Mac OSX", "Windows", "Unix"],
classifiers=classifiers,
license='MIT License',
install_requires=['numpy', 'math'],
packages=['pytropical'],
zip_safe=False
)