diff --git a/.circleci/config.yml b/.circleci/config.yml index 26b5644..0092751 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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" }}- @@ -37,7 +46,6 @@ jobs: - image: cimg/python:3.5 environment: PYTHON_VERSION: "3.5" - working_directory: ~/repo steps: *test-steps test-py36: @@ -45,7 +53,6 @@ jobs: - image: cimg/python:3.6 environment: PYTHON_VERSION: "3.6" - working_directory: ~/repo steps: *test-steps test-py37: @@ -53,7 +60,6 @@ jobs: - image: cimg/python:3.7 environment: PYTHON_VERSION: "3.7" - working_directory: ~/repo steps: *test-steps test-py38: @@ -61,7 +67,6 @@ jobs: - image: cimg/python:3.8 environment: PYTHON_VERSION: "3.8" - working_directory: ~/repo steps: *test-steps test-py39: @@ -69,7 +74,6 @@ jobs: - image: cimg/python:3.9 environment: PYTHON_VERSION: "3.9" - working_directory: ~/repo steps: *test-steps workflows: