Fix macOS version parsing (again), bump v1.11.2

#1393
This commit is contained in:
Pascal Jürgens 2020-02-21 19:37:24 +00:00 committed by GitHub
parent 8aa15174ab
commit 0814a20ec4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ def _find_ssl_lib():
# https://www.shh.sh/2020/01/04/python-abort-trap-6.html # https://www.shh.sh/2020/01/04/python-abort-trap-6.html
if sys.platform == 'darwin': if sys.platform == 'darwin':
release, _version_info, _machine = platform.mac_ver() release, _version_info, _machine = platform.mac_ver()
major = release.split('.', maxsplit=1)[0] ten, major, *minor = release.split('.')
# macOS 10.14 "mojave" is the last known major release # macOS 10.14 "mojave" is the last known major release
# to support unversioned libssl.dylib. Anything above # to support unversioned libssl.dylib. Anything above
# needs specific versions # needs specific versions

View File

@ -1,3 +1,3 @@
# Versions should comply with PEP440. # Versions should comply with PEP440.
# This line is parsed in setup.py: # This line is parsed in setup.py:
__version__ = '1.11.1' __version__ = '1.11.2'