-
Notifications
You must be signed in to change notification settings - Fork 31
/
pyproject.toml
157 lines (144 loc) · 4.46 KB
/
pyproject.toml
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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
[tool.poetry]
name = "django-tools"
version = "0.49.0.rc2"
description = "miscellaneous tools for Django based projects"
license = "GPL-3.0-or-later"
authors = ["Jens Diemer <django-tools@jensdiemer.de>"]
homepage = "https://github.com/jedie/django-tools/"
keywords=["django", "helpers", "tools", "utilities"]
classifiers = [
# http://pypi.python.org/pypi?%3Aaction=list_classifiers
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Intended Audience :: End Users/Desktop",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3 :: Only",
'Framework :: Django',
"Topic :: Database :: Front-Ends",
"Topic :: Documentation",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
"Topic :: Internet :: WWW/HTTP :: Site Management",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Utilities",
]
packages = [
{ include = "django_tools" },
{ include = "django_tools_test_project" },
]
# Will be generated from README.creole with: 'poetry run update_rst_readme'
readme='README.rst'
[tool.poetry.dependencies]
python = ">=3.7,<4.0.0"
bx_py_utils = "*" # https://github.com/boxine/bx_py_utils
icdiff = "*" # https://github.com/jeffkaufman/icdiff
pprintpp = "*" # https://github.com/wolever/pprintpp
bleach = "*"
django = "*"
[tool.poetry.dev-dependencies]
poetry-publish = "*" # https://github.com/jedie/poetry-publish
python-creole = "*" # https://github.com/jedie/python-creole
bx_django_utils = "*" # https://github.com/boxine/bx_django_utils
beautifulsoup4 = "*"
tox = "*"
tox-poetry = "*" # https://github.com/tkukushkin/tox-poetry
poetry = "*"
poetry-core = "*"
pytest = "*"
pytest-randomly = "*"
pytest-cov = "*"
pytest-django = "*"
coveralls = "*"
isort = "*"
flake8 = "*"
flynt = "*"
autopep8 = "*"
colorlog = "*"
easy-thumbnails = "*"
django-filer = "*"
django-parler = "*"
django-debug-toolbar = "*"
selenium = "*"
pyupgrade = "*"
model-bakery = "*" # https://github.com/model-bakers/model_bakery
requests-mock = "*"
django-override-storage = "*" # https://github.com/danifus/django-override-storage
[tool.poetry.scripts]
update_rst_readme = "django_tools.publish:update_readme"
publish = "django_tools.publish:publish"
dev_server = "django_tools_test_project.manage:start_test_server"
[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"
[tool.autopep8]
# https://github.com/hhatto/autopep8#pyprojecttoml
max_line_length = 120
exclude=".*,*/htmlcov/*,*/migrations/*,*/volumes/*"
[tool.isort]
# https://pycqa.github.io/isort/docs/configuration/config_files/#pyprojecttoml-preferred-format
atomic=true
line_length=120
case_sensitive=false
skip_glob=[".*","*/htmlcov/*","*/migrations/*"]
multi_line_output=3
include_trailing_comma=true
known_first_party=["django_tools","django_tools_test_project"]
no_lines_before="LOCALFOLDER"
default_section="THIRDPARTY"
sections=["FUTURE","STDLIB","THIRDPARTY","FIRSTPARTY","LOCALFOLDER"]
lines_after_imports=2
[tool.pytest.ini_options]
# https://docs.pytest.org/en/latest/customize.html#pyproject-toml
minversion = "6.0"
DJANGO_SETTINGS_MODULE="django_tools_test_project.settings.test"
norecursedirs = ".* .git __pycache__ coverage* dist htmlcov"
# sometimes helpfull "addopts" arguments:
# -vv
# --verbose
# --capture=no
# --trace-config
# --full-trace
# -p no:warnings
# Add this to local test runs:
# -x -p no:randomly
addopts = """
--import-mode=importlib
--reuse-db
--nomigrations
--cov=.
--cov-report term-missing
--cov-report html
--cov-report xml
--no-cov-on-fail
--showlocals
--doctest-modules
--failed-first
--last-failed-no-failures all
--new-first
--maxfail 3
-p no:randomly
"""
[tool.tox]
# https://tox.readthedocs.io/en/latest/example/basic.html#pyproject-toml-tox-legacy-ini
legacy_tox_ini = """
[tox]
isolated_build = True
envlist = py{37,38,39}-django{2.2,3.1,3.2}
skip_missing_interpreters = True
[testenv]
passenv = *
deps =
django2.2: django>=2.2,<2.3
django3.1: django>=3.1,<3.2
django3.2: django>=3.2,<3.3
install_dev_deps=True
commands =
python --version
django-admin --version
python -m pytest
"""