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

Find a way to allow prereleases, but on an optin basis. #63

Open
hartym opened this issue Nov 13, 2017 · 0 comments
Open

Find a way to allow prereleases, but on an optin basis. #63

hartym opened this issue Nov 13, 2017 · 0 comments
Labels
Milestone

Comments

@hartym
Copy link
Member

hartym commented Nov 13, 2017

Easy to do the following, but one should opt-in to prereleases.

--- a/medikit/feature/python.py
+++ b/medikit/feature/python.py
@@ -309,7 +309,7 @@ class PythonFeature(Feature):
                     tmpfile.name, finder=repository.finder, session=repository.session, options=pip_options
                 )
             )
-            resolver = Resolver(constraints, repository, prereleases=False, clear_caches=False, allow_unsafe=False)
+            resolver = Resolver(constraints, repository, prereleases=True, clear_caches=False, allow_unsafe=False)

             self.render_file_inline(
                 'requirements{}.txt'.format('-' + extra if extra else ''),
@hartym hartym added this to the 0.6 milestone Mar 8, 2018
@hartym hartym added the feature label Mar 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant