Skip to content

Commit

Permalink
feat(compile): install poetry export plugin explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
felix11h committed Nov 13, 2023
1 parent 0bbaf48 commit f7ab0cb
Show file tree
Hide file tree
Showing 13 changed files with 28 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bin/compile
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ if [ "${POETRY_VERSION:0:3}" = "1.2" ] ; then
poetry config virtualenvs.create false | indent
fi

# Plugin is needs to be installed explicitly in future versions of Poetry
log "Install poetry-plugin-export"
poetry self add poetry-plugin-export | indent

REQUIREMENTS_FILE="requirements.txt"

log "Export $REQUIREMENTS_FILE from Poetry"
Expand Down
2 changes: 2 additions & 0 deletions test/fixtures/compile-exact_version_specifier.stdout.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
-----> Install Poetry
>>> mocked curl call <<<
-----> Add Poetry to the PATH
-----> Install poetry-plugin-export
>>> mocked poetry call <<<
-----> Export requirements.txt from Poetry
>>> mocked poetry call <<<
-----> Export Python version from Poetry to Heroku runtime.txt file
Expand Down
2 changes: 2 additions & 0 deletions test/fixtures/compile-export_dev.stdout.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
-----> Install Poetry
>>> mocked curl call <<<
-----> Add Poetry to the PATH
-----> Install poetry-plugin-export
>>> mocked poetry call <<<
-----> Export requirements.txt from Poetry
-----> Enable exporting dev requirements to requirements.txt
>>> mocked poetry call <<<
Expand Down
2 changes: 2 additions & 0 deletions test/fixtures/compile-export_params-0.stdout.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
-----> Install Poetry
>>> mocked curl call <<<
-----> Add Poetry to the PATH
-----> Install poetry-plugin-export
>>> mocked poetry call <<<
-----> Export requirements.txt from Poetry
-----> Using POETRY_EXPORT_PARAMS to set export params ( --with test ) for requirements.txt
>>> mocked poetry call <<<
Expand Down
2 changes: 2 additions & 0 deletions test/fixtures/compile-export_params-1.stdout.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
-----> Install Poetry
>>> mocked curl call <<<
-----> Add Poetry to the PATH
-----> Install poetry-plugin-export
>>> mocked poetry call <<<
-----> Export requirements.txt from Poetry
-----> Using POETRY_EXPORT_PARAMS to set export params ( --with test ) for requirements.txt
-----> Enable exporting dev requirements to requirements.txt
Expand Down
2 changes: 2 additions & 0 deletions test/fixtures/compile-force_poetry_version.stdout.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
-----> Force usage of active Python and disable creation of virtualenvs
>>> mocked poetry call <<<
>>> mocked poetry call <<<
-----> Install poetry-plugin-export
>>> mocked poetry call <<<
-----> Export requirements.txt from Poetry
>>> mocked poetry call <<<
-----> Export Python version from Poetry to Heroku runtime.txt file
Expand Down
2 changes: 2 additions & 0 deletions test/fixtures/compile-force_python_version.stdout.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
-----> Install Poetry
>>> mocked curl call <<<
-----> Add Poetry to the PATH
-----> Install poetry-plugin-export
>>> mocked poetry call <<<
-----> Export requirements.txt from Poetry
>>> mocked poetry call <<<
-----> Export Python version from Poetry to Heroku runtime.txt file
Expand Down
2 changes: 2 additions & 0 deletions test/fixtures/compile-invalid_python_version.stdout.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
-----> Install Poetry
>>> mocked curl call <<<
-----> Add Poetry to the PATH
-----> Install poetry-plugin-export
>>> mocked poetry call <<<
-----> Export requirements.txt from Poetry
>>> mocked poetry call <<<
-----> Export Python version from Poetry to Heroku runtime.txt file
Expand Down
2 changes: 2 additions & 0 deletions test/fixtures/compile-no_vars_success.stdout.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
-----> Install Poetry
>>> mocked curl call <<<
-----> Add Poetry to the PATH
-----> Install poetry-plugin-export
>>> mocked poetry call <<<
-----> Export requirements.txt from Poetry
>>> mocked poetry call <<<
-----> Export Python version from Poetry to Heroku runtime.txt file
Expand Down
2 changes: 2 additions & 0 deletions test/fixtures/compile-poetry_version_comment.stdout.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
-----> Install Poetry
>>> mocked curl call <<<
-----> Add Poetry to the PATH
-----> Install poetry-plugin-export
>>> mocked poetry call <<<
-----> Export requirements.txt from Poetry
>>> mocked poetry call <<<
-----> Export Python version from Poetry to Heroku runtime.txt file
Expand Down
2 changes: 2 additions & 0 deletions test/fixtures/compile-skip_runtime_error.stdout.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
-----> Install Poetry
>>> mocked curl call <<<
-----> Add Poetry to the PATH
-----> Install poetry-plugin-export
>>> mocked poetry call <<<
-----> Export requirements.txt from Poetry
>>> mocked poetry call <<<
-----> Export Python version from Poetry to Heroku runtime.txt file
2 changes: 2 additions & 0 deletions test/fixtures/compile-skip_runtime_success.stdout.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
-----> Install Poetry
>>> mocked curl call <<<
-----> Add Poetry to the PATH
-----> Install poetry-plugin-export
>>> mocked poetry call <<<
-----> Export requirements.txt from Poetry
>>> mocked poetry call <<<
-----> Export Python version from Poetry to Heroku runtime.txt file
Expand Down
2 changes: 2 additions & 0 deletions test/fixtures/compile-trailing_space.stdout.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
-----> Install Poetry
>>> mocked curl call <<<
-----> Add Poetry to the PATH
-----> Install poetry-plugin-export
>>> mocked poetry call <<<
-----> Export requirements.txt from Poetry
>>> mocked poetry call <<<
-----> Export Python version from Poetry to Heroku runtime.txt file
Expand Down

0 comments on commit f7ab0cb

Please sign in to comment.