-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathpyproject.toml
125 lines (111 loc) · 3.36 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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
[build-system]
requires = ["setuptools>=61.2"]
build-backend = "setuptools.build_meta"
[project]
name = "globus-cli"
description = "Globus CLI"
readme = "README.rst"
authors = [
{ name = "Stephen Rosen", email = "[email protected]" },
]
keywords = [
"globus",
"cli",
"command line",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Operating System :: POSIX",
"Programming Language :: Python",
"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",
]
requires-python = ">=3.8"
dependencies = [
"globus-sdk==3.37.0",
"click>=8.1.4,<9",
"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.19.1,<3.0.0",
"cryptography>=3.3.1",
]
dynamic = ["version"]
[project.urls]
homepage = "https://github.com/globus/globus-cli"
[project.optional-dependencies]
test = [
"coverage>=7",
"pytest>=7",
"pytest-xdist<4",
"pytest-timeout<3",
"click-type-test==0.0.7;python_version>='3.10'",
"responses==0.25.0",
# loading test fixture data
"ruamel.yaml==0.18.6",
# Python 3.12 needs setuptools.
"setuptools;python_version>='3.12'",
]
[project.scripts]
globus = "globus_cli:main"
[tool.setuptools.dynamic.version]
attr = "globus_cli.version.__version__"
[tool.isort]
profile = "black"
[tool.pytest.ini_options]
addopts = "--timeout 3"
filterwarnings = ["error"]
[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]
# the desired config here is
# strict=true
# however, strict=true does not play well with overrides (used below)
# therefore, we explicitly declare a number of options which approach
# `strict=true` in effect
warn_unused_configs = true
# TODO: enable disallow_any_generics (currently fails)
# disallow_any_generics = true
disallow_subclassing_any = true
# do not disallow_untyped_calls, as we have untyped defs of our own
# this rule causes too much chaos at present
#
# disallow_untyped_calls = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_decorators = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_return_any = true
no_implicit_reexport = true
strict_equality = true
extra_checks = true
# additional settings (not part of strict=true)
warn_unreachable = true
[[tool.mypy.overrides]]
disallow_untyped_defs = false
disallow_incomplete_defs = false
module = [
"globus_cli.services.gcs",
"globus_cli.services.transfer.activation",
"globus_cli.services.transfer.client",
"globus_cli.services.transfer.delegate_proxy",
"globus_cli.services.transfer.recursive_ls",
"globus_cli.termio",
"globus_cli.termio.printer",
"globus_cli.termio.errors",
"globus_cli.termio.awscli_text",
]