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

pytest alias in setup.cfg not working #2107

Closed
dkirkby opened this issue Dec 1, 2016 · 3 comments
Closed

pytest alias in setup.cfg not working #2107

dkirkby opened this issue Dec 1, 2016 · 3 comments

Comments

@dkirkby
Copy link

dkirkby commented Dec 1, 2016

I followed the instructions here and this works:

python setup.py pytest

but this does not invoke pytest:

python setup.py test

My setup.cfg contains only these two lines:

[aliases]
test=pytest

My environment is:

% python --version
Python 2.7.12 :: Anaconda 2.3.0 (x86_64)
% uname - a
Darwin dk-2.local 15.6.0 Darwin Kernel Version 15.6.0: Thu Sep  1 15:01:16 PDT 2016; root:xnu-3248.60.11~2/RELEASE_X86_64 x86_64
@RonnyPfannschmidt
Copy link
Member

at first glance this is an issue with setuptools/conda, not pytest

@dkirkby
Copy link
Author

dkirkby commented Dec 11, 2016

The underlying problem may be with setuptools/conda, but there is also an issue with the pytest documentation if it provides instructions that do not work with a mainstream distribution (anaconda).

@dkirkby
Copy link
Author

dkirkby commented Dec 11, 2016

I had another look and realized that my setup.cfg was not in the package top-level dir. After fixing this, python setup.py test works as advertised. Sorry for the noise.

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