-
Notifications
You must be signed in to change notification settings - Fork 226
Expand file tree
/
Copy pathpyproject.toml
More file actions
140 lines (127 loc) · 3.02 KB
/
pyproject.toml
File metadata and controls
140 lines (127 loc) · 3.02 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
[build-system]
requires = ["setuptools>=64", "setuptools-scm"]
build-backend = "setuptools.build_meta"
[project]
name = "XBlock"
description = "XBlock Core Library"
readme = "README.rst"
license = "Apache-2.0"
license-files = ["LICENSE.TXT"]
authors = [
{name = "edX", email = "oscm@edx.org"},
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Framework :: Django",
"Framework :: Django :: 4.2",
"Framework :: Django :: 5.2",
"Intended Audience :: Developers",
"Natural Language :: English",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
]
requires-python = ">=3.12"
dynamic = ["version"]
dependencies = [
"edx-opaque-keys",
"fs",
"lxml",
"mako",
"markupsafe",
"python-dateutil",
"pytz",
"pyyaml",
"simplejson",
"web-fragments",
"webob>=1.6.0",
]
[project.optional-dependencies]
django = [
"openedx-django-pyfs>=1.0.5",
"lazy",
]
[project.urls]
Homepage = "https://github.com/openedx/XBlock"
[tool.setuptools_scm]
version_scheme = "only-version"
local_scheme = "no-local-version"
[tool.setuptools]
include-package-data = true
[tool.setuptools.packages.find]
[tool.setuptools.package-data]
"xblock.utils" = ["public/*", "templates/*", "templatetags/*"]
"xblock.test.utils" = ["data/*"]
[dependency-groups]
# Base test packages, no Django version pinned
test-base = [
"astroid",
"coverage",
"ddt",
"diff-cover>=0.2.1",
"hypothesis",
"mock",
"path",
"pytest",
"pytest-cov",
"pytest-django",
]
# Default test group: current supported Django version + django extras
# Update Django pin here when bumping the default; add a legacy group for older versions
test = [
{include-group = "test-base"},
"Django>=5.2,<6.0",
"openedx-django-pyfs>=1.0.5",
"lazy",
]
# Legacy Django 4.2 support
django42 = [
{include-group = "test-base"},
"Django>=4.2,<5.0",
"openedx-django-pyfs>=1.0.5",
"lazy",
]
quality = [
{include-group = "test"},
"edx-lint",
"pylint",
"pycodestyle",
]
doc = [
{include-group = "test"},
"mock",
"sphinx",
"sphinx-book-theme",
]
# Minimal CI group: just what's needed to invoke tox
ci = [
"tox",
"tox-uv",
]
dev = [
{include-group = "quality"},
{include-group = "ci"},
{include-group = "doc"},
]
[tool.uv]
package = true
conflicts = [
[
{group = "test"},
{group = "django42"},
],
]
# DO NOT EDIT constraint-dependencies DIRECTLY.
# This list is managed by `edx_lint write_uv_constraints`
# and will be overwritten the next time `make upgrade` is run.
# - GLOBAL constraints: edit edx_lint/files/common_constraints.txt
# - REPO-SPECIFIC constraints: edit [tool.edx_lint].uv_constraints in this file
constraint-dependencies = [
"Django<6.0",
"elasticsearch<7.14.0",
]
[tool.edx_lint]
uv_constraints = []
[tool.semantic_release]
build_command = "SETUPTOOLS_SCM_PRETEND_VERSION=$NEW_VERSION uv build"
[tool.semantic_release.commit_parser_options]
minor_tags = ["feat", "docs"]