summaryrefslogtreecommitdiff
path: root/setup.py
blob: 4d7a46498bd081e91bb30b5b76fb71dd828eae40 (plain)
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
#!/usr/bin/env python
from itertools import chain
from setuptools import find_packages, setup

from requests_cache import __version__

extras_require = {
    # Packages used for CI jobs
    'build': ['coveralls', 'twine', 'wheel'],
    # Packages for all supported backends + features
    'backends': ['boto3', 'pymongo', 'redis'],
    # Packages used for documentation builds
    'docs': [
        'm2r2',
        'Sphinx~=3.5.3',
        'sphinx-autodoc-typehints',
        'sphinx-copybutton',
        'sphinx-rtd-theme~=0.5.2',
        'sphinxcontrib-apidoc',
    ],
    # Packages used for testing both locally and in CI jobs
    'test': [
        'black==20.8b1',
        'flake8',
        'flake8-comprehensions',
        'flake8-polyfill',
        'isort',
        'pre-commit',
        'psutil',
        'pytest>=5.0',
        'pytest-cov>=2.11',
        'pytest-order~=0.11.0',
        'pytest-xdist',
        'radon',
        'requests-mock>=1.8',
        'timeout-decorator',
    ],
}
# All development/testing packages combined
extras_require['dev'] = list(chain.from_iterable(extras_require.values()))


setup(
    name='requests-cache',
    packages=find_packages(exclude=['tests*']),
    version=__version__,
    author='Roman Haritonov',
    author_email='reclosedev@gmail.com',
    url='https://github.com/reclosedev/requests-cache',
    install_requires=['itsdangerous', 'requests>=2.0.0', 'url-normalize>=1.4'],
    extras_require=extras_require,
    python_requires='>=3.6',
    include_package_data=True,
)