|
| 1 | +[build-system] |
| 2 | +requires = ["setuptools>=61.0"] |
| 3 | +build-backend = "setuptools.build_meta" |
| 4 | + |
| 5 | +[project] |
| 6 | +name = "mockprock" |
| 7 | +version = "2.0.0" |
| 8 | +description = "Mock proctoring backend for Open edX" |
| 9 | +readme = "README.rst" |
| 10 | +requires-python = ">=3.12" |
| 11 | +license = "Apache-2.0" |
| 12 | +authors = [ |
| 13 | + {name = "Open edX Project", email = "oscm@openedx.org"}, |
| 14 | +] |
| 15 | +classifiers = [ |
| 16 | + "Development Status :: 3 - Alpha", |
| 17 | + "Intended Audience :: Developers", |
| 18 | + "Natural Language :: English", |
| 19 | + "Programming Language :: Python :: 3", |
| 20 | + "Programming Language :: Python :: 3.12", |
| 21 | + "Framework :: Django", |
| 22 | + "Framework :: Django :: 4.2", |
| 23 | + "Framework :: Django :: 5.2", |
| 24 | +] |
| 25 | +keywords = [ |
| 26 | + "Python", |
| 27 | + "edx", |
| 28 | + "openedx", |
| 29 | + "proctoring", |
| 30 | +] |
| 31 | +dependencies = [] |
| 32 | + |
| 33 | +[project.optional-dependencies] |
| 34 | +server = [ |
| 35 | + "Flask<2.0", |
| 36 | + "PyJWT", |
| 37 | + "requests", |
| 38 | +] |
| 39 | + |
| 40 | +[project.entry-points."openedx.proctoring"] |
| 41 | +mockprock = "mockprock.backend:MockProckBackend" |
| 42 | + |
| 43 | +[project.scripts] |
| 44 | +get-dashboard = "mockprock.commands:get_url" |
| 45 | + |
| 46 | +[project.urls] |
| 47 | +Repository = "https://github.com/openedx/mockprock" |
| 48 | + |
| 49 | +[tool.setuptools.packages.find] |
| 50 | +exclude = ["tests*", "*.tests", "*.tests.*"] |
| 51 | + |
| 52 | +[tool.setuptools.package-data] |
| 53 | +"mockprock" = ["templates/*"] |
| 54 | + |
| 55 | +[dependency-groups] |
| 56 | +test-base = [ |
| 57 | + "pytest", |
| 58 | + "pytest-cov", |
| 59 | +] |
| 60 | +test = [ |
| 61 | + {include-group = "test-base"}, |
| 62 | +] |
| 63 | +quality = [ |
| 64 | + "pylint>=3.3,<4.0", |
| 65 | + "pylint-celery", |
| 66 | + "pylint-django", |
| 67 | + "isort", |
| 68 | + "edx-lint", |
| 69 | +] |
| 70 | +doc = [] |
| 71 | +ci = [ |
| 72 | + "tox", |
| 73 | + "tox-uv", |
| 74 | +] |
| 75 | +dev = [ |
| 76 | + {include-group = "test"}, |
| 77 | + {include-group = "quality"}, |
| 78 | + {include-group = "doc"}, |
| 79 | + "edx-lint", |
| 80 | +] |
| 81 | + |
| 82 | +# uv configuration |
| 83 | +# https://docs.astral.sh/uv/reference/settings/ |
| 84 | +[tool.uv] |
| 85 | +package = true |
| 86 | + |
| 87 | +# edx-lint uv constraint support |
| 88 | +# https://github.com/openedx/edx-lint |
| 89 | +# DO NOT EDIT constraint-dependencies DIRECTLY. |
| 90 | +# This list is managed by `edx_lint write_uv_constraints` |
| 91 | +# and will be overwritten the next time `make upgrade` is run. |
| 92 | +# - GLOBAL constraints: edit edx_lint/files/common_constraints.txt |
| 93 | +# - REPO-SPECIFIC constraints: edit [tool.edx_lint].uv_constraints in this file |
| 94 | +constraint-dependencies = [ |
| 95 | + "Django<6.0", |
| 96 | + "elasticsearch<7.14.0", |
| 97 | +] |
| 98 | +[tool.edx_lint] |
| 99 | +# This section is read by edx-lint; do not edit the constraint-dependencies directly. |
| 100 | +uv_constraints = [] |
| 101 | + |
| 102 | +# Pytest configuration |
| 103 | +# https://docs.pytest.org/en/stable/reference/customize.html |
| 104 | +[tool.pytest.ini_options] |
| 105 | +addopts = "--cov mockprock --cov-report term-missing --cov-report xml" |
| 106 | + |
| 107 | +# Coverage configuration |
| 108 | +# https://coverage.readthedocs.io/en/latest/config.html |
| 109 | +[tool.coverage.run] |
| 110 | +branch = true |
| 111 | +source = ["mockprock"] |
| 112 | +omit = [ |
| 113 | + "*/tests/*", |
| 114 | + "*/__pycache__/*", |
| 115 | +] |
| 116 | + |
| 117 | +[tool.coverage.report] |
| 118 | +exclude_lines = [ |
| 119 | + "pragma: no cover", |
| 120 | + "def __repr__", |
| 121 | + "raise AssertionError", |
| 122 | + "raise NotImplementedError", |
| 123 | + "if __name__ == .__main__.:", |
| 124 | + "if TYPE_CHECKING:", |
| 125 | +] |
| 126 | +show_missing = true |
| 127 | + |
| 128 | +[tool.coverage.html] |
| 129 | +directory = "htmlcov" |
| 130 | + |
0 commit comments