Skip to content

Commit

Permalink
chore(deps): better version checking on poetry and python
Browse files Browse the repository at this point in the history
Signed-off-by: Jordan Shatford <[email protected]>
  • Loading branch information
jordanshatford committed Mar 3, 2025
1 parent 7393ba9 commit 4bb16b8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 deletions.
9 changes: 2 additions & 7 deletions .github/actions/setup-environment/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@ inputs:
description: Python version to use
required: false
default: '3.13'
poetry-version:
description: Poetry version to use
required: false
default: 2.1.1

runs:
using: 'composite'
Expand All @@ -34,6 +30,5 @@ runs:
with:
python-version: ${{ inputs.python-version }}
- name: Setup Poetry
uses: abatilo/actions-poetry@v4
with:
poetry-version: ${{ inputs.poetry-version }}
run: pipx install "poetry>=2.0,<3.0"
shell: bash
3 changes: 1 addition & 2 deletions apps/api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ RUN apt-get install -y ffmpeg
WORKDIR /workspace

# Install Poetry
ENV POETRY_VERSION=2.1.1
RUN apt-get install -y pipx && pipx ensurepath
RUN pipx install "poetry==$POETRY_VERSION"
RUN pipx install "poetry>=2.0,<3.0"
ENV PATH=/root/.local/bin:$PATH

# Install dependencies
Expand Down
4 changes: 2 additions & 2 deletions apps/api/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "yd-api"
version = "1.0.0"
description = "API to search and download YouTube videos in various formats."
license = "MIT"
requires-python = ">=3.11"
requires-python = ">=3.11,<3.14"
dependencies = [
"fastapi==0.115.*",
"pydantic>=2.1.1,<3.0.0",
Expand All @@ -17,7 +17,7 @@ pre-commit = "4.1.0"

[tool.poetry]
package-mode = false
requires-poetry = ">=2.0"
requires-poetry = ">=2.0,<3.0"

[build-system]
requires = ["poetry-core>=2.0.0,<3.0.0"]
Expand Down

0 comments on commit 4bb16b8

Please sign in to comment.