vlasovskikh / funcparserlib

Recursive descent parsing library for Python based on functional combinators
https://funcparserlib.pirx.ru
MIT License
341 stars 38 forks source link

Replace deprecated `setup.py test` with unittest #59

Closed jdufresne closed 4 years ago

jdufresne commented 4 years ago

The setuptools test command has been formally deprecated since version 41.5.0 (27 Oct 2019). The project recommends replacing its use with tox as a project level testing entrypoint.

Fixes the warning when running tests:

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.

For more details, see the setuptools history: https://setuptools.readthedocs.io/en/latest/history.html#v41-5-0

And the command's documentation: https://setuptools.readthedocs.io/en/latest/setuptools.html#test-build-package-and-run-a-unittest-suite

vlasovskikh commented 4 years ago

@jdufresne Thank you! It's a good idea, I came to the same solution for tox.ini while moving the project from setuptools to poetry.