davesteele / gnome-gmail

Integrate GMail into the Linux Desktop
https://davesteele.github.io/gnome-gmail/
GNU General Public License v2.0
50 stars 13 forks source link

Avoid using deprecated distutils module #90

Open slyon opened 2 years ago

slyon commented 2 years ago

The distutils module has been deprecated since python 3.10 and leads to deprecation warnings during the test of gnome-gmail. Which leads to failed tests (due to output/deprecation warnings on stderr) in Ubuntu 22.04. PEP 632 suggests using the setuptools module instead: https://www.python.org/dev/peps/pep-0632/#migration-advice

# python3 setup.py test --pytest-args --ignore=test/test_setup.py
/tmp/autopkgtest.c1v6yk/build.RDc/src/setup.py:3: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
  from distutils.core import setup, Command
running test
[...]