From 6d51d166a7c7e54275c5f69bf087decd0ecb82ac Mon Sep 17 00:00:00 2001 From: Ethan Paul <24588726+enpaul@users.noreply.github.com> Date: Mon, 19 Apr 2021 23:38:36 -0400 Subject: [PATCH 1/5] Bump feature version --- pyproject.toml | 2 +- tox_poetry_installer/__about__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index fed7fb1..6d36698 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [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" diff --git a/tox_poetry_installer/__about__.py b/tox_poetry_installer/__about__.py index 6abaf28..093f0d5 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" +__version__ = "0.7.0" __url__ = "https://github.com/enpaul/tox-poetry-installer/" __license__ = "MIT" __authors__ = ["Ethan Paul <24588726+enpaul@users.noreply.github.com>"] From 1a5ba01c2f59dc0bb3b56ca33d4a85b7d1b16ba4 Mon Sep 17 00:00:00 2001 From: Ethan Paul <24588726+enpaul@users.noreply.github.com> Date: Mon, 19 Apr 2021 23:39:32 -0400 Subject: [PATCH 2/5] Standardize package description --- pyproject.toml | 2 +- tox_poetry_installer/__about__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 6d36698..378c7a3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ name = "tox-poetry-installer" 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_poetry_installer/__about__.py b/tox_poetry_installer/__about__.py index 093f0d5..bdc1b5d 100644 --- a/tox_poetry_installer/__about__.py +++ b/tox_poetry_installer/__about__.py @@ -1,6 +1,6 @@ # pylint: disable=missing-docstring __title__ = "tox-poetry-installer" -__summary__ = "Tox plugin to install Tox environment dependencies using the Poetry backend and lockfile" +__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" From e99cf09caf2f6edaaf6c5f1942389bed2981da81 Mon Sep 17 00:00:00 2001 From: Ethan Paul <24588726+enpaul@users.noreply.github.com> Date: Mon, 19 Apr 2021 23:43:38 -0400 Subject: [PATCH 3/5] Update changelog with v0.7.0 --- CHANGELOG.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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: From 6d97919138ceb967aaf2205ad75c803dcd34122c Mon Sep 17 00:00:00 2001 From: Ethan Paul <24588726+enpaul@users.noreply.github.com> Date: Mon, 19 Apr 2021 23:47:20 -0400 Subject: [PATCH 4/5] Update toxfile to use new config options Remove unnecessarily duplicated config options --- tox.ini | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 From 7152e4e94f3e3f6dd872b2f3c7371e994216efe1 Mon Sep 17 00:00:00 2001 From: Ethan Paul <24588726+enpaul@users.noreply.github.com> Date: Mon, 19 Apr 2021 23:48:38 -0400 Subject: [PATCH 5/5] Update CI workflow to use parallelized install Remove deprecated runtime option from CI --- .github/workflows/ci.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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