@@ -6,8 +6,9 @@ requires = [
6
6
7
7
# Must be kept in sync with `project.dependencies`
8
8
" cffi>=1.12; platform_python_implementation != 'PyPy'" ,
9
- # Needed because cffi imports distutils, and in Python 3.12, distutils has
10
- # been removed from the stdlib, but installing setuptools puts it back.
9
+ # Used by cffi (which import distutils, and in Python 3.12, distutils has
10
+ # been removed from the stdlib, but installing setuptools puts it back) as
11
+ # well as our build.rs for the rust/cffi bridge.
11
12
" setuptools!=74.0.0,!=74.1.0,!=74.1.1,!=74.1.2" ,
12
13
]
13
14
build-backend = " maturin"
@@ -16,11 +17,11 @@ build-backend = "maturin"
16
17
name = " cryptography"
17
18
version = " 45.0.0.dev1"
18
19
authors = [
19
- {
name =
" The Python Cryptographic Authority and individual contributors" ,
email =
" [email protected] " }
20
+ {
name =
" The Python Cryptographic Authority and individual contributors" ,
email =
" [email protected] " },
20
21
]
21
22
description = " cryptography is a package which provides cryptographic recipes and primitives to Python developers."
22
23
readme = " README.rst"
23
- license = {text = " Apache-2.0 OR BSD-3-Clause" }
24
+ license = { text = " Apache-2.0 OR BSD-3-Clause" }
24
25
classifiers = [
25
26
" Development Status :: 5 - Production/Stable" ,
26
27
" Intended Audience :: Developers" ,
@@ -74,11 +75,24 @@ test = [
74
75
" certifi >=2024" ,
75
76
]
76
77
test-randomorder = [" pytest-randomly" ]
77
- docs = [" sphinx >=5.3.0" , " sphinx-rtd-theme >=3.0.0; python_version >= '3.8'" , " sphinx-inline-tabs; python_version >= '3.8'" ]
78
- docstest = [" pyenchant >=3" , " readme-renderer >=30.0" , " sphinxcontrib-spelling >=7.3.1" ]
78
+ docs = [
79
+ " sphinx >=5.3.0" ,
80
+ " sphinx-rtd-theme >=3.0.0; python_version >= '3.8'" ,
81
+ " sphinx-inline-tabs; python_version >= '3.8'" ,
82
+ ]
83
+ docstest = [
84
+ " pyenchant >=3" ,
85
+ " readme-renderer >=30.0" ,
86
+ " sphinxcontrib-spelling >=7.3.1" ,
87
+ ]
79
88
sdist = [" build >=1.0.0" ]
80
89
# `click` included because its needed to type check `release.py`
81
- pep8test = [" ruff >=0.3.6" , " mypy >=1.4" , " check-sdist; python_version >= '3.8'" , " click >=8.0.1" ]
90
+ pep8test = [
91
+ " ruff >=0.3.6" ,
92
+ " mypy >=1.4" ,
93
+ " check-sdist; python_version >= '3.8'" ,
94
+ " click >=8.0.1" ,
95
+ ]
82
96
83
97
[tool .maturin ]
84
98
python-source = " src"
@@ -137,18 +151,13 @@ warn_unused_configs = true
137
151
strict_equality = true
138
152
139
153
[[tool .mypy .overrides ]]
140
- module = [
141
- " pretend"
142
- ]
154
+ module = [" pretend" ]
143
155
ignore_missing_imports = true
144
156
145
157
[tool .coverage .run ]
146
158
branch = true
147
159
relative_files = true
148
- source = [
149
- " cryptography" ,
150
- " tests/" ,
151
- ]
160
+ source = [" cryptography" , " tests/" ]
152
161
153
162
[tool .coverage .paths ]
154
163
source = [
@@ -157,10 +166,7 @@ source = [
157
166
" *.nox\\ *\\ Lib\\ site-packages\\ cryptography" ,
158
167
" *.nox/pypy/site-packages/cryptography" ,
159
168
]
160
- tests = [
161
- " tests/" ,
162
- " *tests\\ " ,
163
- ]
169
+ tests = [" tests/" , " *tests\\ " ]
164
170
165
171
[tool .coverage .report ]
166
172
exclude_lines = [
@@ -186,4 +192,3 @@ git-only = [
186
192
" .gitattributes" ,
187
193
" .gitignore" ,
188
194
]
189
-
0 commit comments