-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
61 lines (51 loc) · 1.84 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
"""Module used for python packaging
Copyright (c) 2018-2019 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: Cobra 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", "mypy", "twine", "black", "pre-commit"]
with open("requirements.txt") as f:
install_requires = f.read().splitlines()
setup(
name="cobras",
version=VERSION,
author="Benjamin Sergeant",
author_email="[email protected]",
url="https://github.com/machinezone/cobra",
description="A realtime messaging server using WebSockets and Redis.",
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,
extras_require={"dev": dev_requires},
license="BSD 3",
include_package_data=True,
entry_points={
"console_scripts": [
"cobra = cobras.runner:main",
"bavarde = cobras.bavarde.runner:main",
]
},
classifiers=[
"Development Status :: 5 - Production/Stable",
"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",
],
)