summaryrefslogtreecommitdiff
path: root/tox.ini
Commit message (Collapse)AuthorAgeFilesLines
* tox.ini/.gitlab-ci.yml: Add test environment for Python 3.9Chandan Singh2020-11-041-19/+19
|
* setup.cfg: Remove pytest and py from the list of non-typechecked modulesbschubert/typingBenjamin Schubert2020-08-301-0/+2
| | | | pytest now provides type annotations
* runcli.py: Configurable index/storage artifact typesJosh Smith2020-08-261-0/+2
| | | | | This enables for seperate index/storage artifact servers to be configured by environment variables passed through tox.
* tox.ini: Replace py38 with py38-nocover in default envlistJürg Billeter2020-08-121-1/+1
| | | | | Coverage is still broken with Python 3.8 (#1173). Don't enable it by default.
* Update bst-plugins-experimental to 1.93.4bschubert/update-pluginsBenjamin Schubert2020-07-141-3/+3
| | | | This removes the 'ostree' extra and some build dependencies
* Completely abolish job pickling.tristan/nuke-pickle-jobberTristan van Berkom2020-06-151-1/+0
|
* Drop Platform subclasses and BST_FORCE_BACKENDjuerg/sandbox-drop-bwrapJürg Billeter2020-06-031-1/+0
| | | | | With the use of buildbox-run on all platforms, there is no longer any platform-specific code in the Platform subclasses.
* Drop sandbox selection and BST_FORCE_SANDBOXJürg Billeter2020-06-031-1/+0
| | | | | | | buildbox-run is the only local sandbox and there are no plans to add other sandboxing backends in the future. New platforms can be supported by new buildbox-run implementations without requiring any changes in BuildStream.
* Update all packages requirementsBenjamin Schubert2020-05-111-1/+1
| | | | Also fix linting errors coming with new version of pylint
* setup.py: Also run blackbschubert/pylint-setup-pyBenjamin Schubert2020-05-071-2/+2
|
* setup.py: Also run pylint on this fileBenjamin Schubert2020-05-071-4/+4
| | | | Also fix the various errors in the file
* tox.ini: Install the sample pip plugin package when running testsTristan Van Berkom2020-05-041-0/+3
|
* tox.ini: Update reference to updated plugins with BST_MIN_VERSOIN setTristan Van Berkom2020-04-291-1/+1
|
* tox.ini: Use new ostree plugin for generating documentation.Tristan Van Berkom2020-04-211-1/+2
| | | | | | | This was broken by Chandan's commit b4d472e9c2, when we changed the pip namespace such that element and source plugins are loaded from a different group (although he would not have noticed because the build was not failing for this).
* tox.ini: Drop Python 3.5 environmentsJürg Billeter2020-04-021-18/+18
|
* tox.ini: Update bst-plugins-experimental version to 1.93.1.1Jürg Billeter2020-02-051-1/+1
|
* Plugins: Update entrypoint group for pip originChandan Singh2020-01-171-1/+1
| | | | | | | | | | | | | | | As discussed in https://mail.gnome.org/archives/buildstream-list/2020-January/msg00001.html, separate the entry point groups for elements and sources. Previously, both used `buildstream.plugins` which meant that it wasn't possible to have an element and a source plugin with the same name, when using `pip` origin. This a breaking change for all plugins, but will only affect projects using the `pip` plugin origin. As part of this, also bump the version of bst-plugins-experimental used in our tests to avoid CI breakages.
* Remove "deb" surce plugin, it has beem moved to bst-plugins-experimentaljjardon/move_deb_sourceJavier Jardón2020-01-171-6/+1
|
* tox.ini: Bump version of bst-plugins-experimental to 0.14.0Benjamin Schubert2020-01-161-2/+2
|
* tox.ini: Add a external plugins environment test and run it in CIBenjamin Schubert2020-01-131-2/+14
| | | | | | | | | | | This runs two versions of the plugins: - The latest stable is not allowed failures and is run on every platform - The master version is allowed failure, and only runs on a single architecture This also adds a new entrypoint to register source tests to run against BuildStream.
* tox.ini: Move coverage handling in commands_post.Benjamin Schubert2020-01-131-2/+3
| | | | | This is not part of the test running itself, but more handling afterwards
* tox.ini: Remove external plugins testsBenjamin Schubert2020-01-131-5/+3
| | | | | These tests don't do anything, as they have no plugins registered at all.
* Tests: Remove bst-plugins-experimental dependencyThomas Coldrick2020-01-131-1/+0
| | | | This stops the tests from being interlinked for BuildStream itself.
* tox.ini: Remove duplicated move of the coverage fileBenjamin Schubert2020-01-131-1/+0
|
* tox.ini: Add python3.8 to default environment listChandan Singh2019-12-241-17/+17
|
* testing/runcli.py: Add BST_CAS_STAGING_ROOT environment variableJürg Billeter2019-12-171-0/+1
| | | | | This is required for testing with userchroot to create staging directories in a system-specific prefix.
* tox.ini: Add ability to run tests in a randomized orderBenjamin Schubert2019-12-101-0/+4
| | | | | | | | | | Also register them to run nightly. Running tests in a randomized order is a good way of checking whether our tests depend on each others or not. Since we order them globally, tests will take longer to run, but that will give us higher confidence that they are correct.
* Start linting doc/source/conf.pyChandan Singh2019-11-141-3/+3
| | | | | | | | | | | Add `doc/source/conf.py` to the filelist for Black and Pylint. Previously this file was not covered by any of the linters, so this patch includes one-off sweeping changes for the formatting. To make pylint happy, we had to disable a warning about defining a variable called `copyright` since that's a built-in. It's unlikely that we will ever need the built-in `copyright()` in this module, so it seems safe to disable it.
* Remove pycodestyleChandan Singh2019-11-141-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | All the formatting-related warnings from `pycodestyle` are covered by Black, and almost all of the remaining ones are covered by `pylint`. Based on that, remove `pycodestyle` so that we don't have to maintain another set of configuration. More details on warnings/errors covered by `pycodestyle` below. --- Here's the big list of pycodestyle error/warning codes: https://pycodestyle.readthedocs.io/en/latest/intro.html#error-codes. They are broken down into following categories: 1. Indentation 2. Whitespace 3. Blank line 4. Import 5. Line Length 6. Runtime 7. Deprecation warning 8. Statement Out of the above, 1-5 are purely formatting related so we don't needd to care about them. 6 is runtime issues like syntax error that are hard to miss (even mypy will complain about these). 7 is about deprecation warnings. Half of them don't apply to us since we only support Python 3.5+ and the other half is covered by `pylint`. That leaves us with the "E7*" codes, that pycodestyle groups under "Statement" heading. After verifying each of them, the only ones that is really not covered by either Black or Pylint is the following: * E731 do not assign a lambda expression, use a def This sole check does not seem worth keeping another tool.
* Add configuration to run BlackChandan Singh2019-11-141-0/+20
| | | | | | | | | | Introduce two new tox environments - `format` and `format-check`. The `format` environment will reformat the code using `black` whereas the `format-check` envrionment will simply print the diff without modifying any files. Configure Black to use the same line lengths that we use currently, i.e. 119.
* tox.ini: Fix pylint configurationChandan Singh2019-11-131-1/+1
| | | | | | | Running it like `src/buildstream` apparently doesn't report the warnings correctly, as pylint does not like file paths. Fixes #1206.
* Add tests that the basic functionality of buildstream works in win32Jonathan Maw2019-10-311-1/+19
| | | | i.e. `bst help` and `bst init`
* tox.ini: pass through BST_FORCE_START_METHODAngelos Evripiotis2019-10-181-0/+1
| | | | Otherwise we won't actually be testing the spawn code path.
* .gitlab-ci.yml: Update bst-plugins-experimental versionbschubert/bump-bst-experimental-versionBenjamin Schubert2019-10-181-1/+1
| | | | Update to the plugins to work with the new YAML updates.
* tox.ini: pin mypy 0.730traveltissues/1172Darius Makovsky2019-10-171-1/+1
|
* setup.cfg: Fix xdg env vars to not affect the hostbschubert/fix-xdg-temppathsBenjamin Schubert2019-10-081-4/+4
| | | | | | | | | | | | | | | | A fix was made in https://gitlab.com/BuildStream/buildstream/merge_requests/1244 in order to set xdg_* env variables inside of the test's directory to avoid importing data from the host. There was however still two problems: - When a variable was not set, it was set with a relative path, which would create a configuration for BuildStream that is invalid. - When a variable was set and running with pytest directly, we would still use the variable's value, which would be the host one. This ensure this can never happen, by not relying on the same variable's name and always overriding them.
* tox.ini: Add bst-plugins-experimental to docs depsctolentino82019-10-071-0/+1
|
* Use distutils plugin from bst-plugins-experimentalJavier Jardón2019-09-121-1/+1
|
* Add initial mypy configuration and typesChandan Singh2019-09-021-0/+10
| | | | | | | | | | As a first step, add type hints to variables whose type `mypy` cannot infer automatically. This is the minimal set of type hints that allow running `mypy` without any arguments, and having it not fail. We currently ignore C extensions that mypy can't process directly. Later, we can look into generating stubs for such modules (potentially automatically).
* Set HOME environment variable for testsJürg Billeter2019-08-301-0/+1
| | | | This fixes host contamination for tools that use HOME, e.g., bzr.
* Move qmake plugin to bst-plugins-experimentalcoldtom/move-qmakeThomas Coldrick2019-08-141-1/+1
|
* Move modulebuild plugin to bst-plugins-experimentalThomas Coldrick2019-08-141-1/+1
| | | | Continuing moving plugins over to bst-plugins-experimental.
* Move makemaker plugin to bst-plugins-experimentalThomas Coldrick2019-08-121-1/+1
| | | | Continuing moving plugins to bst-plugins-experimental.
* Move make plugin to bst-plugins-experimentalcoldtom/move-makeThomas Coldrick2019-08-091-1/+1
|
* Move meson element to bst-plugins-experimentalThomas Coldrick2019-08-081-1/+1
|
* Move cmake plugin to bst-plugins-experimentalcoldtom/move-cmakeThomas Coldrick2019-08-081-0/+1
| | | | | | | | | | | | It was agreed on the mailing list to move all plugins to a single repository, before moving them into domain-specific repositories. As a result it seems reasonable to move everything to the bst-plugins-experimental repo as this stepping stone, rather than creating a whole new repo. This commit starts the process of moving things over by moving only the cmake plugin to bst-plugins-experimental, and altering the tests to reflect the new location.
* tox.ini: Allow linter to run on target filesAlexandru Fazakas2019-07-301-2/+2
| | | | | Currently the linter can only lint everything we want. With this change, it should be able to only lint onre (or more) files.
* Refactor of Platform and SandboxWilliam Salmon2019-07-121-0/+1
|
* Introduce Cython to the project and documentBenjamin Schubert2019-05-291-1/+13
| | | | | | | | | | | | | Cython requires a plugin to allow coverage of cython files, which was updated in coveragerc. It also means we need to build the dependencies and install cython for coverage. Cython requires access to both source and compiled files when running coverage. We therefore need to install project in develop mode. Updated documentation to explain how to run tests without tox but with coverage
* Introduce pyproject.tomlBenjamin Schubert2019-05-291-0/+6
| | | | | | | | | Using pyproject.toml, defined in PEP518, allows us to have an isolated build environment, ensuring that Cython can be installed before calling setup.py in tox. This allows us to use cython helpers in the setup.py script. This is a prerequisite for introducing Cython in the codebase