forked from ashwinvis/caeroc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
83 lines (73 loc) · 2.87 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
import os
import sys
from runpy import run_path
from glob import glob
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
# Get the long description from the relevant file
with open(os.path.join(here, 'README.rst')) as f:
long_description = f.read()
lines = long_description.splitlines(True)
long_description = ''.join(lines[6:])
# Get the version from the relevant file
d = run_path('caeroc/__init__.py')
__version__ = d['__version__']
# Get the development status from the version string
from pkg_resources import parse_version
parsed_version = parse_version(__version__)
try:
if parsed_version.is_prerelease:
if 'a' in __version__:
devstatus = 'Development Status :: 3 - Alpha'
else:
devstatus = 'Development Status :: 4 - Beta'
else:
devstatus = 'Development Status :: 5 - Production/Stable'
except AttributeError:
if 'a' in __version__:
devstatus = 'Development Status :: 3 - Alpha'
elif 'b' in __version__:
devstatus = 'Development Status :: 4 - Beta'
else:
devstatus = 'Development Status :: 5 - Production/Stable'
install_requires=[
'numpy', 'scipy', 'matplotlib', 'scikit-aero>=0.2.dev0', 'qtpy']
if not sys.platform.startswith('win') and sys.version_info[0] < 3:
install_requires.append('subprocess32')
scripts = glob('bin/caeroc*')
setup(name='caeroc',
version=__version__,
description=('Compressible aerodynamics calculator in Python'),
long_description=long_description,
keywords='compressible aerodynamics, calculator, gas dynamics',
author='Ashwin Vishnu Mohanan',
author_email='avmo@kth.se',
url='https://github.org/jadelord/caeroc',
license='GPL',
classifiers=[
# How mature is this project? Common values are
# 3 - Alpha
# 4 - Beta
# 5 - Production/Stable
devstatus,
'Intended Audience :: Science/Research',
'Intended Audience :: Education',
'Topic :: Scientific/Engineering',
'License :: OSI Approved :: GNU General Public License v2 (GPLv2)',
# Specify the Python versions you support here. In particular,
# ensure that you indicate whether you support Python 2,
# Python 3 or both.
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
],
python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*',
packages=find_packages(exclude=['doc', 'examples']),
install_requires=install_requires,
extras_require=dict(pyside=['PySide'], pyqt=['PyQt5']),
scripts=scripts,
)