From 2d94946a938878ea10da479b7ac83ab1c434df4d Mon Sep 17 00:00:00 2001 From: Itamar Turner-Trauring Date: Fri, 28 Apr 2023 21:22:17 -0400 Subject: Expose X509_V_* constants (#1202) * Expose X509_V_* constants. * Switch to strategy where cryptography 40.0.2 exposes the constants. * Fix bad merge. * Fix flake. * Link to PR. * Check availability, rather than versions. * Add namespacing. * Add success code to namespace. * Fix lint. * Remove unnecessary conditional. * Update CHANGELOG.rst Co-authored-by: Alex Gaynor --------- Co-authored-by: Itamar Turner-Trauring Co-authored-by: Alex Gaynor --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index 42bf2c0..d548ccd 100644 --- a/setup.py +++ b/setup.py @@ -98,7 +98,8 @@ if __name__ == "__main__": package_dir={"": "src"}, install_requires=[ # Fix cryptographyMinimum in tox.ini when changing this! - "cryptography>=38.0.0,<41", + # 40.0.0 and .1 are missing X509_V_* constants that we re-export. + "cryptography>=38.0.0,<41,!=40.0.0,!=40.0.1", ], extras_require={ "test": ["flaky", "pretend", "pytest>=3.0.1"], -- cgit v1.2.1