Skip to content
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 doesnt run the tests #50

Open
jayvdb opened this issue Feb 3, 2019 · 2 comments
Open

python setup.py test doesnt run the tests #50

jayvdb opened this issue Feb 3, 2019 · 2 comments

Comments

@jayvdb
Copy link

jayvdb commented Feb 3, 2019

> python setup.py test
/home/jayvdb/.asdf/installs/python/3.6.7/lib/python3.6/distutils/dist.py:261: UserWarning: Unknown distribution option: 'long_description_content_type'
  warnings.warn(msg)
running test
running egg_info
writing cli_helpers.egg-info/PKG-INFO
writing dependency_links to cli_helpers.egg-info/dependency_links.txt
writing requirements to cli_helpers.egg-info/requires.txt
writing top-level names to cli_helpers.egg-info/top_level.txt
reading manifest file 'cli_helpers.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'cli_helpers.egg-info/SOURCES.txt'
running build_ext

----------------------------------------------------------------------
Ran 0 tests in 0.000s

OK

setup.py needs tests_require, and override the test loader to be pytest, etc.

@mgorny
Copy link
Contributor

mgorny commented May 27, 2020

The test command is deprecated in setuptools. Their maintainers want us to run pytest directly.

@jayvdb
Copy link
Author

jayvdb commented May 27, 2020

Ya, this was before that decision was implemented.

pytest-runner is another option

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants