<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/buildstream.git/src/buildstream/_variables.pyx, branch fetch-committers</title>
<subtitle>gitlab.com: buildstream/buildstream.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/'/>
<entry>
<title>_exceptions.py: Align LoadError() parameter ordering</title>
<updated>2019-07-18T11:36:07+00:00</updated>
<author>
<name>Tom Pollard</name>
<email>tom.pollard@codethink.co.uk</email>
</author>
<published>2019-07-17T14:48:06+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=e7524c4340523d06ba3d6d95cb1e284b0f4b415e'/>
<id>e7524c4340523d06ba3d6d95cb1e284b0f4b415e</id>
<content type='text'>
All of the errors which subclass from BstError have their first
positional argument as message, LoadError should follow this
ordering for consistency.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
All of the errors which subclass from BstError have their first
positional argument as message, LoadError should follow this
ordering for consistency.
</pre>
</div>
</content>
</entry>
<entry>
<title>_variables: Fix reporting of missing variable</title>
<updated>2019-07-17T09:38:59+00:00</updated>
<author>
<name>Benjamin Schubert</name>
<email>ben.c.schubert@gmail.com</email>
</author>
<published>2019-07-17T08:48:55+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=2bd91640f4ba7e29d92633f7e573deb2073dc27d'/>
<id>2bd91640f4ba7e29d92633f7e573deb2073dc27d</id>
<content type='text'>
When the missing variable was not defined, we would get an exception
as a string doesn't contain provenance information.

- Add a test to prevent regression
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When the missing variable was not defined, we would get an exception
as a string doesn't contain provenance information.

- Add a test to prevent regression
</pre>
</div>
</content>
</entry>
<entry>
<title>_yaml: Split Node-related parts into 'node.pyx'</title>
<updated>2019-07-15T14:14:03+00:00</updated>
<author>
<name>Benjamin Schubert</name>
<email>ben.c.schubert@gmail.com</email>
</author>
<published>2019-07-10T12:59:12+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=301d40d1a42c056f7c9e8e734b6ce6251378cafb'/>
<id>301d40d1a42c056f7c9e8e734b6ce6251378cafb</id>
<content type='text'>
This makes the 'Node' API public, and available for use directly for
plugins.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This makes the 'Node' API public, and available for use directly for
plugins.
</pre>
</div>
</content>
</entry>
<entry>
<title>_yaml: Remove 'node_get_provenance' and add 'Node.get_provenance'</title>
<updated>2019-07-15T14:14:03+00:00</updated>
<author>
<name>Benjamin Schubert</name>
<email>contact@benschubert.me</email>
</author>
<published>2019-07-08T13:18:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=099e3ebf3aad424be2f3488aef9d9d961b700483'/>
<id>099e3ebf3aad424be2f3488aef9d9d961b700483</id>
<content type='text'>
This replaces the helper method by adding a 'get_provenance' on the node
directly

- Adapt all call sites
- Delay getting provenance wherever possible without major refactor
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This replaces the helper method by adding a 'get_provenance' on the node
directly

- Adapt all call sites
- Delay getting provenance wherever possible without major refactor
</pre>
</div>
</content>
</entry>
<entry>
<title>_yaml: Remove 'node_set'. Now use __setitem__</title>
<updated>2019-07-15T14:14:03+00:00</updated>
<author>
<name>Benjamin Schubert</name>
<email>contact@benschubert.me</email>
</author>
<published>2019-06-18T10:05:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=8bfe8dd6ad49445c900662f304072eb20f0ff606'/>
<id>8bfe8dd6ad49445c900662f304072eb20f0ff606</id>
<content type='text'>
- Implement __setitem__ on 'MappingNode'
- Implement __setitem__ on 'SequenceNode'
- Adapt all call sites to use the new calling way.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- Implement __setitem__ on 'MappingNode'
- Implement __setitem__ on 'SequenceNode'
- Adapt all call sites to use the new calling way.
</pre>
</div>
</content>
</entry>
<entry>
<title>_yaml: Remove 'node_keys' and add 'MappingNode.keys' to replace it</title>
<updated>2019-07-15T14:14:03+00:00</updated>
<author>
<name>Benjamin Schubert</name>
<email>contact@benschubert.me</email>
</author>
<published>2019-06-25T19:00:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=ed2dde6110a5f9087ff3596df9d86ba5468dcac8'/>
<id>ed2dde6110a5f9087ff3596df9d86ba5468dcac8</id>
<content type='text'>
This mimics the dict.keys() method but returns a list instead of a
dict_keys, for cython performance reasons
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This mimics the dict.keys() method but returns a list instead of a
dict_keys, for cython performance reasons
</pre>
</div>
</content>
</entry>
<entry>
<title>_yaml: Add 'as_bool()' and 'is_none()' to ScalarNode</title>
<updated>2019-07-15T14:14:02+00:00</updated>
<author>
<name>Benjamin Schubert</name>
<email>ben.c.schubert@gmail.com</email>
</author>
<published>2019-06-10T13:20:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=d14b809cc7b56b7be9e3e40c2e12e8f7245ba680'/>
<id>d14b809cc7b56b7be9e3e40c2e12e8f7245ba680</id>
<content type='text'>
- 'as_bool()' casts a ScalarNode into a boolean, understanding both
  'True' and 'False' as truthy-falsy values, as per node_get(type=bool)
  behavior
- 'is_none()' allwos checking whether the scalar node contains a 'None'
  value. Since 'None' cannot be used when working with booleans, we need
  to have a way of checking for 'None' when we actually need the
  information of whether the value is unset.
- Adapt all call places to use the new API
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- 'as_bool()' casts a ScalarNode into a boolean, understanding both
  'True' and 'False' as truthy-falsy values, as per node_get(type=bool)
  behavior
- 'is_none()' allwos checking whether the scalar node contains a 'None'
  value. Since 'None' cannot be used when working with booleans, we need
  to have a way of checking for 'None' when we actually need the
  information of whether the value is unset.
- Adapt all call places to use the new API
</pre>
</div>
</content>
</entry>
<entry>
<title>_yaml: Add 'as_str()' on ScalarNode and 'get_scalar()' on MappingNode</title>
<updated>2019-07-15T14:14:02+00:00</updated>
<author>
<name>Benjamin Schubert</name>
<email>contact@benschubert.me</email>
</author>
<published>2019-06-10T06:51:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=38671fb53f4522d046bed94699db8cc344ac2862'/>
<id>38671fb53f4522d046bed94699db8cc344ac2862</id>
<content type='text'>
- 'get_scalar()' allows retrieving a scalar node from a mapping.
- 'as_str()' casts a ScalarNode into a string (thus removing the node
  information).

Both together, those replace 'node_get(mapping, key, type=str)' but
also allow retrieving the 'Node' itself, which will allow in the future
lazier provenance computation.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- 'get_scalar()' allows retrieving a scalar node from a mapping.
- 'as_str()' casts a ScalarNode into a string (thus removing the node
  information).

Both together, those replace 'node_get(mapping, key, type=str)' but
also allow retrieving the 'Node' itself, which will allow in the future
lazier provenance computation.
</pre>
</div>
</content>
</entry>
<entry>
<title>_variable: Import _yaml from C.</title>
<updated>2019-05-29T18:50:18+00:00</updated>
<author>
<name>Benjamin Schubert</name>
<email>ben.c.schubert@gmail.com</email>
</author>
<published>2019-05-21T10:52:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=eadcca3eaa921341b6c29d48c841614d9da7472a'/>
<id>eadcca3eaa921341b6c29d48c841614d9da7472a</id>
<content type='text'>
This requires the addition of a definition file (.pxd), to list
symbols exported.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This requires the addition of a definition file (.pxd), to list
symbols exported.
</pre>
</div>
</content>
</entry>
<entry>
<title>_variables: Cythonize Variables.subst</title>
<updated>2019-05-29T18:47:57+00:00</updated>
<author>
<name>Benjamin Schubert</name>
<email>ben.c.schubert@gmail.com</email>
</author>
<published>2019-05-17T14:25:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=f5ee7679b0b9b469dacc25f71dc46fa788367a1b'/>
<id>f5ee7679b0b9b469dacc25f71dc46fa788367a1b</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
