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

Allow pre-release for specific packages only #2334

Closed
jaroel opened this issue Jun 10, 2018 · 2 comments
Closed

Allow pre-release for specific packages only #2334

jaroel opened this issue Jun 10, 2018 · 2 comments

Comments

@jaroel
Copy link

jaroel commented Jun 10, 2018

I'd like to be able to install one specific package with a pre-release, but not the rest.
I can currently set allow_prereleases = true, but I'll have to pin every other package to a stable version range.

I'd rather have pipenv to prefer stable releases, but allow me to set any version for a package.

For example, I'd like to use the black package with version 18.6b2.
I do not want the pre-releases for pylint-django, or any other dependency as they do not work at the moment.

This one doesn't work, but I'd like it to :)

[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"

[packages]

[dev-packages]
black = "18.6b2"
pylint-django = "*"

[requires]
python_version = "3.6"

[pipenv]
allow_prereleases = false

This one does work. Note the pylint and astroid pinning.

[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"

[packages]

[dev-packages]
pylint = "==1.*"
black = "*"
pylint-django = "*"
mypy = "*"
astroid = "==1.*"

[requires]
python_version = "3.6"

[pipenv]
allow_prereleases = true

@gsemet
Copy link
Contributor

gsemet commented Jun 10, 2018

Similar to #1760.

@uranusjr
Copy link
Member

Closing this to centralise the discussion.

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