-
Notifications
You must be signed in to change notification settings - Fork 11
/
setup.py
48 lines (39 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
#!/usr/bin/env python
# from distutils.core import setup
import os
import sys
from setuptools import setup
if sys.version_info < (3, 5):
sys.exit('Sorry, Python < 3.5 is not supported.')
# Utility function to read the README file.
# Used for the long_description. It's nice, because now 1) we have a top level
# README file and 2) it's easier to type in the README file than to put a raw
# string in below ...
def read(fname):
"""You want a docstring? Tell me why."""
return open(os.path.join(os.path.dirname(__file__), fname)).read()
with open('mousai/__init__.py', 'rb') as fid:
for line in fid:
line = line.decode('utf-8')
if line.startswith('__version__'):
version = line.strip().split()[-1][1:-1]
break
setup(name='mousai',
version=version,
description='Harmonic Balance solvers.',
author='Joseph C. Slater',
author_email='joseph.c.slater@gmail.com',
url='https://josephcslater.github.io/mousai/',
download_url='https://github.com/josephcslater/mousai',
packages=['mousai'],
package_data={'mousai': ['../README.rst'], '': ['README.rst']},
long_description_content_type='text/x-rst',
long_description=read('README.rst'),
keywords=['harmonic balance', 'numerical solvers',
'vibration', 'oscillation'],
install_requires=["numpy >= 1.12.0", "scipy >= 0.18.0",
"matplotlib >= 2.0.0"],
setup_requires=['pytest-runner'],
tests_require=['pytest']
)
# https://docs.python.org/3/distutils/setupscript.html#additional-meta-data