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

pip 19.1 prevents pytest from being used in editable mode #5167

Closed
nicoddemus opened this issue Apr 25, 2019 · 2 comments · Fixed by #5222
Closed

pip 19.1 prevents pytest from being used in editable mode #5167

nicoddemus opened this issue Apr 25, 2019 · 2 comments · Fixed by #5222
Labels
type: infrastructure improvement to development/releases/CI structure

Comments

@nicoddemus
Copy link
Member

pip 19.1 prevents pytest to use editable mode (pypa/pip#6370) due to our pyproject.toml file.

This is a problem for us for two reasons:

  1. tox.ini uses usedevelop in a release and docs environments. I think we can get away from using it in docs, not so sure about release.

  2. We use editable mode ourselves.

I will open a PR shortly trying to address 1, but for 2 I don't know of any workaround other than downgrading pip manually.

cc @RonnyPfannschmidt

@nicoddemus nicoddemus added the type: infrastructure improvement to development/releases/CI structure label Apr 25, 2019
nicoddemus added a commit to nicoddemus/pytest that referenced this issue Apr 25, 2019
@gaborbernat
Copy link
Contributor

pypa/pip#6434 issue report and discussion, things should be better once pip 19.1.1 gets out (hopefully soon)

@bskinn
Copy link
Contributor

bskinn commented Apr 26, 2019

For (2), perhaps try removing -e . (or pip install -e ., or whatever mechanism) for the pip-mediated editable install, and instead running python setup.py develop to achieve an editable install via setuptools.

This has worked fine so far for both of my PEP517 projects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: infrastructure improvement to development/releases/CI structure
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants