Skip to content

Instantly share code, notes, and snippets.

@abn
Last active October 8, 2020 16:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abn/ccf3eabe72d8c54a5373f6052cfab72e to your computer and use it in GitHub Desktop.
Save abn/ccf3eabe72d8c54a5373f6052cfab72e to your computer and use it in GitHub Desktop.
Python Poetry: Run Pull Request Container
PULL_ID=3147
PYTHON_VERSION=${PYTHON_VERSION:-3.8}
podman run --rm -i --entrypoint bash python:${PYTHON_VERSION} <<EOF
set -e
python -m pip install -q git+https://github.com/python-poetry/poetry.git@refs/pull/${PULL_ID}/head
python -m poetry new foobar
pushd foobar
sed -i /pytest/d pyproject.toml
python -m poetry add pycowsay
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment