diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index de9ad19..904b59e 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -40,7 +40,7 @@ jobs: - name: Setup:env run: .github/scripts/setup-env.sh - name: Run:${{ matrix.python.toxenv }} - run: $HOME/ci/bin/tox -e ${{ matrix.python.toxenv }} --require-poetry + run: $HOME/ci/bin/tox -e ${{ matrix.python.toxenv }} --parallelize-locked-install=10 Check: runs-on: ubuntu-latest steps: @@ -63,8 +63,8 @@ jobs: - name: Setup:env run: .github/scripts/setup-env.sh - name: Run:static - run: $HOME/ci/bin/tox -e static --require-poetry + run: $HOME/ci/bin/tox -e static --parallelize-locked-install=10 - name: Run:static-tests - run: $HOME/ci/bin/tox -e static-tests --require-poetry + run: $HOME/ci/bin/tox -e static-tests --parallelize-locked-install=10 - name: Run:security - run: $HOME/ci/bin/tox -e security --require-poetry + run: $HOME/ci/bin/tox -e security --parallelize-locked-install=10 diff --git a/CHANGELOG.md b/CHANGELOG.md index cc95825..f326e72 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,21 @@ See also: [Github Release Page](https://github.com/enpaul/tox-poetry-installer/releases). +## Version 0.7.0 + +View this release on: +[Github](https://github.com/enpaul/tox-poetry-installer/releases/tag/0.7.0), +[PyPI](https://pypi.org/project/tox-poetry-installer/0.7.0/) + +- Add runtime option `--parallelize-locked-install` to support installing locked + dependencies in parallel to speed up test environment creation +- Add config option `require_poetry` to allow per-environment control over whether the + plugin should force an error +- Add unit tests for custom dependency processing and installation +- Update internal logging system to reduce code duplication +- Update documentation to improve readability +- Deprecate runtime option `--require-poetry` + ## Version 0.6.4 View this release on: diff --git a/pyproject.toml b/pyproject.toml index fed7fb1..378c7a3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,9 +1,9 @@ [tool.poetry] name = "tox-poetry-installer" -version = "0.6.4" +version = "0.7.0" license = "MIT" authors = ["Ethan Paul <24588726+enpaul@users.noreply.github.com>"] -description = "Tox plugin to install Tox environment dependencies using the Poetry backend and lockfile" +description = "A plugin for Tox that lets you install test environment dependencies from the Poetry lockfile" repository = "https://github.com/enpaul/tox-poetry-installer/" packages = [ {include = "tox_poetry_installer"}, diff --git a/tox.ini b/tox.ini index 822cc05..b0ccd7d 100644 --- a/tox.ini +++ b/tox.ini @@ -6,6 +6,7 @@ skip_missing_interpreters = true [testenv] description = Run the tests require_locked_deps = true +require_poetry = true extras = poetry locked_deps = @@ -20,7 +21,6 @@ description = Static formatting and quality enforcement basepython = python3.8 platform = linux ignore_errors = true -require_locked_deps = true locked_deps = black blacken-docs @@ -41,7 +41,6 @@ description = Static formatting and quality enforcement for the tests basepython = python3.8 platform = linux ignore_errors = true -require_locked_deps = true locked_deps = pylint pytest @@ -55,7 +54,6 @@ description = Security checks basepython = python3.8 platform = linux ignore_errors = true -require_locked_deps = true locked_deps = bandit safety diff --git a/tox_poetry_installer/__about__.py b/tox_poetry_installer/__about__.py index 6abaf28..bdc1b5d 100644 --- a/tox_poetry_installer/__about__.py +++ b/tox_poetry_installer/__about__.py @@ -1,7 +1,7 @@ # pylint: disable=missing-docstring __title__ = "tox-poetry-installer" -__summary__ = "Tox plugin to install Tox environment dependencies using the Poetry backend and lockfile" -__version__ = "0.6.4" +__summary__ = "A plugin for Tox that lets you install test environment dependencies from the Poetry lockfile" +__version__ = "0.7.0" __url__ = "https://github.com/enpaul/tox-poetry-installer/" __license__ = "MIT" __authors__ = ["Ethan Paul <24588726+enpaul@users.noreply.github.com>"]