-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpyproject.toml
More file actions
151 lines (135 loc) · 4.42 KB
/
Copy pathpyproject.toml
File metadata and controls
151 lines (135 loc) · 4.42 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
[build-system]
requires = ["setuptools", "setuptools-scm>8.1"]
build-backend = "setuptools.build_meta"
[project]
name = "openedx-plugin-sample"
description = "A sample backend plugin for the Open edX Platform"
requires-python = ">=3.12"
license = "Apache-2.0"
license-files = ["LICENSE*"]
authors = [
{name = "Open edX Project", email = "oscm@openedx.org"},
]
classifiers = [
'Development Status :: 3 - Alpha',
'Framework :: Django',
'Framework :: Django :: 4.2',
'Intended Audience :: Developers',
'Natural Language :: English',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.12',
]
keywords = [
"Python",
"edx",
]
dynamic = ["readme", "version"]
dependencies = [
"Django",
"djangorestframework",
"django-filter",
"edx-opaque-keys",
"openedx-events",
"openedx-filters",
"openedx-atlas",
]
[project.entry-points."lms.djangoapp"]
openedx_plugin_sample = "openedx_plugin_sample.apps:SamplePluginConfig"
[project.entry-points."cms.djangoapp"]
openedx_plugin_sample = "openedx_plugin_sample.apps:SamplePluginConfig"
[project.urls]
Homepage = "https://openedx.org/openedx/sample-plugin"
Repository = "https://openedx.org/openedx/sample-plugin"
[dependency-groups]
test-base = [
"pytest-cov",
"pytest-django",
"code-annotations",
"edx-django-utils",
"django-extensions",
]
# Current default Django version used by quality, docs, and the default test
# matrix entry. When adding or retiring a Django version from the matrix, see
# docs/how-tos/adding-a-matrix-dependency.rst for the full process.
test = [
{include-group = "test-base"},
"Django>=5.0,<6.0",
]
django60 = [
{include-group = "test-base"},
"Django>=6.0,<7.0",
]
quality = [
{include-group = "test"},
"edx-lint",
"isort",
"pycodestyle",
"pydocstyle",
]
doc = [
{include-group = "test"},
"doc8",
"sphinx-book-theme",
"twine",
"build",
"Sphinx",
]
ci = [
"tox",
"tox-uv",
]
dev = [
{include-group = "quality"},
{include-group = "ci"},
"diff-cover",
"edx-i18n-tools",
]
[tool.setuptools]
include-package-data = true
[tool.setuptools.dynamic]
readme = {file = ["README.md"], content-type = "text/markdown" }
[tool.setuptools.packages.find]
where = ["src"]
[tool.semantic_release]
# We use SETUPTOOLS_SCM_PRETEND_VERSION to pull the version from python-semantic-release instead
# of actually pulling it from version control because the build step happens before the repo gets
# tagged. Setuptools by default doesn't have any way of overriding the version number at build
# time without a setup.py file. This is a fine alternative that reduces the amount of boilerplate
# code and files we need in this repo.
build_command = "pip install build && SETUPTOOLS_SCM_PRETEND_VERSION=$NEW_VERSION python -m build"
[tool.semantic_release.commit_parser_options]
# Because this repo is meant to be an example, docs changes are relevant
# feature changes and so should produces new releases.
minor_tags = ["feat", "docs"]
[tool.setuptools_scm]
# The root for the gith repo is one directory up.
root = ".."
version_scheme = 'only-version'
local_scheme = 'no-local-version'
# Dummy version number for when ../.git isn't accessible.
# This happens, for example, when bind-mounting the backend-plugin- into a Docker image.
fallback_version = "0.0.0.dev0"
[tool.uv]
# Each entry lists groups with mutually exclusive version requirements so uv can
# produce a single uv.lock that contains a separate resolution for each. Add a
# new pair here whenever you add a legacy-version group to [dependency-groups].
# See docs/how-tos/adding-a-matrix-dependency.rst for the full process.
conflicts = [
[{group = "test"}, {group = "django60"}],
]
# 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<7.0",
"elasticsearch<7.14.0",
]
[tool.edx_lint]
# Repo-specific uv constraints merged with edx-lint's global constraints.
# Local entries override global ones for the same package.
# Run `make upgrade` to regenerate [tool.uv].constraint-dependencies.
uv_constraints = [
"Django<7.0", # this repo tests against Django 6.x; overrides the global Django<6.0 constraint
]