-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
63 lines (59 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
60
61
62
63
import io
import re
import setuptools
with io.open("README.md", "rt", encoding="utf8") as f:
readme = f.read()
with io.open("src/cacheorm/__init__.py", "rt", encoding="utf8") as f:
version = re.search(r'__version__ = "(.*?)"', f.read()).group(1)
setuptools.setup(
name="cacheorm",
version=version,
url="https://github.com/leosocy/cacheorm",
project_urls={
"Code": "https://github.com/leosocy/cacheorm",
"Issue tracker": "https://github.com/leosocy/cacheorm/issues",
},
license="MIT",
author="leosocy",
author_email="[email protected]",
description="A cache-based python ORM.",
long_description=readme,
long_description_content_type="text/markdown",
classifiers=[
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
],
packages=setuptools.find_packages("src"),
package_dir={"": "src"},
include_package_data=True,
python_requires=">=3.6",
install_requires=[],
extras_require={
"dev": [
"pytest",
"pytest-cov",
"pytest-benchmark",
"mock",
"coverage",
# flake8 extensions
"flake8",
"mccabe",
"flake8-bugbear",
"pep8-naming",
"flake8-comprehensions",
# fields
"shortuuid",
# backends
"redis>=3.0",
"pylibmc", # dependence `libmemcached`.
# serializers
"msgpack<1.0",
"protobuf>=3.9",
],
"backends": ["redis>=3.0", "pylibmc"],
"serializers": ["msgpack>=0.6,<1.0", "protobuf>=3.9"],
},
)