-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
56 lines (49 loc) · 1.75 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
54
55
56
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Based on https://github.com/pypa/sampleproject/blob/master/setup.py."""
from __future__ import unicode_literals
# To use a consistent encoding
from codecs import open
import os
import sys
from pip.req import parse_requirements
kwargs = {}
try:
# pip's parse_requirements added a required 'session=' argument after version 6.0+.
#
# Given that the pip installed on our Jenkins is older, we can't just use the newer
# config. So I'm catching the import error and defaulting to None if it's older pip.
from pip.download import PipSession
kwargs['session'] = PipSession()
except ImportError:
pass
from setuptools import setup, find_packages
from setuptools.command.install import install
from distutils.command.build import build
install_requirements = [str(requirement.req) for requirement in
parse_requirements('./requirements.txt', **kwargs)]
# Get the long description from the relevant file
here = os.path.abspath(os.path.dirname(__file__))
setup(
name='combiner-api',
version='1.0-dev',
description='''API for multiple data sources''',
long_description=long_description,
author='',
author_email='kevin1chun@gmail.com',
license='Proprietary',
# The project's main homepage
url='https://github.com/CommBo/combiner-api',
packages=find_packages(exclude=('tests*', 'docs', 'examples')),
# If there are data files included in your packages that need to be
# installed, specify them here.
include_package_data=True,
zip_safe=False,
install_requires=install_requirements,
tests_require=test_requirements,
entry_points = {
'console_scripts' : [
'combiner-api=combiner-api.__main__:main'
]
}
)