-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
31 lines (25 loc) · 820 Bytes
/
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
#!/usr/bin/env python
# coding: utf-8
"""Minimal setup."""
from setuptools import setup, find_packages
import os
import re
with open('requirements.txt') as f:
requirements = f.read().splitlines()
def get_property(prop, project):
with open(os.path.join(project, '__init__.py')) as f:
result = re.search(r'{}\s*=\s*[\'"]([^\'"]*)[\'"]'.format(prop),
f.read())
return result.group(1)
project = 'xsuite'
setup(name=project,
install_requires=requirements,
version=get_property('__version__', project),
description='Several extensions for xarray',
package_data={project:['data/*']},
author='Ugur Cayoglu',
tests_require=['pytest >= 3.1.2'],
author_email='urcyglu@gmail.com',
# url='',
packages=find_packages(),
)