-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathsetup.py
51 lines (43 loc) · 1.26 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
import os
from setuptools import setup, find_packages
try:
import pypandoc
long_description = pypandoc.convert("README.md", "rst")
except (IOError, ImportError):
long_description = "Thumbor redis storage adapters"
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
TESTS_REQUIREMENTS = [
"black==23.*,>=23.12.1",
"preggy==1.*,>=1.4.4",
"pyssim==0.*,>=0.7",
"pytest==7.*,>=7.4.3",
"pytest-cov==4.*,>=4.1.0",
"pytest-asyncio==0.*,>=0.23.2",
]
RUNTIME_REQUIREMENTS = [
"redis==5.*,>=5.0.1",
"thumbor==7.*,>=7.7.2",
"pre-commit==3.*,>=3.6.0",
]
setup(
name="tc_redis",
version="2.5.0",
author="Thumbor Community",
description=("Thumbor redis storage adapters"),
license="MIT",
keywords="thumbor redis",
url="https://github.com/thumbor-community/redis",
packages=find_packages(),
long_description=long_description,
classifiers=[
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
],
install_requires=RUNTIME_REQUIREMENTS,
extras_require={
"all": RUNTIME_REQUIREMENTS,
"tests": RUNTIME_REQUIREMENTS + TESTS_REQUIREMENTS,
},
)