forked from Peter-Slump/python-keycloak-client
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
58 lines (51 loc) · 1.36 KB
/
setup.py
File metadata and controls
58 lines (51 loc) · 1.36 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
import os
import sys
from setuptools import find_packages, setup
VERSION = "0.3.0"
AIO_COMPATIBLE = sys.version_info >= (3, 5, 3)
with open(os.path.join(os.path.dirname(__file__), "README.rst")) as readme:
README = readme.read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
EXCLUDED_PACKAGES = []
TESTS_REQUIRE = [
"pytest",
"pytest-cov",
"mock>=2.0",
]
if AIO_COMPATIBLE:
TESTS_REQUIRE += [
"asynctest",
]
else:
EXCLUDED_PACKAGES.append("keycloak.aio")
setup(
name="python-keycloak-client",
version=VERSION,
long_description=README,
package_dir={"": "src"},
packages=find_packages("src", EXCLUDED_PACKAGES),
extras_require={
"dev": [
"bumpversion==0.5.3",
"twine",
],
"doc": [
"Sphinx==1.4.4",
"sphinx-autobuild==0.6.0",
],
"aio": ['aiohttp>=3.4.4,<4; python_full_version>="3.5.3"'],
},
setup_requires=["pytest-runner>=4.0,<5"],
install_requires=[
"requests",
"python-jose",
],
tests_require=TESTS_REQUIRE,
url="https://github.com/Peter-Slump/python-keycloak-client",
license="MIT",
author="Peter Slump",
author_email="peter@yarf.nl",
description="Install Python Keycloak client.",
classifiers=[],
)