From 38b69f90942a2e73ca62cd8df485ee3d51e2d17b Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Fri, 27 Dec 2024 09:03:48 +0100 Subject: [PATCH] chore: relax dependency versions --- .github/workflows/publish_docker.yml | 1 + .github/workflows/test_docker.yml | 1 + .gitignore | 1 + local-requirements.txt | 1 + meta.yaml | 4 ++-- pyproject.toml | 4 ++-- requirements.txt | 8 ++++++++ 7 files changed, 16 insertions(+), 4 deletions(-) create mode 100644 requirements.txt diff --git a/.github/workflows/publish_docker.yml b/.github/workflows/publish_docker.yml index 99ac96c7f7..7d83136bc8 100644 --- a/.github/workflows/publish_docker.yml +++ b/.github/workflows/publish_docker.yml @@ -36,5 +36,6 @@ jobs: run: | python -m pip install --upgrade pip pip install -r local-requirements.txt + pip install -r requirements.txt pip install -e . - run: ./utils/docker/publish_docker.sh stable diff --git a/.github/workflows/test_docker.yml b/.github/workflows/test_docker.yml index 9d70ae3033..e84428cc18 100644 --- a/.github/workflows/test_docker.yml +++ b/.github/workflows/test_docker.yml @@ -36,6 +36,7 @@ jobs: run: | python -m pip install --upgrade pip pip install -r local-requirements.txt + pip install -r requirements.txt pip install -e . - name: Build Docker image run: bash utils/docker/build.sh --amd64 ${{ matrix.docker-image-variant }} playwright-python:localbuild-${{ matrix.docker-image-variant }} diff --git a/.gitignore b/.gitignore index 8424e9bfc0..cc3542b027 100644 --- a/.gitignore +++ b/.gitignore @@ -12,6 +12,7 @@ htmlcov/ .coverage* .DS_Store .vscode/ +.venv .eggs _repo_version.py coverage.xml diff --git a/local-requirements.txt b/local-requirements.txt index 10dbe6eee9..c3ed8dd7b8 100644 --- a/local-requirements.txt +++ b/local-requirements.txt @@ -20,3 +20,4 @@ service_identity==24.2.0 twisted==24.11.0 types-pyOpenSSL==24.1.0.20240722 types-requests==2.32.0.20241016 +uv==0.5.4 diff --git a/meta.yaml b/meta.yaml index f9fc9d5ba4..b05c6d13e9 100644 --- a/meta.yaml +++ b/meta.yaml @@ -26,8 +26,8 @@ requirements: - setuptools_scm run: - python >=3.9 - - greenlet ==3.1.1 - - pyee ==12.1.1 + - greenlet>=3.1.1,<4.0.0 + - pyee>=12,<13 test: # [build_platform == target_platform] requires: diff --git a/pyproject.toml b/pyproject.toml index b4de553276..5a52e7a375 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -13,8 +13,8 @@ license = {text = "Apache-2.0"} dynamic = ["version"] requires-python = ">=3.9" dependencies = [ - "greenlet==3.1.1", - "pyee==12.1.1", + "pyee>=12,<13", + "greenlet>=3.1.1,<4.0.0" ] classifiers = [ "Topic :: Software Development :: Testing", diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000000..eaa753330e --- /dev/null +++ b/requirements.txt @@ -0,0 +1,8 @@ +# This file was autogenerated by uv via the following command: +# uv pip compile pyproject.toml -o requirements.txt +greenlet==3.1.1 + # via playwright (pyproject.toml) +pyee==12.1.1 + # via playwright (pyproject.toml) +typing-extensions==4.12.2 + # via pyee