From 94127300367521f4ec798272476392ea69b75693 Mon Sep 17 00:00:00 2001 From: Joe Crawforth Date: Tue, 7 Jan 2020 10:45:29 +0000 Subject: [PATCH 1/3] commiting first attempt at resovling #445 --- lib/poetry.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/poetry.js b/lib/poetry.js index ddf85201..00c60562 100644 --- a/lib/poetry.js +++ b/lib/poetry.js @@ -16,7 +16,7 @@ function pyprojectTomlToRequirements() { const res = spawnSync( 'poetry', - ['export', '--without-hashes', '-f', 'requirements.txt'], + ['export', '--without-hashes', '-f', 'requirements.txt', '>', 'requirements.txt'], { cwd: this.servicePath } From bc5933626e25cbf7aa4ed59b02a8fa9fd44b5e78 Mon Sep 17 00:00:00 2001 From: Joe Crawforth <38247715+JoeyC1990@users.noreply.github.com> Date: Tue, 7 Jan 2020 17:16:24 +0000 Subject: [PATCH 2/3] Changing to use the output option --- lib/poetry.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/poetry.js b/lib/poetry.js index 00c60562..2fa21440 100644 --- a/lib/poetry.js +++ b/lib/poetry.js @@ -16,7 +16,7 @@ function pyprojectTomlToRequirements() { const res = spawnSync( 'poetry', - ['export', '--without-hashes', '-f', 'requirements.txt', '>', 'requirements.txt'], + ['export', '--without-hashes', '-f', 'requirements.txt', '-o', 'requirements.txt'], { cwd: this.servicePath } From e9ebf6fac60078223966af853c98cd55d9a12710 Mon Sep 17 00:00:00 2001 From: Joe Crawforth Date: Wed, 29 Jan 2020 09:32:18 +0000 Subject: [PATCH 3/3] updating readme --- README.md | 2 +- lib/poetry.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 95c18d56..e9f30b6c 100644 --- a/README.md +++ b/README.md @@ -102,7 +102,7 @@ and requires that poetry is installed with the --preview flag. TL;DR Install poetry with the `--preview` flag. If you include a `pyproject.toml` and have `poetry` installed instead of a `requirements.txt` this will use -`poetry export --without-hashes -f requirements.txt` to generate them. It is fully compatible with all options such as `zip` and +`poetry export --without-hashes -f requirements.txt -o requirements.txt` to generate them. It is fully compatible with all options such as `zip` and `dockerizePip`. If you don't want this plugin to generate it for you, set the following option: ```yaml custom: diff --git a/lib/poetry.js b/lib/poetry.js index 00c60562..2fa21440 100644 --- a/lib/poetry.js +++ b/lib/poetry.js @@ -16,7 +16,7 @@ function pyprojectTomlToRequirements() { const res = spawnSync( 'poetry', - ['export', '--without-hashes', '-f', 'requirements.txt', '>', 'requirements.txt'], + ['export', '--without-hashes', '-f', 'requirements.txt', '-o', 'requirements.txt'], { cwd: this.servicePath }