Integration of various commands via setuptools is deprecated or is discouraged, so we are moving that to tox.
Namely pytest and flake8.
This MR will help with:
-
(a) testing multiple python versions in sane manner. Use python 3.9 as default interpreter for now (TOS 6.0+).
-
(b) resolve flake8 deprecation in setuptools
WARNING: flake8 setuptools integration is deprecated and scheduled for removal in 4.x. For more information, see https://gitlab.com/pycqa/flake8/issues/544
-
(c) dependency lookup issues with latest pip (v23.x) and setuptools (v67.x)
EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools. SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. Searching for foris-client Reading https://pypi.org/simple/foris-client/ Couldn't find index page for 'foris-client' (maybe misspelled?) Scanning index of all packages (this may take a while) Reading https://pypi.org/simple/ No local packages or working download links found for foris-client error: Could not find suitable distribution for Requirement.parse('foris-client')
-
(d) Dropping obsolete way of running tests (via setup.py) and dropping obsolete setuptools keywords (
tests_require
,setup_requires
,dependency_links
, ...).
Closes: #177 (closed)