-
Notifications
You must be signed in to change notification settings - Fork 60
Expand file tree
/
Copy pathpyproject.toml
More file actions
107 lines (94 loc) · 2.53 KB
/
Copy pathpyproject.toml
File metadata and controls
107 lines (94 loc) · 2.53 KB
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>=69",
"wheel",
]
build-backend = "setuptools.build_meta"
[project]
name = "mas-cli"
dynamic = ["version"]
description = "Python Admin CLI for Maximo Application Suite"
readme = { file = "python/README.md", content-type = "text/markdown" }
requires-python = ">=3.12"
license = "EPL-1.0"
authors = [
{ name = "David Parker", email = "parkerda@uk.ibm.com" },
]
urls = { Homepage = "https://github.com/ibm-mas/cli" }
dependencies = [
"mas-devops >= 9.0.0",
"alive-progress",
"halo",
"prompt_toolkit",
"kubernetes == 33.1.0",
"tabulate",
"prettytable",
"jsonpath-ng",
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python",
"Programming Language :: Python :: 3.12",
"Topic :: Communications",
"Topic :: Internet",
"Topic :: Software Development :: Libraries :: Python Modules",
]
[project.optional-dependencies]
dev = [
"basedpyright",
"build",
"black",
"flake8",
"flake8-docstrings",
"pytest",
]
[project.scripts]
mas-cli = "mas.cli.__main__:main"
[tool.setuptools]
# Package metadata is consolidated at the repository root while source files remain in python/src.
package-dir = { "" = "python/src" }
include-package-data = true
[tool.setuptools.packages.find]
where = ["python/src"]
namespaces = true
[tool.setuptools.package-data]
"mas.cli" = [
"templates/*.yaml",
"templates/*.yml.j2",
"templates/pod-templates/best-effort/*.yml",
"templates/pod-templates/guaranteed/*.yml",
"templates/pod-templates/saas-essentials/*.yml",
]
"mas.cli.must_gather.web_viewer" = [
"templates/*.html",
]
[tool.setuptools.dynamic]
version = { attr = "mas.cli.__version__" }
[tool.black]
line-length = 160
target-version = ['py312']
include = 'python/(src|tests)/.*\.py$'
[tool.flake8]
max-line-length = 160
[tool.basedpyright]
# Only check must-gather module during gradual rollout
include = [
"python/src/mas/cli/must_gather",
"python/src/mas/cli/update",
"python/src/mas/cli/upgrade",
"python/tests/unit/must_gather"
]
# Use "basic" mode - focuses on our code, lenient with untyped dependencies
# Options: "off", "basic", "standard", "strict"
typeCheckingMode = "basic"
# Target Python version
pythonVersion = "3.12"
# Execution environments for proper import resolution
# This tells basedpyright where to find Python modules
executionEnvironments = [
{ root = "python/src" },
{ root = "python/tests", extraPaths = ["python/src"] }
]