diff --git a/poetry.lock b/poetry.lock index 742e90c4..644b1230 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1369,7 +1369,7 @@ testing = ["pytest (>=4.6)", "pytest-checkdocs (>=1.2.3)", "pytest-flake8", "pyt [metadata] lock-version = "1.1" python-versions = "^3.6.1" -content-hash = "54b25cc8f98eb0ee1c90f1ef3173d158b885a3e8d9055094ecef7f84e6629136" +content-hash = "872d04eb655eef4313348b96e496a32bea34ea30b5162473d1bbb2f8aac34e9a" [metadata.files] alabaster = [ diff --git a/pyproject.toml b/pyproject.toml index d822ffe3..1a1cc182 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -21,7 +21,7 @@ Changelog = "https://github.com/cjolowicz/nox-poetry/releases" [tool.poetry.dependencies] python = "^3.6.1" -nox = "^2020.5.24" +nox = ">=2020.8.22" tomlkit = "^0.7.0" [tool.poetry.dev-dependencies] diff --git a/src/nox_poetry/poetry.py b/src/nox_poetry/poetry.py index 7a9d2529..7787f151 100644 --- a/src/nox_poetry/poetry.py +++ b/src/nox_poetry/poetry.py @@ -67,7 +67,7 @@ def export(self, path: Path) -> None: Args: path: The destination path. """ - self.session.run( + self.session.run_always( "poetry", "export", "--format=requirements.txt", @@ -102,7 +102,7 @@ def build(self, *, format: str) -> str: if not isinstance(format, DistributionFormat): format = DistributionFormat(format) - output = self.session.run( + output = self.session.run_always( "poetry", "build", f"--format={format}", diff --git a/src/nox_poetry/sessions.py b/src/nox_poetry/sessions.py index d137bf2a..fc3603e5 100644 --- a/src/nox_poetry/sessions.py +++ b/src/nox_poetry/sessions.py @@ -102,7 +102,7 @@ def rewrite(arg: str, extras: Optional[str]) -> str: args = tuple(rewrite(arg, extras) for arg, extras in args_extras) - self.session.run("pip", "uninstall", "--yes", package, silent=True) + self.session.run_always("pip", "uninstall", "--yes", package, silent=True) requirements = self.export_requirements() Session_install(self.session, f"--constraint={requirements}", *args, **kwargs) @@ -133,7 +133,7 @@ def installroot( package = self.build_package(distribution_format=distribution_format) requirements = self.export_requirements() - self.session.run("pip", "uninstall", "--yes", package, silent=True) + self.session.run_always("pip", "uninstall", "--yes", package, silent=True) suffix = ",".join(extras) if suffix.strip(): diff --git a/tests/unit/conftest.py b/tests/unit/conftest.py index 187fcd95..b6cf4f54 100644 --- a/tests/unit/conftest.py +++ b/tests/unit/conftest.py @@ -15,7 +15,7 @@ def __init__(self, path: Path) -> None: """Initialize.""" self.path = path - def run(self, *args: str, **kargs: Any) -> str: + def run_always(self, *args: str, **kargs: Any) -> str: """Run.""" path = Path("dist") / "example.whl" path.touch()