-
Notifications
You must be signed in to change notification settings - Fork 218
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
Repair Appveyor #697
Repair Appveyor #697
Conversation
Ok, looks like it works. |
Codecov Report
@@ Coverage Diff @@
## devel #697 +/- ##
==========================================
- Coverage 81.77% 81.66% -0.11%
==========================================
Files 36 36
Lines 3644 3644
Branches 832 832
==========================================
- Hits 2980 2976 -4
- Misses 470 474 +4
Partials 194 194
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for making the fixes! I've been a bit negligent of cobrapy lately but will dedicate more time to it next week.
Two inline comments.
appveyor.yml
Outdated
@@ -47,10 +47,10 @@ install: | |||
if ($env:CONDA -eq "true") { | |||
conda config --set always_yes yes --set changeps1 no; | |||
conda install -q pip setuptools wheel numpy scipy; | |||
pip install -r develop-requirements.txt; | |||
pip install . | |||
pip install --disable-pip-version-check -r develop-requirements.txt; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rather than setting these options on each command I prefer to set an environment variable PIP_DISABLE_PIP_VERSION_CHECK=yes
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In fact, I just set this variable through the interface so you don't have to worry about it. These options can simply be removed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it bother if I still set the environment variable in the config? Just so that it is explicit and people could fork the config and it would still work.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea, please do.
cobra/util/version_info.py
Outdated
@@ -55,7 +55,8 @@ def get_pkg_info(): | |||
# using requirements files that can be read in. | |||
dependencies = frozenset(PKG_ORDER) | |||
blob = dict() | |||
for dist in pip.get_installed_distributions(): | |||
dists = [d for d in pkg_resources.working_set] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since dists
is not used for anything else can you combine these two lines to:
for dist in pkg_resources.working_set:
please?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will do. This is actually taken from #696.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you Christian 👍
So this is an attempt to repair appveyor.
I suspect the problem is that conda has not yet updated pip to version 10. So even if you update pip with conda you get pip 9. this triggers a warning from pip to stderr which appveyor interprets as failure (wrongly so).