-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathsetup.py
More file actions
29 lines (26 loc) · 784 Bytes
/
setup.py
File metadata and controls
29 lines (26 loc) · 784 Bytes
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
from setuptools import setup, find_packages
import re
def get_property(prop, project):
result = re.search(r'{}\s*=\s*[\'"]([^\'"]*)[\'"]'.format(prop),
open(project + '/__init__.py').read())
return result.group(1)
reqs = []
for line in open('requirements.txt', 'r').readlines():
reqs.append(line)
setup(
name="rvsearch",
version=get_property('__version__', 'rvsearch'),
author="Lee Rosenthal, BJ Fulton",
packages=find_packages(),
entry_points={'console_scripts': ['rvsearch=rvsearch.cli:main']},
install_requires=reqs,
data_files=[
(
'rvsearch_example_data',
[
'example_data/HD128311.csv',
'example_data/recoveries.csv'
]
)
],
)