forked from stephenmcd/mezzanine
-
Notifications
You must be signed in to change notification settings - Fork 5
/
setup.cfg
142 lines (127 loc) · 3.25 KB
/
setup.cfg
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
[metadata]
name = Mezzanine
version = attr: mezzanine.__version__
description = An open source content management platform built using the Django framework.
long_description = file: README.rst
long_description_content_type = text/x-rst
author = Stephen McDonald
author_email = [email protected]
url = http://mezzanine.jupo.org/
license = BSD
license_file = LICENSE
classifiers =
Development Status :: 5 - Production/Stable
Environment :: Web Environment
Framework :: Django
Intended Audience :: Developers
License :: OSI Approved :: BSD License
Operating System :: OS Independent
Programming Language :: Python
Programming Language :: Python :: 3
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Topic :: Internet :: WWW/HTTP
Topic :: Internet :: WWW/HTTP :: Dynamic Content
Topic :: Internet :: WWW/HTTP :: WSGI
Topic :: Software Development :: Libraries :: Application Frameworks
Topic :: Software Development :: Libraries :: Python Modules
[options]
python_requires = >=3.6, <3.9
packages = mezzanine
include_package_data = true
install_requires =
django-contrib-comments >= 1.9, <1.10
django >= 2.2, < 3.2
filebrowser_safe==1.0.0a1
grappelli_safe==1.0.0a1
tzlocal >= 2, <3
bleach >= 2, <4
beautifulsoup4 >= 4.5.3
requests >= 2.1.0, <3
requests-oauthlib >= 1.3, <2
pillow >= 7, <8
chardet
[options.extras_require]
testing =
pytest-django >= 3, <4
codestyle =
flake8 >= 3, <4
black==20.8b1
[options.entry_points]
console_scripts =
mezzanine-project = mezzanine.bin.mezzanine_project:create_project
# Building
[bdist_wheel]
universal = 1
# Testing
[tox:tox]
envlist =
py{36,37,38}-dj{22,30,31,master}
flake8
black
package
[testenv]
# Run test suite
deps =
.[testing]
dj22: Django>=2.2, <3
dj30: Django>=3.0, <3.1
dj31: Django>=3.1, <3.2
djmaster: https://github.com/django/django/archive/master.tar.gz#egg=Django
commands =
pytest --basetemp="{envtmpdir}" --ignore Mezzanine-0.0.dev0 {posargs}
[testenv:py{36,37,38}-djmaster]
# Same as above, but ignoring the output while testing against Django master
ignore_outcome = true
deps =
{[testenv]deps}
commands =
{[testenv]commands}
[testenv:package]
# Check package integrity and compatibility with PyPI
deps =
twine
check-manifest
skip_install = true
commands =
python setup.py -q sdist --dist-dir="{envtmpdir}/dist"
twine check "{envtmpdir}/dist/*"
check-manifest --ignore-bad-ideas '*.mo' {toxinidir}
[testenv:format]
# This env is not run by default. It's provided here for you
# to easily autoformat code by running `tox -e format`
skip_install = true
deps = .[codestyle]
commands = black .
[testenv:black]
# Lint with black
skip_install = true
deps = .[codestyle]
commands = black . --check
[testenv:flake8]
# Lint with flake8
skip_install = true
deps = .[codestyle]
commands = flake8 .
[flake8]
# Configured to match black
ignore =
E203
W503
E731
max-line-length = 88
exclude =
migrations
.tox
.git
.eggs
*.egg-info
build
dist
[gh-actions]
# Connect GitHub Action matrices with tox envs
python =
3.6: py36
3.7: py37
3.8: py38, flake8, black, package