Temporary pin psycopg2-binary version for macOS (#3186)

This commit is contained in:
Polina Bungina
2024-10-18 08:44:28 +02:00
committed by GitHub
parent ff278705d6
commit ba970d8c63
3 changed files with 4 additions and 1 deletions
+2 -1
View File
@@ -25,7 +25,8 @@ def install_requirements(what):
requirements += ['coverage'] requirements += ['coverage']
# try to split tests between psycopg2 and psycopg3 # try to split tests between psycopg2 and psycopg3
requirements += ['psycopg[binary]'] if sys.version_info >= (3, 8, 0) and\ requirements += ['psycopg[binary]'] if sys.version_info >= (3, 8, 0) and\
(sys.platform != 'darwin' or what == 'etcd3') else ['psycopg2-binary'] (sys.platform != 'darwin' or what == 'etcd3') else ['psycopg2-binary==2.9.9'
if sys.platform == 'darwin' else 'psycopg2-binary']
for r in read('requirements.txt').split('\n'): for r in read('requirements.txt').split('\n'):
r = r.strip() r = r.strip()
if r != '': if r != '':
+1
View File
@@ -1,3 +1,4 @@
psycopg2-binary==2.9.9; sys_platform == "darwin"
psycopg2-binary psycopg2-binary
behave behave
coverage coverage
+1
View File
@@ -3,4 +3,5 @@ sphinx_rtd_theme>1
sphinxcontrib-apidoc sphinxcontrib-apidoc
sphinx-github-style<1.0.3 sphinx-github-style<1.0.3
psycopg[binary] psycopg[binary]
psycopg2-binary==2.9.9; sys_platform == "darwin"
psycopg2-binary psycopg2-binary