jaseg / python-mpv

Python interface to the awesome mpv media player
https://git.jaseg.de/python-mpv.git
Other
550 stars 68 forks source link

Python 3.10 deprecation warnings #188

Closed baldurmen closed 2 years ago

baldurmen commented 2 years ago

While running the testsuite with python 3.10, I get a bunch of deprecation warnings:

I: pybuild base:237: python3.10 setup.py test 
/usr/lib/python3/dist-packages/setuptools/dist.py:717: 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
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.
running egg_info
creating python_mpv.egg-info
writing python_mpv.egg-info/PKG-INFO
writing dependency_links to python_mpv.egg-info/dependency_links.txt
writing requirements to python_mpv.egg-info/requires.txt
writing top-level names to python_mpv.egg-info/top_level.txt
writing manifest file 'python_mpv.egg-info/SOURCES.txt'
reading manifest file 'python_mpv.egg-info/SOURCES.txt'
adding license file 'LICENSE'
writing manifest file 'python_mpv.egg-info/SOURCES.txt'
running build_ext
test_loadfile_with_subtitles (tests.test_mpv.CommandTests) ... /<<PKGBUILDDIR>>/mpv.py:849: DeprecationWarning: setDaemon() is deprecated, set the daemon attribute instead
  self._event_thread.setDaemon(True)
ok
test_sub_add (tests.test_mpv.CommandTests) ... /<<PKGBUILDDIR>>/mpv.py:849: DeprecationWarning: setDaemon() is deprecated, set the daemon attribute instead
  self._event_thread.setDaemon(True)
ok
test_register_decorator_fun (tests.test_mpv.KeyBindingTest) ... /<<PKGBUILDDIR>>/mpv.py:849: DeprecationWarning: setDaemon() is deprecated, set the daemon attribute instead
  self._event_thread.setDaemon(True)
ok
test_register_decorator_fun_chaining (tests.test_mpv.KeyBindingTest) ... /<<PKGBUILDDIR>>/mpv.py:849: DeprecationWarning: setDaemon() is deprecated, set the daemon attribute instead
  self._event_thread.setDaemon(True)
ok
test_register_direct_bound_method (tests.test_mpv.KeyBindingTest) ... /<<PKGBUILDDIR>>/mpv.py:849: DeprecationWarning: setDaemon() is deprecated, set the daemon attribute instead
  self._event_thread.setDaemon(True)
ok
test_register_direct_cmd (tests.test_mpv.KeyBindingTest) ... /<<PKGBUILDDIR>>/mpv.py:849: DeprecationWarning: setDaemon() is deprecated, set the daemon attribute instead
  self._event_thread.setDaemon(True)
ok
test_register_direct_fun (tests.test_mpv.KeyBindingTest) ... /<<PKGBUILDDIR>>/mpv.py:849: DeprecationWarning: setDaemon() is deprecated, set the daemon attribute instead
  self._event_thread.setDaemon(True)
ok
test_register_simple_decorator_fun_chaining (tests.test_mpv.KeyBindingTest) ... /<<PKGBUILDDIR>>/mpv.py:849: DeprecationWarning: setDaemon() is deprecated, set the daemon attribute instead
  self._event_thread.setDaemon(True)
ok
test_observe_property (tests.test_mpv.ObservePropertyTest) ... /<<PKGBUILDDIR>>/mpv.py:849: DeprecationWarning: setDaemon() is deprecated, set the daemon attribute instead
  self._event_thread.setDaemon(True)
ok
test_property_observer_decorator (tests.test_mpv.ObservePropertyTest) ... /<<PKGBUILDDIR>>/mpv.py:849: DeprecationWarning: setDaemon() is deprecated, set the daemon attribute instead
  self._event_thread.setDaemon(True)
ok
test_instance_method_property_observer (tests.test_mpv.RegressionTests)
Ensure that bound method objects can be used as property observers. ... ok
test_unobserve_property_runtime_error (tests.test_mpv.RegressionTests)
Ensure a `RuntimeError` is not thrown within ... ok
test_create_destroy (tests.test_mpv.TestLifecycle) ... ok
test_event_callback (tests.test_mpv.TestLifecycle) ... ok
test_flags (tests.test_mpv.TestLifecycle) ... ok
test_log_handler (tests.test_mpv.TestLifecycle) ... /<<PKGBUILDDIR>>/mpv.py:849: DeprecationWarning: setDaemon() is deprecated, set the daemon attribute instead
  self._event_thread.setDaemon(True)
/<<PKGBUILDDIR>>/mpv.py:849: DeprecationWarning: setDaemon() is deprecated, set the daemon attribute instead
  self._event_thread.setDaemon(True)
/<<PKGBUILDDIR>>/mpv.py:849: DeprecationWarning: setDaemon() is deprecated, set the daemon attribute instead
  self._event_thread.setDaemon(True)
ok
test_options (tests.test_mpv.TestLifecycle) ... ok
test_wait_for_event (tests.test_mpv.TestLifecycle) ... /<<PKGBUILDDIR>>/mpv.py:849: DeprecationWarning: setDaemon() is deprecated, set the daemon attribute instead
  self._event_thread.setDaemon(True)
ok
test_wait_for_event_shutdown (tests.test_mpv.TestLifecycle) ... /<<PKGBUILDDIR>>/mpv.py:849: DeprecationWarning: setDaemon() is deprecated, set the daemon attribute instead
  self._event_thread.setDaemon(True)
ok
test_wait_for_property_negative (tests.test_mpv.TestLifecycle) ... /<<PKGBUILDDIR>>/mpv.py:849: DeprecationWarning: setDaemon() is deprecated, set the daemon attribute instead
  self._event_thread.setDaemon(True)
ok
test_wait_for_property_positive (tests.test_mpv.TestLifecycle) ... /<<PKGBUILDDIR>>/mpv.py:849: DeprecationWarning: setDaemon() is deprecated, set the daemon attribute instead
  self._event_thread.setDaemon(True)
ok
test_wait_for_property_shutdown (tests.test_mpv.TestLifecycle) ... /<<PKGBUILDDIR>>/mpv.py:849: DeprecationWarning: setDaemon() is deprecated, set the daemon attribute instead
  self._event_thread.setDaemon(True)
ok
test_array_property_bounce (tests.test_mpv.TestProperties) ... ok
test_multivalued_option (tests.test_mpv.TestProperties) ... ok
test_option_read (tests.test_mpv.TestProperties) ... /<<PKGBUILDDIR>>/mpv.py:849: DeprecationWarning: setDaemon() is deprecated, set the daemon attribute instead
  self._event_thread.setDaemon(True)
/<<PKGBUILDDIR>>/mpv.py:849: DeprecationWarning: setDaemon() is deprecated, set the daemon attribute instead
  self._event_thread.setDaemon(True)
/<<PKGBUILDDIR>>/mpv.py:849: DeprecationWarning: setDaemon() is deprecated, set the daemon attribute instead
  self._event_thread.setDaemon(True)
ok
test_osd_property_bounce (tests.test_mpv.TestProperties) ... ok
test_property_bounce (tests.test_mpv.TestProperties) ... ok
test_property_decoding_invalid_utf8 (tests.test_mpv.TestProperties) ... ok
test_property_decoding_multi (tests.test_mpv.TestProperties) ... ok
test_property_decoding_valid_utf8 (tests.test_mpv.TestProperties) ... ok
test_raw_property_bounce (tests.test_mpv.TestProperties) ... ok
test_read (tests.test_mpv.TestProperties) ... /<<PKGBUILDDIR>>/mpv.py:849: DeprecationWarning: setDaemon() is deprecated, set the daemon attribute instead
  self._event_thread.setDaemon(True)
/<<PKGBUILDDIR>>/mpv.py:849: DeprecationWarning: setDaemon() is deprecated, set the daemon attribute instead
  self._event_thread.setDaemon(True)
/<<PKGBUILDDIR>>/mpv.py:849: DeprecationWarning: setDaemon() is deprecated, set the daemon attribute instead
  self._event_thread.setDaemon(True)
/<<PKGBUILDDIR>>/mpv.py:849: DeprecationWarning: setDaemon() is deprecated, set the daemon attribute instead
  self._event_thread.setDaemon(True)
/<<PKGBUILDDIR>>/mpv.py:849: DeprecationWarning: setDaemon() is deprecated, set the daemon attribute instead
  self._event_thread.setDaemon(True)
/<<PKGBUILDDIR>>/mpv.py:849: DeprecationWarning: setDaemon() is deprecated, set the daemon attribute instead
  self._event_thread.setDaemon(True)
/<<PKGBUILDDIR>>/mpv.py:849: DeprecationWarning: setDaemon() is deprecated, set the daemon attribute instead
  self._event_thread.setDaemon(True)
ok
test_write (tests.test_mpv.TestProperties) ... skipped 'Segfaults the testsuite'
test_custom_stream (tests.test_mpv.TestStreams) ... ok
test_python_stream (tests.test_mpv.TestStreams) ... /<<PKGBUILDDIR>>/mpv.py:849: DeprecationWarning: setDaemon() is deprecated, set the daemon attribute instead
  self._event_thread.setDaemon(True)
/<<PKGBUILDDIR>>/mpv.py:849: DeprecationWarning: setDaemon() is deprecated, set the daemon attribute instead
  self._event_thread.setDaemon(True)
ok

----------------------------------------------------------------------
Ran 35 tests in 20.858s

OK (skipped=1)
jaseg commented 2 years ago

Fixed in 518421a1, thank you very much for the report!