Skip to content

[1.0.0] DeprecationWarning on Python 3.11 #27

@tuxmaster5000

Description

@tuxmaster5000

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions