Skip to content

Commit

Permalink
Require Python 3.7 for start_tls support.
Browse files Browse the repository at this point in the history
Support start_tls is required to allow proxying HTTPS connections,
since the unencrypted HTTP connection gets upgraded to HTTPS in-place
right after the CONNECT succeeds.
  • Loading branch information
andrewshadura committed Apr 24, 2020
1 parent 128321d commit b8ad1db
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@

exec((root_dir / 'src' / 'websockets' / 'version.py').read_text(encoding='utf-8'))

if sys.version_info[:3] < (3, 6, 1):
raise Exception("websockets requires Python >= 3.6.1.")
if sys.version_info[:3] < (3, 7):
raise Exception("websockets requires Python >= 3.7.")

packages = ['websockets', 'websockets/extensions']

Expand Down Expand Up @@ -51,7 +51,6 @@
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
],
Expand All @@ -61,6 +60,6 @@
ext_modules=ext_modules,
include_package_data=True,
zip_safe=False,
python_requires='>=3.6.1',
python_requires='>=3.7',
test_loader='unittest:TestLoader',
)

0 comments on commit b8ad1db

Please sign in to comment.