-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RecipeReader::get_value()
can now sub vars in strings (#126)
* `RecipeReader::get_value()` can no sub vars in strings - Adds support for the access operator (on strings) and the `upper` JINJA function - Fixes several issues with JINJA variable subsitutions - General code clean-up - Updates tests with improvements * Adds more unit tests for get_value() * Adds some (arguably) missing unit test cases * Fixes bug in string index check * Adds new edge-case unit tests for get_value() * Update conda_recipe_manager/parser/recipe_reader.py Co-authored-by: Bianca Henderson <beeankha@gmail.com> * Update conda_recipe_manager/parser/recipe_reader.py Co-authored-by: Bianca Henderson <beeankha@gmail.com> --------- Co-authored-by: Bianca Henderson <beeankha@gmail.com>
- Loading branch information
1 parent
ee93c4a
commit c7085dd
Showing
6 changed files
with
264 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
{% set name = "TYPES-toml" %} | ||
{% set version = "0.10.8.6" %} | ||
|
||
package: | ||
name: {{ name|lower }} | ||
version: {{ version }} | ||
|
||
source: | ||
url: https://pypi.io/packages/source/{{ name[0]|lower }}/{{ name|upper }}/{{ name[42] | lower}}-{{ version[7] }}.tar.gz | ||
sha256: 6d3ac79e36c9ee593c5d4fb33a50cca0e3adceb6ef5cff8b8e5aef67b4c4aaf2 | ||
|
||
build: | ||
number: 0 | ||
skip: true # [py<37] | ||
script: {{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation | ||
|
||
requirements: | ||
host: | ||
- setuptools | ||
- wheel | ||
- pip | ||
- python | ||
run: | ||
- python | ||
|
||
test: | ||
imports: | ||
- types | ||
requires: | ||
- pip | ||
commands: | ||
- pip check | ||
- test -f $SP_DIR/toml-stubs/__init__.pyi # [unix] | ||
|
||
about: | ||
home: https://github.com/python/typeshed | ||
summary: Contains edge cases for `RecipeReader::get_value(sub_vars=True)` | ||
description: Contains edge cases for `RecipeReader::get_value(sub_vars=True)` | ||
license: Apache-2.0 AND MIT | ||
license_file: LICENSE | ||
license_family: OTHER | ||
dev_url: https://github.com/python/typeshed | ||
doc_url: https://pypi.org/project/types-toml/ | ||
|
||
extra: | ||
recipe-maintainers: | ||
- fhoehle | ||
- conda-forge/mypy |
Oops, something went wrong.