Skip to content

Commit

Permalink
ci: Update poetry install commands
Browse files Browse the repository at this point in the history
- Use recommended method for installing Poetry
- Remove kludge for macOS 11.0 `opencv-python` installation

Resolves: #514
  • Loading branch information
jidicula committed Feb 5, 2022
1 parent b38aff7 commit fdc1b2d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/poetry-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,19 +40,14 @@ jobs:
python-version: ${{ matrix.python-version }}

- name: Install latest version of Poetry
run: pip install --upgrade poetry pip setuptools wheel
run: curl -sSL https://install.python-poetry.org | python3 -

- name: Get Poetry version
run: poetry --version

- name: Check pyproject.toml validity
run: poetry check --no-interaction

- name: install canary development dependencies (macos)
if: matrix.os == 'macos-11.0'
run: curl https://files.pythonhosted.org/packages/fe/0a/96e00caf7a4d9ce79c8eeac1ae3880833e11913e5719a85b259103bcb1c6/opencv_python-4.5.4.60-cp310-cp310-macosx_11_0_x86_64.whl > opencv_python-4.5.4.60-cp310-cp310-macosx_10_16_x86_64.whl && poetry run pip install opencv_python-4.5.4.60-cp310-cp310-macosx_10_16_x86_64.whl && poetry install --no-interaction

- name: install canary development dependencies (non macos)
if: matrix.os != 'macos-11.0'
- name: install canary development dependencies
run: poetry install --no-interaction

9 changes: 2 additions & 7 deletions .github/workflows/poetry-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,14 @@ jobs:
python-version: ${{ matrix.python-version }}

- name: Install Poetry
run: pip install --upgrade poetry pip setuptools wheel
run: curl -sSL https://install.python-poetry.org | python3 -

- name: Get Poetry version
run: poetry --version

- name: Check pyproject.toml validity
run: poetry check --no-interaction

- name: install canary production dependencies (macos)
if: matrix.os == 'macos-11.0'
run: curl https://files.pythonhosted.org/packages/fe/0a/96e00caf7a4d9ce79c8eeac1ae3880833e11913e5719a85b259103bcb1c6/opencv_python-4.5.4.60-cp310-cp310-macosx_11_0_x86_64.whl > opencv_python-4.5.4.60-cp310-cp310-macosx_10_16_x86_64.whl && poetry run pip install opencv_python-4.5.4.60-cp310-cp310-macosx_10_16_x86_64.whl && poetry install --no-dev --no-interaction

- name: install canary production dependencies (non macos)
if: matrix.os != 'macos-11.0'
- name: install canary production dependencies
run: poetry install --no-dev --no-interaction

0 comments on commit fdc1b2d

Please sign in to comment.