-
Notifications
You must be signed in to change notification settings - Fork 4
/
pyproject.toml
134 lines (116 loc) · 3.88 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
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "django_squash"
version = "0.0.12"
description = "A migration squasher that doesn't care how Humpty Dumpty was put together."
readme = "README.rst"
keywords = ["django", "migration", "squashing", "squash"]
authors = [
{name = "Javier Buzzi", email = "buzzi.javier@gmail.com"},
]
license = {text = "MIT"}
classifiers = [
# See https://pypi.org/pypi?%3Aaction=list_classifiers
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"Framework :: Django",
"Framework :: Django :: 3.2",
"Framework :: Django :: 4.2",
"Framework :: Django :: 5.0",
"Framework :: Django :: 5.1",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Utilities",
"License :: OSI Approved :: MIT License",
]
dependencies = [
"django >=3.2",
]
requires-python = ">=3.8"
[project.optional-dependencies]
lint = [
"black",
"flake8-pyproject",
"flake8-tidy-imports",
"isort",
"pygments",
"restructuredtext-lint",
"ruff"
]
test = [
"black",
"build",
"ipdb",
"libcst",
"psycopg2-binary",
"pytest-cov",
"pytest-django"
]
[project.urls]
homepage = "https://github.com/kingbuzzman/django-squash"
[tool.setuptools.packages.find]
exclude = ["tests*", "docs*"]
[tool.setuptools]
zip-safe = true
platforms = ["any"]
[tool.black]
line-length = 119
exclude = "venv/"
[tool.flake8]
max-line-length = 119
exclude = ["*/migrations_*/*", "venv/*", "build/*"]
ban-relative-imports = true
[tool.isort]
combine_as_imports = true
line_length = 119
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true
ensure_newline_before_comments = true
skip_glob = ["venv/**"]
[tool.coverage.run]
source = ["django_squash"]
[tool.coverage.report]
omit = ["*/migrations_*/*"]
show_missing = true
fail_under = 95
[tool.pypi]
repository = "https://upload.pypi.org/legacy/"
username = "kingbuzzman"
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "settings"
pythonpath = "tests"
addopts = "--pdbcls=IPython.terminal.debugger:TerminalPdb"
python_files = ["test_*.py", "*_tests.py"]
# Custom markers for pytest
markers = [
"temporary_migration_module",
"temporary_migration_module2",
"temporary_migration_module3",
"slow: marks tests as slow"
]
filterwarnings = [
"error",
# Internal warning to tell the user that the writer.py file has changed, and may not be compatible.
"ignore:Django migrations writer file has changed and may not be compatible with django-squash",
# Warning: django.utils.deprecation.RemovedInDjango50Warning: The USE_L10N setting is deprecated. Starting with Django 5.0, localized formatting of data will always be enabled. For example Django will display numbers and dates using the format of the current locale.
# Don't specify the exact warning (django.utils.deprecation.RemovedInDjango50Warning) as not all version of Django know it and pytest will fail
"ignore:The USE_L10N setting is deprecated:",
# Warning: cgi is only being used by Django 3.2
"ignore:'cgi' is deprecated and slated for removal in Python 3.13",
# Django 3.2 throws a warning about the USE_I18N setting being deprecated
"ignore:datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects .*"
]