forked from SebastianHGonzalez/python-kong-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
50 lines (41 loc) · 1.41 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
import io
import os
from os.path import dirname
from os.path import join
try: # for pip >= 10
from pip._internal.req import parse_requirements
except ImportError: # for pip <= 9.0.3
from pip.req import parse_requirements
from setuptools import setup
__version__ = '0.1.9dev'
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
def read(*names, **kwargs):
return io.open(
join(dirname(__file__), *names),
encoding=kwargs.get('encoding', 'utf8')
).read()
# parse_requirements() returns generator of pip.req.InstallRequirement objects
requirements = [str(ir.req) for ir in parse_requirements(os.path.join(BASE_DIR, './requirements/base.txt'), session=False)]
# requirements_test = [str(ir.req) for ir in parse_requirements('./requirements-test.txt', session=False)]
setup(
name='python-kong-client',
version=__version__,
license='BSD',
description='A Python client for the Kong API 0.13.x (http://getkong.org/)',
author='Sebastian Gonzalez',
author_email='[email protected]',
url='',
packages=['kong'],
include_package_data=True,
zip_safe=False,
classifiers=[
'Development Status :: Alpha',
'Intended Audience :: Developers',
'Programming Language :: Python',
'Programming Language :: Python :: 3.6',
'Topic :: Utilities',
],
keywords=[],
install_requires=requirements,
extras_require={},
)