-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
61 lines (55 loc) · 1.98 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
import os
from setuptools import setup, find_packages
version = open('django_cache_management/VERSION').read().strip()
long_description = open("README.rst").read()
try:
import sphinx
from sphinx.setup_command import BuildDoc
import sphinx.apidoc
class Sphinx(BuildDoc):
def run(self):
src_dir = (self.distribution.package_dir or {'': ''})['']
src_dir = os.path.join(os.getcwd(), src_dir)
sphinx.apidoc.main(
['', '-f', '-o', os.path.join(self.source_dir, '_apidoc'),
src_dir])
BuildDoc.run(self)
except ImportError:
sphinx = None
setup(
name="django-cache-management",
version=version,
packages=find_packages(
include=("django_cache_management", "django_cache_management.*")),
author="Louis-Dominique Dubeau",
author_email="[email protected]",
description="Cache management for Django.",
long_description=long_description,
license="MPL 2.0",
keywords=["Django", "caching"],
url="https://github.com/lddubeau/django-cache-management",
install_requires=[
'Django>=2.2',
],
classifiers=[
"Programming Language :: Python",
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3 :: Only',
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)",
"Operating System :: POSIX",
"Framework :: Django",
"Framework :: Django :: 2.2",
"Framework :: Django :: 3.0",
"Framework :: Django :: 3.1",
"Topic :: Software Development :: Libraries",
"Topic :: Utilities",
],
setup_requires=['sphinx'],
include_package_data=True,
cmdclass={'sphinx': Sphinx} if sphinx is not None else {}
)