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

Selectively skip package from Pipfile #1334

Closed
lk-geimfari opened this issue Jan 22, 2018 · 2 comments
Closed

Selectively skip package from Pipfile #1334

lk-geimfari opened this issue Jan 22, 2018 · 2 comments

Comments

@lk-geimfari
Copy link

lk-geimfari commented Jan 22, 2018

How about the feature for skipping some packages selectively, I mean something like this:

~ pipenv install --skip "mypy"

Why?

Some packages not incompatible with some implementations of Python (mypy does not work with PyPy for example) and it would be awesome to have feature for skipping such packages on installing.

For example on building on CI:

  - if [[ $TRAVIS_PYTHON_VERSION == "pypy3" ]]; then pipenv install --dev --skip "mypy"; fi
@uranusjr
Copy link
Member

uranusjr commented Jan 22, 2018

I feel PEP 508-style markers are better suited for this kind of problems. Instead of just mypy = "*", write this in the Pipfile:

mypy = { version = "*", platform_python_implementation = "=='CPython'" }

The syntax should be pretty straightforward, and there are quite some variants available. See PEP 508 for a list of available markers, and examples in Pipfile’s README for some examples.

@lk-geimfari
Copy link
Author

@uranusjr Sounds good. I'll try it. Thank you!

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

3 participants