-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
59 lines (48 loc) · 1.79 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
"""Module used for python packaging
Copyright (c) 2020 Machine Zone, Inc. All rights reserved.
"""
from __future__ import absolute_import
import os
import sys
from setuptools import find_packages, setup
if sys.version_info[:2] < (3, 6):
print("Error: Rcc requires Python 3.6")
sys.exit(1)
ROOT = os.path.realpath(os.path.join(os.path.dirname(__file__)))
with open(os.path.join(ROOT, "DOCKER_VERSION")) as f:
VERSION = f.read().strip()
dev_requires = ["wheel", "isort", "twine", "black", "pre-commit"]
with open("requirements.txt") as f:
install_requires = f.read().splitlines()
DESC = "A simple asyncio redis client with cluster support and a resharding cli tool."
setup(
name="rcc",
version=VERSION,
author="Benjamin Sergeant",
author_email="[email protected]",
url="https://github.com/machinezone/rcc",
description=DESC,
long_description=open(os.path.join(ROOT, "README.md")).read(),
long_description_content_type="text/markdown",
packages=find_packages(exclude=["tests"]),
zip_safe=False,
install_requires=install_requires,
setup_requires=['vcversioner'],
extras_require={"dev": dev_requires},
license="BSD 3",
include_package_data=True,
entry_points={"console_scripts": ["rcc = rcc.runner:main"]},
classifiers=[
"Development Status :: 3 - Alpha",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
],
)