Closed ocefpaf closed 7 years ago
This PR will require me to add a few packages to the ODM3 channel before we can merge it...
@ocefpaf seems like the uwsgi package is missing causing travis to fail.. should I remove this from requirements.txt?
@ocefpaf seems like the uwsgi package is missing causing travis to fail.. should I remove this from requirements.txt?
uwsgi
is not a direct dependency listed in requirements.txt
. (I am not sure what is demanding it btw.)
But the right thing to do is to add uwsgi
, and others that will show up, in the odm2
channel. I am working on that now.
I just added uwsgi
to WOFpy requirements.txt
yesterday.. not sure if you got that notification. Thanks.
I just added
uwsgi
to WOFpyrequirements.txt
yesterday.. not sure if you got that notification. Thanks.
Ah. Now I see. Somehow I missed that PR... Either way the right thing to do is to add that package to the odm2
channel if we really need it.
I do not know how uwsgi
is used by WOFpy. If that is a "dev" dependency maybe we should move it to requirements-dev.txt
.
@ocefpaf uwsgi
will be used for production deployment of wofpy
, so I just added that as a dependency for wofpy
do you think that's bad practice, and user should just have it as an extra package to install themselves?
@ocefpaf
uwsgi
will be used for production deployment of wofpy
Not sure what you mean by production here. uwsgi
is not imported directly, right? If the user do need it to get a particular setup working then it should be optional. If not we don't have a choice but to leave it in the main requirement.txt
file.
If we do go that route we make WOFpy incompatible with Windows b/c uwsgi
does not work on Windows.
Not sure what you mean by production here.
I meant when a user is trying to deploy wofpy
within their own server. In order to do this, uwsgi is needed. I didn't know uwsgi
doesn't work on windows. In that case, let's make uwsgi
optional, and I'll note that within my documentation. Thanks!
I meant when a user is trying to deploy
wofpy
within their own server
We can add a server
extra and people installing with pip install wofpy[server]
will get the right set of packages.
Everything looks good on this pull request, so should I merge this first or should I change the requirements.txt
first?
Everything looks good on this pull request, so should I merge this first or should I change the
requirements.txt
first?
Let's wait for the uwsgi
to make into the odm2 channel. I just merged https://github.com/ODM2/conda-recipes-ODM2/issues/55 and it should take a few minutes. I will restart the CI here and ping you once that is done.
@lsetiawan it is passing now. Can you review/merge it?
@ocefpaf It has been reviewed and merged.. should I remove uwsgi
from requirements.txt
?
@ocefpaf It has been reviewed and merged.. should I remove
uwsgi
fromrequirements.txt
?
I am working on adding that as an optional dependency right now.
Okay. I'll let you work on that. Thanks! 😃
@lsetiawan and @emiliom I notice that
.travis.yml
may be used as "instructions" to get an environment for development. Because of that this PR uses theconda-forge
channel with more care by not adding it to the.condarc
. This ensure that people won't compromise their envs with package versions that may not be 100% compatible withdefaults
andodm2
. (See http://conda-forge.github.io/docs/conda-forge_gotchas.html#using-multiple-channels for more info on the possible problems from mixing channels.)