-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathpyproject.toml
More file actions
178 lines (164 loc) · 4 KB
/
pyproject.toml
File metadata and controls
178 lines (164 loc) · 4 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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
[build-system]
requires = ["flit-core>=3.11"]
build-backend = "flit_core.buildapi"
[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==4.4.0",
"click>=8.1.4,<8.4",
"jmespath==1.1.0",
"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.19.1"]
test = [
{include-group = "coverage"},
{include-group = "yaml"}, # loading test fixture data
"pytest>=7",
"pytest-xdist<4",
"pytest-timeout<3",
"click-type-test==1.3.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.19.1",
"types-jwt",
"types-requests",
"types-jmespath",
]
check-project-metadata = [
"mddj==0.4.2",
{include-group = "yaml"},
"build",
"twine",
"check-sdist",
]
# `dev` is what's installed if you `make install`
dev = [
{include-group = "test"},
{include-group = "typing"},
]
[tool.flit.sdist]
include = [
"changelog.adoc",
]
exclude = [".*", "src/**/.*", "tests/**/*"]
[tool.check-sdist]
git-only = [
# tests are not included
"tests/**/*",
# dev configs and tools
".gitignore",
"tox.ini",
"toxfile.py",
".flake8",
"Makefile",
"scripts/*",
# dev-facing documentation
"CONTRIBUTING.adoc",
"RELEASING.adoc",
"changelog.d/*",
# built docs (for docs.globus.org)
"reference/*",
]
[tool.isort]
profile = "black"
[tool.pytest.ini_options]
addopts = "-n auto --maxprocesses 4 --dist loadscope --timeout 3 --color=yes"
filterwarnings = [
"error",
]
[tool.coverage.run]
parallel = true
patch = ["subprocess"]
source = ["globus_cli"]
omit = [
"globus_cli_flake8.py",
]
[tool.coverage.paths]
source = [
"src/",
"*/site-packages/",
]
[tool.coverage.report]
show_missing = true
skip_covered = true
fail_under = 92
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",
]