-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathpyproject.toml
107 lines (99 loc) · 3.05 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
[build-system]
requires = ["setuptools>=65.0", "setuptools-scm>=7.0"]
build-backend = "setuptools.build_meta"
[project]
name = "komodo"
authors = [{ name="Equinor ASA", email="fg_sib-scout@equinor.com" },]
description = "Komodo is a software distribution system."
dynamic = ["version"]
requires-python = ">=3.8"
license = {file = "LICENSE"}
readme = "README.md"
classifiers = [
"Intended Audience :: Science/Research",
"Development Status :: 4 - Beta",
"Natural Language :: English",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"License :: OSI Approved :: License :: OSI Approved :: GNU Affero General Public License v3",
"Operating System :: OS Independent",
]
dependencies = [
"importlib_metadata",
"jinja2",
"packaging",
"PyGithub >= 1.55",
"pysnyk",
"PyYAML",
"requests",
"urllib3<2; '.el7.' in platform_release", #Pinned under v2 due to RHEL7 incompability
"urllib3; '.el7.' not in platform_release",
"ruamel.yaml",
"pkginfo",
]
[project.optional-dependencies]
dev = [
"furo",
"myst_parser",
"pytest",
"ruff",
"sphinx",
"sphinxcontrib-apidoc",
"types-pyyaml"
]
[tool.setuptools.packages.find]
where = ["."]
[tool.setuptools_scm]
write_to = "komodo/_version.py"
[project.scripts]
kmd = "komodo.cli:cli_main"
komodo-check-pypi = "komodo.check_up_to_date_pypi:main"
komodo-check-symlinks = "komodo.symlink.sanity_check:sanity_main"
komodo-clean-repository = "komodo.release_cleanup:main"
komodo-create-symlinks = "komodo.symlink.create_links:symlink_main"
komodo-insert-proposals = "komodo.insert_proposals:main"
komodo-lint = "komodo.lint:lint_main"
komodo-lint-maturity = "komodo.lint_maturity:main"
komodo-lint-package-status = "komodo.lint_package_status:main"
komodo-lint-symlink-config = "komodo.lint_symlink_config:main"
komodo-lint-upgrade-proposals = "komodo.lint_upgrade_proposals:main"
komodo-non-deployed = "komodo.deployed:deployed_main"
komodo-post-messages = "komodo.post_messages:main"
komodo-show-version = "komodo.show_version:main"
komodo-snyk-test = "komodo.snyk_reporting:main"
komodo-suggest-symlinks = "komodo.symlink.suggester.cli:main"
komodo-transpiler = "komodo.release_transpiler:main"
komodo-check-unused = "komodo.check_unused_package:main"
[tool.ruff]
src = ["src"]
line-length = 88
[tool.ruff.lint]
select = [
"B", # flake-8-bugbear
"C4", # flake8-comprehensions
"F", # pyflakes
"I", # isort
"PERF", # perflint
"PL", # pylint
"SIM", # flake-8-simplify
"UP", # pyupgrade
"W", # pycodestyle
]
ignore = [
"PERF203", # try-except-in-loop
"PLR0912", # Too many branches
"PLR0913", # too-many-arguments
"PLR0915", # Too many statements
]
[tool.ruff.lint.isort]
known-first-party = ["komodo"]
[tool.ruff.lint.extend-per-file-ignores]
"docs/conf.py" = [
"PLR1711", # useless return statement
]
"tests/*.py" = [
"PLR2004", # magic-value-comparison
]