<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/buildstream.git/tests/frontend/version.py, branch bschubert/python38</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>Reformat code using Black</title>
<updated>2019-11-14T21:21:06+00:00</updated>
<author>
<name>Chandan Singh</name>
<email>csingh43@bloomberg.net</email>
</author>
<published>2019-11-11T17:07:09+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=122177153b14664a0e4fed85aa4f22b87cfabf56'/>
<id>122177153b14664a0e4fed85aa4f22b87cfabf56</id>
<content type='text'>
As discussed over the mailing list, reformat code using Black. This is a
one-off change to reformat all our codebase. Moving forward, we
shouldn't expect such blanket reformats. Rather, we expect each change
to already comply with the Black formatting style.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
As discussed over the mailing list, reformat code using Black. This is a
one-off change to reformat all our codebase. Moving forward, we
shouldn't expect such blanket reformats. Rather, we expect each change
to already comply with the Black formatting style.
</pre>
</div>
</content>
</entry>
<entry>
<title>plugintestutils: Rename 'plugintestutils' package to 'testing'</title>
<updated>2019-04-16T13:25:40+00:00</updated>
<author>
<name>Phil Dawson</name>
<email>phil.dawson@codethink.co.uk</email>
</author>
<published>2019-04-15T10:02:33+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=97bbedbef15fc9edea5b04f66a30ec788da7f130'/>
<id>97bbedbef15fc9edea5b04f66a30ec788da7f130</id>
<content type='text'>
- Rename plugintestutils to testing.

- Don't run the tests from bst-plugins-template. This imports
  buildstream.plugintestutils so will have to be disabled to get
  through CI. This can be re nabled once bst-plugins-template has been
  patched.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- Rename plugintestutils to testing.

- Don't run the tests from bst-plugins-template. This imports
  buildstream.plugintestutils so will have to be disabled to get
  through CI. This can be re nabled once bst-plugins-template has been
  patched.
</pre>
</div>
</content>
</entry>
<entry>
<title>tests:lint: disable 'unused-import' checks on pytest fixtures</title>
<updated>2019-03-20T09:38:42+00:00</updated>
<author>
<name>Benjamin Schubert</name>
<email>ben.c.schubert@gmail.com</email>
</author>
<published>2019-03-19T18:36:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=da439e6658049bb79ca471f4eeac401e70c548f1'/>
<id>da439e6658049bb79ca471f4eeac401e70c548f1</id>
<content type='text'>
Pylint can't know that pytest's fixtures are used in a file and
therefore reports false positives. Silencing all those errors
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Pylint can't know that pytest's fixtures are used in a file and
therefore reports false positives. Silencing all those errors
</pre>
</div>
</content>
</entry>
<entry>
<title>tests:lint: silence redefined-outer-name in files using fixtures</title>
<updated>2019-03-20T09:38:42+00:00</updated>
<author>
<name>Benjamin Schubert</name>
<email>ben.c.schubert@gmail.com</email>
</author>
<published>2019-03-19T18:05:05+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=a90daa6a123d74a938a646e2fccaf4bfe6a5b950'/>
<id>a90daa6a123d74a938a646e2fccaf4bfe6a5b950</id>
<content type='text'>
Pylint doesn't play well with pytest fixtures, we therefore need to
silence this error.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Pylint doesn't play well with pytest fixtures, we therefore need to
silence this error.
</pre>
</div>
</content>
</entry>
<entry>
<title>Expose basic api for testing external plugins.</title>
<updated>2019-02-08T14:27:54+00:00</updated>
<author>
<name>Phil Dawson</name>
<email>phil.dawson@codethink.co.uk</email>
</author>
<published>2019-01-16T14:03:41+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=b4d4c4f59c12c9b500f83d8cd4381418e1124f67'/>
<id>b4d4c4f59c12c9b500f83d8cd4381418e1124f67</id>
<content type='text'>
We want external plugins to be able to make use of the core testing utils.
This commit exposes the basic utilities which are currently in use in
bst-external plugins. If necessary, more utilities could be exposed in the
future.

Moves the following files from tests/testutils/ to
buildstream/plugintestingutils/:
o runcli.py
o integration.py

As part of this, this commit makes the following changes to runcli.py
and integration.py:
o runcli.py: Fix linting errors
o runcli.py: Add user facing documentation
o Integration.py: Add user facing documentation
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We want external plugins to be able to make use of the core testing utils.
This commit exposes the basic utilities which are currently in use in
bst-external plugins. If necessary, more utilities could be exposed in the
future.

Moves the following files from tests/testutils/ to
buildstream/plugintestingutils/:
o runcli.py
o integration.py

As part of this, this commit makes the following changes to runcli.py
and integration.py:
o runcli.py: Fix linting errors
o runcli.py: Add user facing documentation
o Integration.py: Add user facing documentation
</pre>
</div>
</content>
</entry>
<entry>
<title>Use versioneer instead of setuptools_scm</title>
<updated>2018-04-26T05:17:44+00:00</updated>
<author>
<name>Tristan Van Berkom</name>
<email>tristan.vanberkom@codethink.co.uk</email>
</author>
<published>2018-04-26T04:21:31+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=4be462d3a43e2d32c1d2115737acefe632c48ccc'/>
<id>4be462d3a43e2d32c1d2115737acefe632c48ccc</id>
<content type='text'>
Using setuptools_scm had a couple of bad problems:

  o Unexpected versioning semantics, setuptools_scm would
    increment the micro version by itself in the case that
    we derive a version number from something that is not a tag,
    making the assumption that we are "leading up to" the next
    micro version.

    People mostly dont expect this.

  o When installing in developer mode, i.e. with `pip3 install --user -e .`,
    then we were always picking the generated version at install time
    and never again dynamically resolving it.

    Many of our users install this way and update through git, so it's
    important that we report more precise versions all the time.

This commit needs to make a series of changes at the same time:

  o Adds versioneer.py to the toplevel, this is used by setup.py
    for various activities.

    This is modified only to inform the linter to skip

  o Adds buildstream/_version.py, which is generated by versioneer
    and gives us the machinery to automatically derive the correct version

    This is modified only to inform the linter to skip

  o Adds a .gitattributes file which informs git to substitute
    the buildstream/_version.py file, this is just to ensure that
    the versioning output would work if ever we used `git archive`
    to release a tarball.

  o Modifies setup.py and setup.cfg for versioneer

  o Modifies utils.py and _frontend/cli.py such as to avoid importing
    the derived version when running bash completion mode, we dont
    derive the version at completion time because this can result
    in running a subprocess (when running in developer install mode)
    and is an undesirable overhead.

  o Updates tests/frontend/version.py to expect changed version output
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Using setuptools_scm had a couple of bad problems:

  o Unexpected versioning semantics, setuptools_scm would
    increment the micro version by itself in the case that
    we derive a version number from something that is not a tag,
    making the assumption that we are "leading up to" the next
    micro version.

    People mostly dont expect this.

  o When installing in developer mode, i.e. with `pip3 install --user -e .`,
    then we were always picking the generated version at install time
    and never again dynamically resolving it.

    Many of our users install this way and update through git, so it's
    important that we report more precise versions all the time.

This commit needs to make a series of changes at the same time:

  o Adds versioneer.py to the toplevel, this is used by setup.py
    for various activities.

    This is modified only to inform the linter to skip

  o Adds buildstream/_version.py, which is generated by versioneer
    and gives us the machinery to automatically derive the correct version

    This is modified only to inform the linter to skip

  o Adds a .gitattributes file which informs git to substitute
    the buildstream/_version.py file, this is just to ensure that
    the versioning output would work if ever we used `git archive`
    to release a tarball.

  o Modifies setup.py and setup.cfg for versioneer

  o Modifies utils.py and _frontend/cli.py such as to avoid importing
    the derived version when running bash completion mode, we dont
    derive the version at completion time because this can result
    in running a subprocess (when running in developer install mode)
    and is an undesirable overhead.

  o Updates tests/frontend/version.py to expect changed version output
</pre>
</div>
</content>
</entry>
<entry>
<title>tests/frontend: Updating tests to use new error checks</title>
<updated>2018-01-01T10:44:53+00:00</updated>
<author>
<name>Tristan Van Berkom</name>
<email>tristan.vanberkom@codethink.co.uk</email>
</author>
<published>2018-01-01T10:16:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=54265b7a9e6f493796bcb9c65682a73013e2a600'/>
<id>54265b7a9e6f493796bcb9c65682a73013e2a600</id>
<content type='text'>
This also fixes #177 - the problem here was solved simply
by passing the project directory to `cli.run(project=project...)`
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This also fixes #177 - the problem here was solved simply
by passing the project directory to `cli.run(project=project...)`
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove unused imports in test files</title>
<updated>2017-12-07T14:25:40+00:00</updated>
<author>
<name>Gökçen Nurlu</name>
<email>gnurlu1@bloomberg.net</email>
</author>
<published>2017-12-05T16:15:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=fe720cbdd7bbc79efce8e7dc5fd2005af973aa05'/>
<id>fe720cbdd7bbc79efce8e7dc5fd2005af973aa05</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>tests/frontend/version.py: Use the fixture to run buildstream</title>
<updated>2017-09-04T08:04:11+00:00</updated>
<author>
<name>Tristan Van Berkom</name>
<email>tristan.vanberkom@codethink.co.uk</email>
</author>
<published>2017-09-03T04:21:29+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=8a3c377508feeb1f5579898c17ee3bf8a29d4a3a'/>
<id>8a3c377508feeb1f5579898c17ee3bf8a29d4a3a</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>tests/frontend/version.py: Added first frontend test</title>
<updated>2017-09-02T00:21:48+00:00</updated>
<author>
<name>Tristan Van Berkom</name>
<email>tristan.vanberkom@codethink.co.uk</email>
</author>
<published>2017-09-01T20:48:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=7c966e09ba3b7d20698acb445e358337624e54cb'/>
<id>7c966e09ba3b7d20698acb445e358337624e54cb</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
