Skip to content

Commit

Permalink
Limit cryptography requirements to < 39
Browse files Browse the repository at this point in the history
Recently, cryptography deprecated some x509 imports. It renders
the version of cryptography below 39 and above 39 incompatible.

Urllib3 under 1.26 do not fix a version to the cryptography module
so using a version of urllib3 under 1.26 will pull cryptography 39
or above despite being incompatible.

A temporary fix would be to fix cryptography to lower than 39 and
eventually force version of urllib3 above or equal to 1.26 to
prevent pulling a wrong version of cryptography.
  • Loading branch information
llacroix committed Jan 27, 2023
1 parent e6408e9 commit 13516f1
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions odoo_tools/requirements/requirements-12.0.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,4 @@ XlsxWriter==0.9.3
xlwt==1.3.*
xlrd >=1.0.0, <=1.2.0
pypiwin32 ; sys_platform == 'win32'
cryptography<39
1 change: 1 addition & 0 deletions odoo_tools/requirements/requirements-13.0.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,4 @@ XlsxWriter==1.1.2
xlwt==1.3.*
xlrd >=1.1.0, <=1.2.0
pypiwin32 ; sys_platform == 'win32'
cryptography<39
1 change: 1 addition & 0 deletions odoo_tools/requirements/requirements-14.0.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,4 @@ xlwt==1.3.*
xlrd >=1.0.0, <=1.2.0
pypiwin32 ; sys_platform == 'win32'
setuptools<58
cryptography<39
2 changes: 1 addition & 1 deletion odoo_tools/requirements/requirements-15.0.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ psycopg2==2.8.5; sys_platform == 'win32'
psycopg2 >=2.7.7; sys_platform != 'win32'
pydot==1.4.1
pyopenssl>=21.0.0
cryptography
cryptography<39
PyPDF2==1.26,<2.0
pypiwin32 ; sys_platform == 'win32'
pyserial==3.4
Expand Down
2 changes: 1 addition & 1 deletion odoo_tools/requirements/requirements-16.0.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Babel==2.9.1 # min version = 2.6.0 (Focal with security backports)
chardet==3.0.4
cryptography
cryptography<39
decorator==4.4.2
docutils==0.16
ebaysdk==2.1.5
Expand Down

0 comments on commit 13516f1

Please sign in to comment.