-
Notifications
You must be signed in to change notification settings - Fork 45
/
setup.py
executable file
·46 lines (39 loc) · 1.71 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
#!/usr/bin/env python
#from distutils.core import setup
from setuptools import setup
import os
import sys
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):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
with open('vibration_toolbox/__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
download_url = ('https://github.com/vibrationtoolbox/vibration_toolbox/\
blob/master/dist/vibration_toolbox-' + version + '.whl')
setup(name='vibration_toolbox',
version=version,
description=('Educational code illustrating fundamentals of vibration \
for engineers.'),
author=u'Joseph C. Slater and Raphael Timbó',
author_email='joseph.c.slater@gmail.com',
url='https://github.com/vibrationtoolbox/vibration_toolbox',
packages=['vibration_toolbox'],
package_data={'vibration_toolbox': ['../readme.rst', 'data/*.mat'],
'': ['readme.rst']},
long_description=read('readme.rst'),
keywords=['vibration', 'mechanical engineering', 'civil engineering'],
install_requires=['numpy', 'scipy', 'matplotlib', 'jupyter'],
setup_requires=['pytest-runner'],
tests_require=['pytest'],
include_package_data=True
)
# https://docs.python.org/3/distutils/setupscript.html#additional-meta-data