question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

new 'pre' syntax in Pipfile

See original GitHub issue

Placeholder ticket for the proposition we talk with Kenneth.

Add the following syntax in the Pipfile:

...
mypkg = { version = "*", pre="true"}
...

This would allow to allow prerelease resolution for one package only.

Change the pipenv install mypkg --pre behavior. It will set the setting described above only for this very package. Today it turns on a general ‘pre’ setting for the whole Pipfile, leading other packages to also resolve to prerelease.

Change the pipenv update and pipenv lock behavior. They should take into account the presence of the pre=true setting for some package.

Here are some impact I think might happen

  • if a version of package is describe at >=1.0 in one dependency, and another package define the pre=true while a new version 2.0.0.b1 is available on pypi, pipenv install should take it
  • I don’t see any syntax to turn the general pre setting in the Pipfile. Maybe we can document users need to do a pipenv update --pre or pipenv lock --pre to turn the general ‘pre’ settings on.

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:143
  • Comments:45 (12 by maintainers)

github_iconTop GitHub Comments

38reactions
ncoghlancommented, Sep 3, 2019

Just noting that pipenv isn’t currently abiding by one of the usability recommendations that was included in the PEP 440 specification. Specifically: “By default, dependency resolutions tools SHOULD … accept remotely available pre-releases for version specifiers where there is no final or post release that satisfies the version specifier”

28reactions
andrey-semakincommented, Jan 8, 2020

It constantly bits me, because black doesn’t have stable releases yet.

pipenv + black = 💥

Read more comments on GitHub >

github_iconTop Results From Across the Web

Basic Usage of Pipenv - Python Packaging Authority
Pipfiles contain information for the dependencies of the project, and supersedes the requirements.txt file used in most Python projects. You should add a ......
Read more >
Advanced Usage of Pipenv - Read the Docs
Pipenv will expand environment variables (if defined) in your Pipfile. Quite useful if you need to authenticate to a private PyPI:.
Read more >
Common Pipenv Errors - Towards Data Science
After this command, your Pipfile has a new variable; 'allow_prereleases = true.' Note that this will allow the installation of any pre-release ...
Read more >
pipenv Documentation - Read the Docs
pipenv install is fully compatible with pip install syntax, for which the ... Pipfile.lock takes advantage of some great new security improvements in...
Read more >
How to resolve Python package dependencies with pipenv?
Hint: try $ pipenv lock --pre if it is a pre-release dependency. ... Clearing the cache on pipfile.lock , uninstalling your package and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found