-
Notifications
You must be signed in to change notification settings - Fork 36
/
pyproject.toml
126 lines (111 loc) · 3.56 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
126
[build-system]
requires = ["setuptools>=61.2"]
build-backend = "setuptools.build_meta"
[project]
name = "globus-sdk"
authors = [
{ name = "Globus Team", email = "support@globus.org" },
]
description = "Globus SDK for Python"
keywords = ["globus"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python",
"Programming Language :: Python :: 3.7",
"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.7"
dependencies = [
"requests>=2.19.1,<3.0.0",
"pyjwt[crypto]>=2.0.0,<3.0.0",
# cryptography 3.4.0 is known-bugged, see:
# https://github.com/pyca/cryptography/issues/5756
# pyjwt requires cryptography>=3.3.1,
# so there's no point in setting a lower bound than that
"cryptography>=3.3.1,!=3.4.0",
# depend on the latest version of typing-extensions on python versions which do
# not have all of the typing features we use
'typing_extensions>=4.0; python_version<"3.10"',
# python versions older than 3.9 don't have importlib.resources
'importlib_resources>=5.12.0; python_version<"3.9"',
]
dynamic = ["version"]
[project.readme]
file = "README.rst"
content-type = "text/x-rst"
[project.license]
text = "Apache-2.0"
[project.urls]
Homepage = "https://github.com/globus/globus-sdk-python"
[tool.setuptools.packages.find]
where = ["src"]
namespaces = false
[tool.setuptools.package-data]
globus_sdk = ["py.typed"]
[tool.setuptools.dynamic.version]
attr = "globus_sdk.__version__"
# non-packaging tool configs follow
[tool.pytest.ini_options]
addopts = "--no-success-flaky-report"
testpaths = ["tests"]
norecursedirs = ["tests/non-pytest"]
filterwarnings = [
"error",
]
[tool.scriv]
version = "literal: src/globus_sdk/version.py: __version__"
format = "rst"
output_file = "changelog.rst"
entry_title_template = 'v{{ version }} ({{ date.strftime("%Y-%m-%d") }})'
rst_header_chars = "-~"
categories = [
"Python Support",
"Added",
"Removed",
"Changed",
"Deprecated",
"Fixed",
"Documentation",
"Security",
"Development",
]
[tool.isort]
profile = "black"
known_first_party = ["tests", "globus_sdk"]
[tool.mypy]
strict = true
warn_unreachable = true
warn_no_return = true
[tool.pylint]
load-plugins = ["pylint.extensions.docparams"]
accept-no-param-doc = "false"
[tool.pylint."messages control"]
disable = [
# formatting and cosmetic rules (handled by 'black', etc)
"format", "C",
# refactoring rules (e.g. duplicate or similar code) are very prone to
# false positives
"R",
# emitted when pylint fails to import a module; these warnings
# are usually false-positives for optional dependencies
"import-error",
# "disallowed" usage of our own classes and objects gets underfoot
"protected-access",
# objections to log messages doing eager (vs lazy) string formatting
# the perf benefit of deferred logging doesn't always outweigh the readability cost
"logging-fstring-interpolation", "logging-format-interpolation",
# fixme comments are often useful; re-enable this to quickly find FIXME and
# TODO comments
"fixme",
# most SDK methods currently do not document the exceptions which they raise
# this is an area for potential improvement
"missing-raises-doc",
]
[tool.pylint.variables]
ignored-argument-names = "args|kwargs"