Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
157 lines (137 loc) · 3.69 KB
/
Copy pathpyproject.toml
File metadata and controls
157 lines (137 loc) · 3.69 KB
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
[build-system]
requires = ["setuptools>=64", "setuptools-scm>=10.3.4"]
build-backend = "setuptools.build_meta"
[project]
name = "morango"
dynamic = ["version"]
description = "A pure Python DB replication engine for Django that supports SQLite and PostgreSQL."
authors = [{name = "Learning Equality", email = "dev@learningequality.org"}]
maintainers = [{name = "Learning Equality", email = "dev@learningequality.org"}]
readme = "README.md"
license-files = ["LICENSE"]
requires-python = ">=3.6,<3.15"
keywords = ["database", "syncing", "morango"]
classifiers = [
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Development Status :: 4 - Beta",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"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 :: 3.14",
]
dependencies = [
"django>=3,<4",
"django-mptt>0.10.0",
"rsa<4.10",
"djangorestframework>3.10",
"django-ipware==4.0.2",
"requests>=2.27.1",
"urllib3>=1.26.0",
"ifcfg",
]
[dependency-groups]
test = [
"factory-boy>=3.0,<4",
"mock>=4.0,<6",
"pytest>=6.2.5,<8",
"pytest-django==4.5.2",
"more-itertools<=10.0.0",
]
dev = [
{include-group = "test"},
"prek>=0.5.11; python_version>='3.8'",
"tox>=4; python_version>='3.9'",
"tox<4; python_version<'3.9'",
"tox-uv>=1.0; python_version>='3.9'",
]
docs = [
"sphinx",
"sphinx-intl",
"sphinx-rtd-theme",
"sphinx-autobuild",
"watchdog",
"sphinx-notfound-page",
"django==3.2.25",
"djangorestframework==3.14.0",
"django-mptt>=0.14.0,<1",
"rsa==3.4.2",
"ifcfg==0.24",
]
[project.optional-dependencies]
postgres = [
"M2Crypto==0.45.1",
"cryptography==40.0.2",
"psycopg2-binary>=2.9.8,<=2.9.9",
]
accelerated = [
"M2Crypto==0.45.1",
"cryptography==40.0.2",
]
[project.urls]
Homepage = "https://github.com/learningequality/morango"
Repository = "https://github.com/learningequality/morango"
[tool.setuptools]
include-package-data = true
[tool.setuptools.packages.find]
where = ["."]
exclude = ["tests*", "docs*"]
[tool.setuptools.package-data]
morango = ["*.*"]
[tool.setuptools_scm]
version_file = "morango/_version.py"
git_describe_command = "git describe --dirty --tags --long --match 'v*' --first-parent"
[tool.ruff]
line-length = 100
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"T10", # debugger statements (replaces debug-statements hook)
"T20", # print statements (replaces flake8-print plugin)
"C90", # mccabe complexity
]
ignore = [
"E501", # line too long - formatter handles wrapping where possible
]
[tool.ruff.lint.isort]
combine-as-imports = true
force-single-line = true
order-by-type = false
[tool.ruff.lint.mccabe]
max-complexity = 10
[tool.coverage.run]
branch = true
source = ["morango"]
omit = [
"*/*/migrations/*",
"*/*/tests/*",
"*/*test_*.py"
]
[tool.coverage.report]
ignore_errors = true
show_missing = true
precision = 2
exclude_lines = [
"raise NotImplementedError",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:"
]
[tool.pytest.ini_options]
testpaths = ["tests/", "morango/"]
DJANGO_SETTINGS_MODULE = "testapp.settings"
norecursedirs = ["dist", "tmp*", ".svn", ".*"]
markers = [
"windows: mark a test as a windows test"
]
[tool.uv]
exclude-newer = "7 days"