-
-
Notifications
You must be signed in to change notification settings - Fork 21
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
Update 0.11.14 #3
Conversation
Hi! This is the friendly automated conda-forge-linting service. I just wanted to let you know that I linted all conda-recipes in your PR ( |
# coding: utf-8 | ||
from __future__ import print_function, absolute_import | ||
|
||
__version__ = "0.11.7" |
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.
This seems wrong compared with the 0.11.14 everywhere else...
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.
This is replaced by this sed
call.
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.
Note it is run on Unix and Windows.
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.
That said I can pick something else it looks like. For example, __version__ = "$VERSION"
or similar as it replaces all lines with __version__
in them.
@kalefranz can you please advise how to proceed with this? |
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.
Never tried building this so can't really make any intelligent comments on the broader issue...but the immediate build problem is an easy fix.
@@ -1,8 +1,6 @@ | |||
{% set version = "0.11.7" %} |
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.
Removing this is causing a fail when the recipe tries to render (see comment below )
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.
Yeah there was an error when staging. Fixing it now.
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.
Note: Still shows up in the diff as the version was bumped. Please see the line below for the version bump.
package: | ||
name: ruamel_yaml | ||
version: 0.11.7 | ||
version: 0.11.14 | ||
|
||
source: | ||
fn: ruamel_yaml-{{ version }}.tar.gz |
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.
Fails here
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.
Actually, seems like {{ version }}
may as well be used in the package
section too.
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 point. 👍
One other comment: any reason not to grab the source from the mercurial repo like the continuum recipe does? |
We have preferred downloading tarballs and the like. As that actually does work ok here (with the right URL), it makes sense that we go ahead and do it. |
FYI have submitted most of the changes to these patches upstream in PR ( ContinuumIO/anaconda-recipes#57 ) assuming that is the official source. |
I think I kind of have this working. Would be good to get another review of these changes. |
@mingwandroid , could really use your help sorting this out. 😟 |
I'll try to take a look tomorrow. |
Sorry I'm late to the party here. Just saw this. Will try to get some time today to work on it. |
Hi! This is the friendly automated conda-forge-linting service. I just wanted to let you know that I linted all conda-recipes in your PR ( |
Appears all that was needed was to change |
This version still has the weird problem with pulling out the version from the source files on Windows; note this line in the log file. That gets propagated into the setup.py having an empty version string. My PR fixes that by restructuring the bash script a bit (although I won't claim to understand why the version here doesn't work). So, I think my PR should be merged rather than this one. |
RECIPE_DIR=${1-$RECIPE_DIR} | ||
SRC_DIR=${2-$SRC_DIR} | ||
|
||
VERSION=$(cd $SRC_DIR && python setup.py --version) |
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.
Thanks for raising the version point on AppVeyor, @pkgw , was not aware of that issue. For whatever reason, this seemed to not affect Linux and macOS, but in retrospect it probably should.
It seems that before python setup.py --version
was not being run in the source directory, but instead the path to setup.py
was being provided. From past experience, have found this to be a bad idea. So have updated this line so that we switch to the source directory. As can be seen by the referenced build, the problem goes away with this change.
Have submitted some additional fixes based off this work upstream in PR ( ContinuumIO/anaconda-recipes#72 ). |
Time to merge one of these bad boys and finally get this released? |
This includes a ton of patches and other changes from upstream and various other modifications to make them compatible at conda-forge.
Are there any more concerns that you think need to be addressed in this PR, @pkgw and/or others? Note that upstream is making some rather large changes to how they build |
The build logs look OK to me, so I guess I'd say go for it. I'd be happier if there was a way to test more thoroughly since this package is so low in the dependency stack ... is there? |
LGTM. Agree with @pkgw that a better test method would be good since if this package is broken so is conda. There is a |
Running internal tests is, obviously, good, but I don't think you can become really confident until you test out installation of the package in a full Conda environment. You could imagine adding some commands to the test suite that exercise Linux distributions have been playing this game a long time and they all have "testing" channels where new packages are deployed and, hopefully, given some real-world testing before being promoted to be distributed to the full user base. Would be nice to work toward having a similar setup for conda-forge. |
These are all good ideas. Some of them have come up in some form before. For example, have some additional package install step after the build, but before upload. This would be done for things like This all said, many of these are rather nebulous and involve changes that extend beyond this update PR. I'm in favor of discussing and pursuing them as they become better formed, but don't think this PR is the proper context for doing so. Please feel free to follow-up on those issue and share other thoughts/suggestions or raise new ones if needed. xref: conda-forge/conda-smithy#253 |
Agreed. @jakirkham I think it's time to merge this. |
Thanks @pkgw. Would someone like to do the honors? |
Sure, I'll do the easy part 😀 |
Thanks @mwcraig. |
Closes #2
Closes #7
I suspect this will fix issue ( conda-forge/conda-smithy#351 ).
Pulled these changes from anaconda-recipes mainly with some other tweaks.
cc @mwcraig @MSeifert04 @conda-forge/core