-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
110 lines (96 loc) · 2.46 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
103
104
105
106
107
108
109
110
[project]
name = "siggen"
description = "Socorro signature generation extracted as a Python library"
# x.y.YYYYMMDD or x.y.YYYYMMDD.dev0 -- calver
version = "2.2.20241029"
readme = "README.rst"
keywords = ["socorro"]
authors = [{name = "Will Kahn-Greene"}]
license = {text = "MPLv2"}
requires-python = ">=3.9"
dependencies = [
"glom",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Software Development :: Libraries :: Python Modules",
]
urls.Homepage = "https://github.com/mozilla-services/socorro-siggen"
urls.Source = "https://github.com/mozilla-services/socorro-siggen"
urls.Issues = "https://github.com/mozilla-services/socorro-siggen/issues"
[project.scripts]
signify = "siggen.cmd_signify:main"
fetch-data = "siggen.cmd_fetch_data:main"
signature = "siggen.cmd_signature:main"
[project.optional-dependencies]
cli = [
"requests<3",
]
dev = [
"build",
"pytest",
"requests<3",
"ruff",
"tox",
"tox-gh-actions",
"twine",
"wheel",
]
[build-system]
requires = ["setuptools", "setuptools-scm"]
build-backend = "setuptools.build_meta"
[tool.ruff]
line-length = 88
target-version = "py39"
src = ["setup.py", "siggen"]
[tool.ruff.lint]
# Enable pycodestyle (E), pyflakes (F), and bugbear (B) rules
select = ["E", "F", "B"]
ignore = ["E501"]
[tool.ruff.lint.flake8-quotes]
docstring-quotes = "double"
[tool.tox]
legacy_tox_ini = """
[tox]
isolated_build = True
envlist =
py39
py39-lint
py39-norequests
py310
py311
py312
py313
[gh-actions]
python =
3.9: py39, py39-lint, py39-norequests
3.10: py310
3.11: py311
3.12: py312
3.13: py313
[testenv]
extras = dev,cli
allowlist_externals = {toxinidir}/bin/run_cmd_tests.sh
commands =
pytest {posargs}
{toxinidir}/bin/run_cmd_tests.sh
[testenv:py39-lint]
extras = dev,cli
allowlist_externals = ruff
commands =
ruff format --check siggen
ruff check siggen
[testenv:py39-norequests]
extras =
allowlist_externals = {toxinidir}/bin/run_cmd_tests.sh
commands =
{toxinidir}/bin/run_cmd_tests.sh --no-requests
"""