-
Notifications
You must be signed in to change notification settings - Fork 19
/
pyproject.toml
102 lines (84 loc) · 2.25 KB
/
pyproject.toml
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
[build-system]
requires = [
# sync with setup.py until we discard non-pep-517/518
"setuptools>=42.0",
"setuptools-scm[toml]",
"wheel",
]
build-backend = "setuptools.build_meta"
[project]
name = "divio-cli"
# version set with setuptools_scm
dynamic = ["version", "dependencies"]
license = { file = "LICENSE.txt" }
authors = [{ name = "Divio AG", email = "info@divio.com" }]
description = "The command-line client for the Divio Cloud"
readme = "DESCRIPTION.md"
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"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",
"Topic :: Software Development",
]
requires-python = ">=3.7"
[tool.setuptools.dynamic]
# requirements.txt is necessary until gitlab supports pyproject.toml
# in the gemnasium python dependency scanner.
# see https://gitlab.com/gitlab-org/gitlab/-/issues/416566
dependencies = {file = ["requirements.txt"]}
[project.urls]
homepage = "https://docs.divio.com/en/latest/how-to/local-cli/"
[project.scripts]
divio = "divio_cli.cli:cli"
[project.optional-dependencies]
dev = [
"tox",
"build",
]
test = [
"pytest",
"pytest-cov",
]
[tool.setuptools_scm]
write_to = "divio_cli/version.py"
[tool.setuptools]
include-package-data = true
zip-safe = false
platforms = ["any"]
[tool.setuptools.packages.find]
# empty to let setuptools do its magic
[tool.check-manifest]
ignore = [
"tox.ini",
"requirements.in",
"requirements-windows.in",
"Makefile",
".gitlab-ci.yml",
"divio_cli/version.py",
]
[tool.ruff]
extend = "/presets/ruff.toml"
target-version = "py37" # lowest supported version
[tool.coverage.run]
branch = true
source = ["."]
[tool.coverage.report]
precision = 2
exclude_lines = [
# Have to re-enable the standard pragma
"pragma: no cover",
"NOCOV",
# Don't complain if non-runnable code isn't run:
"if __name__ == .__main__.:",
"raise AssertionError",
"raise NotImplementedError",
]