-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Migrate to Pipfile #1425
Comments
As far as I know, |
Ah, no, that pretty much describes the current status quo, you're exactly right, @webyneter. I didn't realize that was an explicit goal for cookiecutter-django. Feel free to close this ticket! |
@skorokithakis no problem, thank you for your time :) |
@webyneter, FYI, at this point, it's never going to get this feature at this point. It was shut down hard as an explicit design decision by pipenv's maintainer. I expect in the future in order to provide better community support, I'll either have to fork this repo and maintain a separate one based on pipenv or make a feature suggestion to have it as a binary option. @webyneter, which approach would you prefer? |
relevant issue: pypa/pipenv#1398 |
as per #1557 we have now removed the test.txt requirements file so now have a setup compatible with pipfile and pipenv, so it's worth reopening this. (Support for pipenv has also just been added to pycharm which may please some users too). |
Maybe open a new issue to add support for pipenv, as we don't want to "migrate to pipfile". |
@sfdye I'm thinking about merging all requirements files into the single |
My concern with a single
The reason behind multiple settings files is that it's a security feature. It is there as another bit of insurance to protect us from making unfortunate mistakes. |
Were the libraries the problem, or the fact that |
@pydanny, I understand that, but I've got mixed feelings on the issue: on the one hand, having separate requirements does prevent our users opted for default settings from falling into the same trap in future; on the other, it renders their efforts to make the stack as reproducible as possible useless (whereas a single How about we compromise and allow combining all requirements files into one upon bootstrap through an option? |
The default value for such an option must without doubt be the secure one. |
Everything was, put together, and that's the thing: you never know when it's gonna kick you. |
someone had free time to test poetry https://github.com/sdispater/poetry , and see if it meets our requirements? |
I'm -1 on merging all the requirements into one. |
@browniebroke how about an option?
|
I don't know... On one hand, I'm neutral because I have no personal interest in using this option. On the other hand, I'm still against it because it (a) would add some complexity to the template and (b) would encourage a bad security practice. I guess I'm -0... |
@browniebroke we'd really be compromising on security in the opposite case, I agree... |
I'm afraid, there really is no one-size-fits-all solution, at least I don't see it. |
I can see the benefit on having testing/production parity but dev/production parity? I don't think that's a good idea. There will always be extra things we want to do/packages to install that we want in dev but not in production. @luzfcb I think poetry is a great idea and looks to have a better api than pipenv, although as it stands it doesn't support Heroku though - although it wouldn't take much for that to happen. python-poetry/poetry#100 |
@yunti without dev-prod parity, you're not guaranteed to see anything working in production even though it works in dev, strictly speaking. |
@webyneter isn't that what a testing platform is for? It all depends on your workflow I suppose |
@yunti that's a fair statement. As I said, strictly speaking only :) |
:) Perhaps we can just keep an eye on pypa/pipfile#99 poetry doesn't fit many different types of deployments yet, although it's making great progress. So perhaps one to leave for now, but I'll leave that up to you. |
@yunti Poetry has an |
It might be good if the project migrated from
requirements.txt
to aPipfile/pipenv
, which is a better method of tracking requirements and is the official Python replacement forrequirements.txt
as well.The text was updated successfully, but these errors were encountered: