forked from django-wiki/django-wiki
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·102 lines (89 loc) · 2.96 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
from glob import glob
from setuptools import find_packages
from setuptools import setup
sys.path.append(os.path.join(os.path.dirname(__file__), "src"))
# noqa
from wiki import __version__ # isort:skip # noqa
# Utility function to read the README file.
# Used for the long_description. It's nice, because now 1) we have a top level
# README file and 2) it's easier to type in the README file than to put a raw
# string in below ...
def get_path(fname):
return os.path.join(os.path.dirname(__file__), fname)
install_requirements = [
"Django>=2.1,<3.1",
"bleach>=3.1.0,<3.2",
"Pillow",
"django-nyt>=1.1.5,<1.2",
"django-mptt>=0.11,<0.12",
"django-sekizai>=0.10",
"sorl-thumbnail>=12.6.2,<13",
"Markdown>=3.1,<3.3",
]
test_requirements = [
"django-functest>=1.0.3,<1.1",
"pytest>=5.3,<5.4",
"pytest-django",
"pytest-cov",
"pytest-pythonpath",
]
test_lint_requirements = [
"flake8>=3.7,<3.8",
"black", # Just use the latest
"pre-commit",
]
setup_requirements = [
"pytest-runner",
]
development_requirements = test_requirements + test_lint_requirements
extras_requirements = {
"devel": development_requirements,
"test": test_requirements,
"testlint": test_lint_requirements,
"transifex": ["transifex-client"],
}
setup(
name="wiki",
version=__version__,
author="Benjamin Bach",
author_email="benjamin@overtag.dk",
url="http://www.django-wiki.org",
description="A wiki system written for the Django framework.",
license="GPLv3",
keywords=["django", "wiki", "markdown"],
packages=find_packages("src"),
package_dir={"": "src"},
py_modules=[
os.path.splitext(os.path.basename(path))[0] for path in glob("src/*.py")
],
long_description=open("README.rst").read(),
zip_safe=False,
install_requires=install_requirements,
classifiers=[
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Environment :: Web Environment",
"Framework :: Django",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
"Topic :: Software Development",
"Topic :: Software Development :: Libraries :: Application Frameworks",
],
include_package_data=True,
setup_requires=setup_requirements,
tests_require=test_requirements,
extras_require=extras_requirements,
)