drbild / sslpsk

Adds TLS-PSK support to the Python ssl package
Apache License 2.0
25 stars 32 forks source link

[1.0.0] DeprecationWarning on Python 3.11 #27

Open tuxmaster5000 opened 1 year ago

tuxmaster5000 commented 1 year ago

When build for Python 3.11 an deprecation warning is shown on testing:

+ /usr/bin/python3 setup.py test
/usr/lib/python3.11/site-packages/setuptools/dist.py:771: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead
  warnings.warn(
running test
running egg_info
WARNING: Testing via this command is deprecated and will be removed in a future version. Users looking for a generic test entry point independent of test runner are encouraged to use tox.
writing sslpsk.egg-info/PKG-INFO
writing dependency_links to sslpsk.egg-info/dependency_links.txt
writing top-level names to sslpsk.egg-info/top_level.txt
reading manifest file 'sslpsk.egg-info/SOURCES.txt'
adding license file 'LICENSE'
adding license file 'NOTICE'
writing manifest file 'sslpsk.egg-info/SOURCES.txt'
running build_ext
copying build/lib.linux-x86_64-cpython-311/sslpsk/_sslpsk.cpython-311-x86_64-linux-gnu.so -> sslpsk
.
----------------------------------------------------------------------
Ran 1 test in 0.010s

OK
testClient (sslpsk.test.test_sslpsk.SSLPSKTest.testClient) ... /builddir/build/BUILD/sslpsk-1.0.0/sslpsk/sslpsk.py:99: DeprecationWarning: ssl.wrap_socket() is deprecated, use SSLContext.wrap_socket()
  sock = ssl.wrap_socket(*args, **kwargs)
/usr/lib64/python3.11/ssl.py:1471: DeprecationWarning: ssl.PROTOCOL_TLSv1 is deprecated
  context = SSLContext(ssl_version)
ok

----------------------------------------------------------------------
Ran 1 test in 0.004s