Skip to content

Commit

Permalink
Temporary patch for poetry bug
Browse files Browse the repository at this point in the history
  • Loading branch information
rusty committed Apr 2, 2021
1 parent 9f16b8a commit c2bbfcc
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .circleci/config.yml
Expand Up @@ -6,9 +6,18 @@ jobs:
- image: cimg/python:2.7
environment:
PYTHON_VERSION: "2.7"
working_directory: ~/repo
steps: &test-steps
- checkout
- run:
name: Patch poetry
command: |
# FIXME patch for https://github.com/python-poetry/poetry-core/pull/154
echo '7a8' > /tmp/patch
echo '> from poetry.core.semver import EmptyConstraint' >> /tmp/patch
echo '293a295,296' >> /tmp/patch
echo '> elif isinstance(constraint, EmptyConstraint):' >> /tmp/patch
echo '> marker = ""' >> /tmp/patch
patch "~/.poetry/lib/poetry/_vendor/py${PYTHON_VERSION}/poetry/core/packages/dependency.py" /tmp/patch
- restore_cache:
keys:
- test-v1-{{ .Environment.PYTHON_VERSION }}-{{ checksum "pyproject.toml" }}-
Expand Down Expand Up @@ -37,39 +46,34 @@ jobs:
- image: cimg/python:3.5
environment:
PYTHON_VERSION: "3.5"
working_directory: ~/repo
steps: *test-steps

test-py36:
docker:
- image: cimg/python:3.6
environment:
PYTHON_VERSION: "3.6"
working_directory: ~/repo
steps: *test-steps

test-py37:
docker:
- image: cimg/python:3.7
environment:
PYTHON_VERSION: "3.7"
working_directory: ~/repo
steps: *test-steps

test-py38:
docker:
- image: cimg/python:3.8
environment:
PYTHON_VERSION: "3.8"
working_directory: ~/repo
steps: *test-steps

test-py39:
docker:
- image: cimg/python:3.9
environment:
PYTHON_VERSION: "3.9"
working_directory: ~/repo
steps: *test-steps

workflows:
Expand Down

0 comments on commit c2bbfcc

Please sign in to comment.