This repository has been archived by the owner on May 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
/
setup.py
80 lines (73 loc) · 2.43 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright 2016 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import re
from setuptools import setup, find_packages
# Get the version
version_regex = r'__version__ = ["\']([^"\']*)["\']'
with open('endpoints_management/__init__.py', 'r') as f:
text = f.read()
match = re.search(version_regex, text)
if match:
version = match.group(1)
else:
raise RuntimeError("No version number found!")
install_requires = [
'backoff>=1.6.0',
'cachetools>=1.0.0,<3',
"dogpile.cache>=0.6.1,<0.7",
'enum34>=1.1.6,<2',
'google-apitools>=0.5.21,<0.6',
'oauth2client==3.0.0',
"pylru>=1.0.9,<2.0",
"pyjwkest>=1.0.0,<=1.0.9",
"requests>=2.10.0,<3.0",
'strict-rfc3339>=0.7,<0.8',
'urllib3>=1.16,<2.0',
'webob>=1.7.4',
]
tests_require = [
"flask>=0.11.1",
"httmock>=1.2",
"mock>=2.0",
"pytest",
"pytest-cov"
]
setup(
name='google-endpoints-api-management',
version=version,
description='Google Endpoints API management',
long_description=open('README.rst').read(),
author='Google Inc',
author_email='[email protected]',
url='https://github.com/cloudendpoints/endpoints-management-python',
packages=find_packages(exclude=['test', 'test.*']),
namespace_packages=[],
package_dir={'google-endpoints-api-management': 'endpoints_management'},
license='Apache License',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: Implementation :: CPython',
],
install_requires=install_requires,
setup_requires=["pytest_runner"],
tests_require=tests_require,
test_suite="tests"
)