-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathsetup.py
53 lines (46 loc) · 1.28 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
"""Installation with setuptools or pip."""
from setuptools import setup, find_packages
import os
import ast
def get_version_from_init():
"""Obtain library version from main init."""
init_file = os.path.join(
os.path.dirname(__file__), 'zgoubidoo', '__init__.py'
)
with open(init_file) as fd:
for line in fd:
if line.startswith('__version__'):
return ast.literal_eval(line.split('=', 1)[1].strip())
with open('README.md') as f:
readme = f.read()
with open('COPYING') as f:
lic = f.read()
setup(
name='zgoubidoo',
version=get_version_from_init(),
description='Zgoubidoo: a Python interface for Zgoubi.',
long_description=readme,
author='Cédric Hernaslteens',
author_email='[email protected]',
url='https://github.com/chernals/zgoubidoo',
license=lic,
packages=find_packages(exclude=('tests', 'docs', 'examples')),
install_requires=[
'georges-core',
'lmfit',
'matplotlib',
'mypy',
'numba',
'numpy>=1.14.0',
'numpy-quaternion',
'numpy-stl',
'pandas>=0.22.0',
'parse',
'pint',
'plotly',
'pyarrow',
'pyyaml',
'scipy>=1.0.0',
],
package_data={'zgoubidoo': []},
)