-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathsetup.py
42 lines (39 loc) · 1.51 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
from __future__ import print_function
import sys
from setuptools import setup
try:
import m2r
long_description = m2r.parse_from_file('README.md')
except(IOError, ImportError):
print('Markdown not converted to rst')
long_description = open('README.md').read()
about = {}
with open("./oommftools/_about.py") as fp:
exec(fp.read(), about)
setup(
name=about['__title__'].lower(),
version=about['__version__'],
description=''.join(about['__summary__']),
long_description=long_description,
author=about['__author__'],
maintainer=about['__maintainer__'],
license='GPLv2',
author_email=about['__email__'],
url=about['__uri__'],
packages=['oommftools'], # same as name
setup_requires=['pytest-runner'],
install_requires=['scipy', 'numpy', 'future', 'pytest'] + (
["wxpython"] if not sys.platform.startswith("linux") else []
), # external packages as dependencies
tests_require=['pytest', 'pytest-cov'],
classifiers=[
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Programming Language :: Python :: 2.7',
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering :: Physics',
'Topic :: Scientific/Engineering :: Visualization',
'License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)'
],
)