thp / urlwatch

Watch (parts of) webpages and get notified when something changes via e-mail, on your phone or via other means. Highly configurable.
https://thp.io/2008/urlwatch/
Other
2.81k stars 352 forks source link

DeprecationWarning alerts related to "Docutils 0.21 or later" #754

Closed sbraz closed 1 year ago

sbraz commented 1 year ago

Hi, The current release (or git master) shows these warnings:

lib/urlwatch/tests/test_filter_documentation.py:21                                                       
  /var/tmp/portage/www-misc/urlwatch-2.26/work/urlwatch-2.26/lib/urlwatch/tests/test_filter_documentation.py:21: DeprecationWarning: The frontend.OptionParser class will be replaced by a subclass of argparse.ArgumentParser in Docutils 0.21 or later.                                                                   
    settings = docutils.frontend.OptionParser(components=components).get_default_values()              

../../../../../../../usr/lib/python3.11/optparse.py:1000                                                                                                                                                           
  /usr/lib/python3.11/optparse.py:1000: DeprecationWarning: The frontend.Option class will be removed in Docutils 0.21 or later.
    option = self.option_class(*args, **kwargs)                                                          
thp commented 1 year ago

Thanks for the report. Related SO code snippet update: https://stackoverflow.com/a/75996218/1047040