aboutsummaryrefslogtreecommitdiffstats
path: root/pyproject.toml
blob: 08aeb8c07c81bfb1452344c8b90c386de5c1fdf5 (plain) (blame)
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
[build-system]
requires = ["setuptools>=61", "setuptools-git-versioning>=1.8"]
build-backend = "setuptools.build_meta:__legacy__"

[project]
name = "snekbox"
description = "HTTP REST API for sandboxed execution of arbitrary Python code."
readme = "README.md"
license = {text = "MIT"}
authors = [{name = "Python Discord", email = "[email protected]"}]
keywords = ["sandbox", "nsjail", "HTTP REST API"]
classifiers = [
    "Development Status :: 5 - Production/Stable",
    "Environment :: Console",
    "Intended Audience :: Developers",
    "License :: OSI Approved :: MIT License",
    "Operating System :: POSIX :: Linux",
    "Programming Language :: Python :: 3 :: Only",
    "Programming Language :: Python :: 3.10",
    "Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
    "Topic :: Security",
    "Topic :: Software Development :: Interpreters",
]
dynamic = ["version"]

requires-python = ">=3.10"
dependencies = [
    # Sentry's Falcon integration relies on api_helpers (falconry/falcon#1902).
    "falcon>=3.0.1",
    "jsonschema>=4.0",
    "protobuf>=3.19",
]

[project.optional-dependencies]
gunicorn = ["gunicorn>=20.1"]  # Lowest which supports wsgi_app in config.
sentry = ["sentry-sdk[falcon]>=1.5.4"]

[project.urls]
source = "https://github.com/python-discord/snekbox"
tracker = "https://github.com/python-discord/snekbox/issues"

[project.scripts]
snekbox = "snekbox.__main__:main"

[tool.setuptools.packages.find]
include = ["snekbox*"]

[tool.setuptools-git-versioning]
enabled = true
version_callback = "scripts.version:get_version"

[tool.coverage.report]
exclude_lines = [
    "pragma: no cover",
    "if DEBUG"
]

[tool.coverage.run]
branch = true
data_file = "${COVERAGE_DATAFILE-.coverage}"
include = ["snekbox/*"]
omit =  [
    "snekbox/api/app.py",
    "snekbox/config_pb2.py"
]
relative_files = true