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

Add Tox config #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

PiDelport
Copy link

This adds a quick basic Tox config, for the convenience of people who use that.

[testenv]
deps =
-rrequirements.txt
commands = py.test
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You might want to use {envpython} -m pytest here - if pytest is already installed system-wide, I think pip won't install the py.test binary, so this will run the system-wide pytest.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is that really the case? I've always used pip to override system-wide binaries with more recent ones in virtualenvs, so I'd be extremely surprised if pip failed to install the py.test executable like that. (I would file it as a bug with pip, if that happened?)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, okay, it seems to work fine with recent pip versions for me - but I remember having this problem earlier.

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

Successfully merging this pull request may close these issues.

2 participants