Skip to content

Commit 83d4d33

Browse files
authored
Fix Python 2.7 build
testing.postgresql uses pg8000 and the latest version of pg8000 drops support for Python 2. Pin the version of pg8000 used on Python 2 until this PR is incorporated into the testing.postgresql project: [tk0miya/testing.postgresql#29](tk0miya/testing.postgresql#29) (After that, this commit can be reverted)
2 parents 1b5b861 + f27e5a3 commit 83d4d33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
description='Database transaction manager for psycopg2 database connections with seamless support for nested transactions.',
88
url='https://github.com/asqui/psycopg-nestedtransactions',
99
packages=['nestedtransactions'],
10-
install_requires=['psycopg2'],
10+
install_requires=['psycopg2', 'pg8000<=1.12.4;python_version<"3"'],
1111
extras_require=dict(
1212
test=['pytest', 'testing.postgresql']
1313
)

0 commit comments

Comments
 (0)