-
Notifications
You must be signed in to change notification settings - Fork 61
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
Fixes for ruamel_yaml #57
Changes from 5 commits
d0568e5
536f180
f43c62d
8ab0ab2
cd6e0a2
5cb5612
b643e0a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# coding: utf-8 | ||
from __future__ import print_function, absolute_import | ||
|
||
__version__ = "0.11.7" | ||
__version__ = "$VERSION" | ||
__name__ = "ruamel_yaml" | ||
__author__ = "Anthon van der Neut" | ||
__author_email__ ="[email protected]" | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,17 +2,19 @@ package: | |
name: ruamel_yaml | ||
version: 0.11.14 | ||
|
||
source: | ||
fn: ruamel_yaml-0.11.14.tar.gz | ||
url: https://bitbucket.org/ruamel/yaml/get/0.11.14.tar.gz | ||
sha256: b78d394e192b6d0911bd59f794ceea88143fac4e373b76ed7e48143a2a29b33c | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We prefer tarballs at conda-forge and this ordering. So figured we could match this up a bit more to our expectations if there is no strong preference. |
||
|
||
build: | ||
number: 0 | ||
no_link: .*\.(pyd|dll) [win] | ||
|
||
source: | ||
hg_url: https://bitbucket.org/ruamel/yaml | ||
hg_tag: 0.11.14 | ||
|
||
requirements: | ||
build: | ||
- python | ||
- setuptools | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As we run There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should note that as the |
||
- cython | ||
- yaml | ||
run: | ||
|
@@ -29,4 +31,6 @@ test: | |
about: | ||
home: https://bitbucket.org/ruamel/yaml | ||
license: MIT | ||
license_family: MIT | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Adds the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good to know. Any chance we can get this or any of these other fields documented? Right now the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Note: Dropped |
||
license_file: LICENSE | ||
summary: A patched copy of ruamel.yaml. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Figured there should be some explanation of what this is as it has caused confusion before. xref: conda-forge/ruamel_yaml-feedstock#1 |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,4 +25,4 @@ touch $SRC_DIR/ruamel_yaml/ext/__init__.py | |
|
||
cp $RECIPE_DIR/setup.py $SRC_DIR/ | ||
cp $RECIPE_DIR/__init__.py $SRC_DIR/ruamel_yaml/ | ||
sed -i -e 's/__version__.*/__version__ = "$VERSION"/' $SRC_DIR/ruamel_yaml/__init__.py | ||
sed -i -e "s/__version__.*/__version__ = "'"'"${VERSION}"'"'"/" $SRC_DIR/ruamel_yaml/__init__.py | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As single quotes were in use already, we are unable to inject the version from the environment variable |
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.
Not strictly required. However, the
sed
expression would already replace this line with this change. Plus this makes it more clear to the end user what is happening with this version info. Namely it is being patched out with the contents of the$VERSION
environment variable.