-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
36 lines (30 loc) · 1.02 KB
/
setup.py
File metadata and controls
36 lines (30 loc) · 1.02 KB
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
#!/usr/bin/env python
from builtins import str
import os
import sys
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'VERSION')) as f:
VERSION = f.read().strip()
# Read requirements without using pip internals
def read_requirements(filename):
with open(os.path.join(here, filename)) as f:
return [line.strip() for line in f
if line.strip() and not line.startswith('#') and not line.startswith('-r')]
install_reqs = read_requirements(
'./requirements.txt' if not sys.argv[1] in ['develop', 'test'] else './requirements-dev.txt'
)
setup(
name='discovery',
version=VERSION,
author='Clever (https://clever.com)',
author_email='tech-notify@clever.com',
url='https://github.com/Clever/discovery-python/',
packages=['discovery'],
install_requires=install_reqs,
setup_requires=['nose>=1.0'],
test_suite='nose.collector',
long_description="""\
Programmatically find service endpoints.
"""
)