stephen_bailey
08/09/2021, 10:57 AMpoetry
actions to work in a CI/CD environment such as Github Actions? I was trying to setup some boilerplate actions that would run poetry publish
and poetry run pytest
for my tap, but there is apparently an issue with poetry deleting the setuptools
module (https://github.com/python-poetry/poetry/issues/3139).
Plenty of ways around it, but I was thinking -- if the SDK can help standardize the taps and testing, it would also be nice to have standard, poetry-based CI/CD. My question, I guess, is whether anyone has encountered this before and knows whether there's something I should change in my pyproject.toml
file or poetry.lock
?stephen_bailey
08/09/2021, 11:01 AMedgar_ramirez_mondragon
08/09/2021, 3:45 PMpoetry run tap-dbt --test --config=ENV
and another for releasing to PyPI triggered by a GitHub release, which uses an action maintained by PyPA. You're right that the cookiecutters could include an optional set of github or gitlab CI/CD workflows.stephen_bailey
08/09/2021, 3:48 PMstephen_bailey
08/14/2021, 10:48 AMpoetry.lock
file locally that can be reused successfully in the github actions container, even when using the same simple action script. If i remove the poetry.lock
file, it all works well. it sounds like they are going to add something akin to poetry install --no-remove
to handle thisstephen_bailey
08/16/2021, 8:05 PMpoetry
issue: they are releasing a fix in the next version of Poetry to prevent the "uninstallation" packages that were not managed by Poetry. My current fix for this in the action is to install the Preview version is:
- name: Install Poetry
run: |
curl -sSL <https://raw.githubusercontent.com/python-poetry/poetry/master/install-poetry.py> | python -
export PATH=$PATH:$HOME/.local/bin
poetry self update --preview