Skip to content

Commit d2bae00

Browse files
security: remove vulnerable Python 2 deps and drop Python 2 references
Remove pyopenssl (CVE-2026-27459), pyasn1 (CVE-2026-30922), and ndg-httpsclient from install_requires. These were only needed for Python 2 SNI support and are dead code on Python 3. - Remove Python 2 pyopenssl injection in pusher/requests.py - Remove 'Python :: 2' classifier from setup.py - Update README to note Python 2 is no longer supported Closes #252
1 parent 8463644 commit d2bae00

2 files changed

Lines changed: 2 additions & 8 deletions

File tree

README.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,7 @@ normally `easy_install` or `pip`. For example:
4848
pip install pusher
4949
```
5050

51-
Users on Python 2.x and older versions of pip may get a warning, due to pip compiling the optional `pusher.aiohttp` module, which uses Python 3 syntax. However, as `pusher.aiohttp` is not used by default, this does not affect the library's functionality. See [our Github issue](https://github.com/pusher/pusher-http-python/issues/52), as well as [this issue from Gunicorn](https://github.com/benoitc/gunicorn/issues/788) for more details.
52-
53-
On Linux, you must ensure that OpenSSL is installed, e.g. on Debian/Ubuntu:
54-
55-
```sh
56-
$ sudo apt-get install build-essential libssl-dev libffi-dev
57-
```
51+
**Note: Python 2 is no longer supported.** Python 2 reached end-of-life on January 1, 2020. This library requires Python 3.6+.
5852

5953
## Getting started
6054

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
'Development Status :: 4 - Beta',
2727
'Intended Audience :: Developers',
2828
'Topic :: Internet :: WWW/HTTP',
29-
'Programming Language :: Python :: 2',
3029
'Programming Language :: Python :: 3',
30+
'Programming Language :: Python :: 3 :: Only',
3131
],
3232
keywords='pusher rest realtime websockets service',
3333
license='MIT',

0 commit comments

Comments
 (0)