-
Notifications
You must be signed in to change notification settings - Fork 271
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'python setup.py test' is deprecated #328
Comments
Hello @MathieuCouette, thanks for the notice. The problem of pull request #320 is that |
Replacing In this situation, the move to I don't think I can leave my comments on the PR, if you want. P.S.: I come from the Node.js world, and while I've used the language itself before, I am fairly new to Python development. I hadn't heard of |
Maybe candidates are nose or nose2 or pytest and pytest is the strongest candidate, I think, because it seems that pytest is much popular than others and used in many oss projects already. |
Using `python setup.py test` is now deprecated [1], users are encouraged to be explicit about the test command. Running yamllint tests using the Python standard library (`unittest`) can be done using: python -m unittest discover Why not nose, tox or pytest? Because they would add a dependency, make tests running more complicated and verbose for new users, and their benefit is not worth for this simple project (only 2 runtime dependencies: PyYAML and pathspec). Resolves #328. [1]: pypa/setuptools#1878
Thanks for your feedback @ssato and @MathieuCouette. I have created #329 which is, I think, the easiest change to get this fixed. |
Using `python setup.py test` is now deprecated [1], users are encouraged to be explicit about the test command. Running yamllint tests using the Python standard library (`unittest`) can be done using: python -m unittest discover Why not nose, tox or pytest? Because they would add a dependency, make tests running more complicated and verbose for new users, and their benefit is not worth for this simple project (only 2 runtime dependencies: PyYAML and pathspec). Resolves #328. [1]: pypa/setuptools#1878
Using `python setup.py test` is now deprecated [1], users are encouraged to be explicit about the test command. Running yamllint tests using the Python standard library (`unittest`) can be done using: python -m unittest discover Why not nose, tox or pytest? Because they would add a dependency, make tests running more complicated and verbose for new users, and their benefit is not worth for this simple project (only 2 runtime dependencies: PyYAML and pathspec). Resolves #328. [1]: pypa/setuptools#1878
Using `python setup.py test` is now deprecated [1], users are encouraged to be explicit about the test command. Running yamllint tests using the Python standard library (`unittest`) can be done using: python -m unittest discover Why not nose, tox or pytest? Because they would add a dependency, make tests running more complicated and verbose for new users, and their benefit is not worth for this simple project (only 2 runtime dependencies: PyYAML and pathspec). Resolves adrienverge#328. [1]: pypa/setuptools#1878
When I run the
python setup.py test
command as recommended in theCONTRIBUTING.rst
file, I get the following deprecation warning:It appears the command was deprecated last year (pypa/setuptools#1684) and might soon be completely removed (pypa/setuptools#931 (comment)). It may be safe to investigate an alternative like
tox
(#320).The text was updated successfully, but these errors were encountered: