Skip to content

Commit e50b23e

Browse files
authored
Merge pull request moneymeets#66 from moneymeets/feature/install-poetry-plugin-export-explicitly
feat(compile): install poetry export plugin explicitly
2 parents 0bbaf48 + f7ab0cb commit e50b23e

13 files changed

+28
-0
lines changed

bin/compile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ if [ "${POETRY_VERSION:0:3}" = "1.2" ] ; then
5858
poetry config virtualenvs.create false | indent
5959
fi
6060

61+
# Plugin is needs to be installed explicitly in future versions of Poetry
62+
log "Install poetry-plugin-export"
63+
poetry self add poetry-plugin-export | indent
64+
6165
REQUIREMENTS_FILE="requirements.txt"
6266

6367
log "Export $REQUIREMENTS_FILE from Poetry"

test/fixtures/compile-exact_version_specifier.stdout.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
-----> Install Poetry
44
>>> mocked curl call <<<
55
-----> Add Poetry to the PATH
6+
-----> Install poetry-plugin-export
7+
>>> mocked poetry call <<<
68
-----> Export requirements.txt from Poetry
79
>>> mocked poetry call <<<
810
-----> Export Python version from Poetry to Heroku runtime.txt file

test/fixtures/compile-export_dev.stdout.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
-----> Install Poetry
44
>>> mocked curl call <<<
55
-----> Add Poetry to the PATH
6+
-----> Install poetry-plugin-export
7+
>>> mocked poetry call <<<
68
-----> Export requirements.txt from Poetry
79
-----> Enable exporting dev requirements to requirements.txt
810
>>> mocked poetry call <<<

test/fixtures/compile-export_params-0.stdout.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
-----> Install Poetry
44
>>> mocked curl call <<<
55
-----> Add Poetry to the PATH
6+
-----> Install poetry-plugin-export
7+
>>> mocked poetry call <<<
68
-----> Export requirements.txt from Poetry
79
-----> Using POETRY_EXPORT_PARAMS to set export params ( --with test ) for requirements.txt
810
>>> mocked poetry call <<<

test/fixtures/compile-export_params-1.stdout.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
-----> Install Poetry
44
>>> mocked curl call <<<
55
-----> Add Poetry to the PATH
6+
-----> Install poetry-plugin-export
7+
>>> mocked poetry call <<<
68
-----> Export requirements.txt from Poetry
79
-----> Using POETRY_EXPORT_PARAMS to set export params ( --with test ) for requirements.txt
810
-----> Enable exporting dev requirements to requirements.txt

test/fixtures/compile-force_poetry_version.stdout.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
-----> Force usage of active Python and disable creation of virtualenvs
77
>>> mocked poetry call <<<
88
>>> mocked poetry call <<<
9+
-----> Install poetry-plugin-export
10+
>>> mocked poetry call <<<
911
-----> Export requirements.txt from Poetry
1012
>>> mocked poetry call <<<
1113
-----> Export Python version from Poetry to Heroku runtime.txt file

test/fixtures/compile-force_python_version.stdout.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
-----> Install Poetry
44
>>> mocked curl call <<<
55
-----> Add Poetry to the PATH
6+
-----> Install poetry-plugin-export
7+
>>> mocked poetry call <<<
68
-----> Export requirements.txt from Poetry
79
>>> mocked poetry call <<<
810
-----> Export Python version from Poetry to Heroku runtime.txt file

test/fixtures/compile-invalid_python_version.stdout.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
-----> Install Poetry
44
>>> mocked curl call <<<
55
-----> Add Poetry to the PATH
6+
-----> Install poetry-plugin-export
7+
>>> mocked poetry call <<<
68
-----> Export requirements.txt from Poetry
79
>>> mocked poetry call <<<
810
-----> Export Python version from Poetry to Heroku runtime.txt file

test/fixtures/compile-no_vars_success.stdout.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
-----> Install Poetry
44
>>> mocked curl call <<<
55
-----> Add Poetry to the PATH
6+
-----> Install poetry-plugin-export
7+
>>> mocked poetry call <<<
68
-----> Export requirements.txt from Poetry
79
>>> mocked poetry call <<<
810
-----> Export Python version from Poetry to Heroku runtime.txt file

test/fixtures/compile-poetry_version_comment.stdout.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
-----> Install Poetry
44
>>> mocked curl call <<<
55
-----> Add Poetry to the PATH
6+
-----> Install poetry-plugin-export
7+
>>> mocked poetry call <<<
68
-----> Export requirements.txt from Poetry
79
>>> mocked poetry call <<<
810
-----> Export Python version from Poetry to Heroku runtime.txt file

0 commit comments

Comments
 (0)