forked from globus/globus-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
154 lines (142 loc) · 3.75 KB
/
pyproject.toml
File metadata and controls
154 lines (142 loc) · 3.75 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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
[build-system]
requires = ["setuptools>=77.0.1"]
build-backend = "setuptools.build_meta"
[project]
name = "globus-cli"
description = "Globus CLI"
readme = "README.rst"
authors = [
{ name = "Stephen Rosen", email = "sirosen@globus.org" },
]
license = "Apache-2.0"
keywords = [
"globus",
"cli",
"command line",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Operating System :: POSIX",
"Programming Language :: Python",
"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",
]
requires-python = ">=3.9"
dependencies = [
"globus-sdk==3.63.0",
"click>=8.1.4,<8.3",
"jmespath==1.0.1",
"packaging>=17.0",
"typing_extensions>=4.0;python_version<'3.11'",
# these are dependencies of the SDK, but they are used directly in the CLI
# declare them here in case the underlying lib ever changes
"requests>=2.32.3,<3.0.0",
]
dynamic = ["version"]
[project.urls]
homepage = "https://github.com/globus/globus-cli"
[project.scripts]
globus = "globus_cli:main"
[dependency-groups]
coverage = [
"coverage[toml]>=7.10"
]
yaml = ["ruamel.yaml==0.18.15"]
test = [
{include-group = "coverage"},
{include-group = "yaml"}, # loading test fixture data
"pytest>=7",
"pytest-xdist<4",
"pytest-timeout<3",
"click-type-test==1.1.0;python_version>='3.10'",
"responses==0.25.8",
]
test-mindeps = [
{include-group = "test"},
"click==8.1.8",
"requests==2.32.4",
"pyjwt==2.0.0",
"cryptography==3.3.1",
"packaging==17.0",
"typing_extensions==4.0",
]
typing = [
"mypy==1.18.1",
"types-jwt",
"types-requests",
"types-jmespath",
]
check-project-metadata = [
"mddj==0.2.0",
{include-group = "yaml"},
"build",
"twine",
]
# `dev` is what's installed if you `make install`
dev = [
{include-group = "test"},
{include-group = "typing"},
]
[tool.setuptools.dynamic.version]
attr = "globus_cli.version.__version__"
[tool.isort]
profile = "black"
[tool.pytest.ini_options]
addopts = "-n auto --maxprocesses 4 --dist loadscope --timeout 3 --color=yes"
filterwarnings = [
"error",
# ignore SDK warnings for 'filter_role' until
# 'filter_roles' update is applied
"ignore:The `filter_role` parameter is deprecated.:globus_sdk.exc.RemovedInV4Warning:",
]
[tool.coverage.run]
parallel = true
patch = ["subprocess"]
source = ["globus_cli"]
[tool.coverage.paths]
source = [
"src/",
"*/site-packages/",
]
[tool.coverage.report]
show_missing = true
skip_covered = true
fail_under = 87
exclude_lines =[
# the pragma to disable coverage
"pragma: no cover",
# don't complain if tests don't hit unimplemented methods/modes
"raise NotImplementedError",
"assert_never()",
# don't check on executable components of importable modules
"if __name__ == .__main__.:",
# don't check coverage on type checking conditionals
"if t.TYPE_CHECKING:",
# skip overloads
"@t.overload",
# skip abstract methods
"@abc.abstractmethod",
]
[tool.scriv]
version = "literal: src/globus_cli/version.py: __version__"
categories = "Bugfixes, Enhancements, Other"
# we're using adoc, we'll produce fragments as 'md' and "fix" later
format = "md"
output_file = "changelog.adoc"
entry_title_template = '{{ version }} ({{ date.strftime("%Y-%m-%d") }})'
[tool.mypy]
strict = true
sqlite_cache = true
# additional settings (not part of strict=true)
warn_unreachable = true
[[tool.mypy.overrides]]
disallow_untyped_calls = false
disallow_untyped_defs = false
disallow_incomplete_defs = false
module = [
"globus_cli.services.transfer.recursive_ls",
]