diff --git a/.azure-pipelines/publish.yml b/.azure-pipelines/publish.yml index 6674eaae2..0076089ab 100644 --- a/.azure-pipelines/publish.yml +++ b/.azure-pipelines/publish.yml @@ -38,6 +38,7 @@ extends: - script: | python -m pip install --upgrade pip pip install -r local-requirements.txt + pip install -r requirements.txt pip install -e . for wheel in $(python setup.py --list-wheels); do PLAYWRIGHT_TARGET_WHEEL=$wheel python -m build --wheel diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 624269f05..929b05b8b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,6 +30,7 @@ jobs: run: | python -m pip install --upgrade pip pip install -r local-requirements.txt + pip install -r requirements.txt pip install -e . python -m build --wheel python -m playwright install --with-deps @@ -88,6 +89,7 @@ jobs: run: | python -m pip install --upgrade pip pip install -r local-requirements.txt + pip install -r requirements.txt pip install -e . python -m build --wheel python -m playwright install --with-deps ${{ matrix.browser }} @@ -134,6 +136,7 @@ jobs: run: | python -m pip install --upgrade pip pip install -r local-requirements.txt + pip install -r requirements.txt pip install -e . python -m build --wheel python -m playwright install ${{ matrix.browser-channel }} --with-deps diff --git a/.github/workflows/publish_docker.yml b/.github/workflows/publish_docker.yml index 99ac96c7f..7d83136bc 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 9d70ae303..573370f13 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 }} @@ -45,6 +46,7 @@ jobs: # Fix permissions for Git inside the container docker exec "${CONTAINER_ID}" chown -R root:root /root/playwright docker exec "${CONTAINER_ID}" pip install -r local-requirements.txt + docker exec "${CONTAINER_ID}" pip install -r requirements.txt docker exec "${CONTAINER_ID}" pip install -e . docker exec "${CONTAINER_ID}" python -m build --wheel docker exec "${CONTAINER_ID}" xvfb-run pytest -vv tests/sync/ diff --git a/.gitignore b/.gitignore index 8424e9bfc..cc3542b02 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 10dbe6eee..c3ed8dd7b 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 f9fc9d5ba..b05c6d13e 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 b4de55327..5a52e7a37 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 000000000..eaa753330 --- /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