Skip to content

Commit b8ad1db

Browse files
committed
Require Python 3.7 for start_tls support.
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.
1 parent 128321d commit b8ad1db

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

setup.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121

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

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

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

@@ -51,7 +51,6 @@
5151
'Operating System :: OS Independent',
5252
'Programming Language :: Python',
5353
'Programming Language :: Python :: 3',
54-
'Programming Language :: Python :: 3.6',
5554
'Programming Language :: Python :: 3.7',
5655
'Programming Language :: Python :: 3.8',
5756
],
@@ -61,6 +60,6 @@
6160
ext_modules=ext_modules,
6261
include_package_data=True,
6362
zip_safe=False,
64-
python_requires='>=3.6.1',
63+
python_requires='>=3.7',
6564
test_loader='unittest:TestLoader',
6665
)

0 commit comments

Comments
 (0)