Skip to content

Commit 9ab78ab

Browse files
authored
chore: relax dependency versions (microsoft#2698)
1 parent 4ecf61e commit 9ab78ab

File tree

7 files changed

+23
-4
lines changed

7 files changed

+23
-4
lines changed

.azure-pipelines/publish.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ extends:
3838
- script: |
3939
python -m pip install --upgrade pip
4040
pip install -r local-requirements.txt
41+
pip install -r requirements.txt
4142
pip install -e .
4243
for wheel in $(python setup.py --list-wheels); do
4344
PLAYWRIGHT_TARGET_WHEEL=$wheel python -m build --wheel

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ jobs:
3030
run: |
3131
python -m pip install --upgrade pip
3232
pip install -r local-requirements.txt
33+
pip install -r requirements.txt
3334
pip install -e .
3435
python -m build --wheel
3536
python -m playwright install --with-deps
@@ -88,6 +89,7 @@ jobs:
8889
run: |
8990
python -m pip install --upgrade pip
9091
pip install -r local-requirements.txt
92+
pip install -r requirements.txt
9193
pip install -e .
9294
python -m build --wheel
9395
python -m playwright install --with-deps ${{ matrix.browser }}
@@ -134,6 +136,7 @@ jobs:
134136
run: |
135137
python -m pip install --upgrade pip
136138
pip install -r local-requirements.txt
139+
pip install -r requirements.txt
137140
pip install -e .
138141
python -m build --wheel
139142
python -m playwright install ${{ matrix.browser-channel }} --with-deps

.github/workflows/publish_docker.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,6 @@ jobs:
3636
run: |
3737
python -m pip install --upgrade pip
3838
pip install -r local-requirements.txt
39+
pip install -r requirements.txt
3940
pip install -e .
4041
- run: ./utils/docker/publish_docker.sh stable

.github/workflows/test_docker.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ jobs:
3636
run: |
3737
python -m pip install --upgrade pip
3838
pip install -r local-requirements.txt
39+
pip install -r requirements.txt
3940
pip install -e .
4041
- name: Build Docker image
4142
run: bash utils/docker/build.sh --amd64 ${{ matrix.docker-image-variant }} playwright-python:localbuild-${{ matrix.docker-image-variant }}
@@ -45,6 +46,7 @@ jobs:
4546
# Fix permissions for Git inside the container
4647
docker exec "${CONTAINER_ID}" chown -R root:root /root/playwright
4748
docker exec "${CONTAINER_ID}" pip install -r local-requirements.txt
49+
docker exec "${CONTAINER_ID}" pip install -r requirements.txt
4850
docker exec "${CONTAINER_ID}" pip install -e .
4951
docker exec "${CONTAINER_ID}" python -m build --wheel
5052
docker exec "${CONTAINER_ID}" xvfb-run pytest -vv tests/sync/

meta.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,9 @@ requirements:
2626
- setuptools_scm
2727
run:
2828
- python >=3.9
29-
- greenlet ==3.1.1
30-
- pyee ==12.1.1
29+
# This should be the same as the dependencies in pyproject.toml
30+
- greenlet>=3.1.1,<4.0.0
31+
- pyee>=12,<13
3132

3233
test: # [build_platform == target_platform]
3334
requires:

pyproject.toml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,12 @@ readme = "README.md"
1212
license = {text = "Apache-2.0"}
1313
dynamic = ["version"]
1414
requires-python = ">=3.9"
15+
# Please when changing dependencies run the following commands to update requirements.txt:
16+
# - pip install uv==0.5.4
17+
# - uv pip compile pyproject.toml -o requirements.txt
1518
dependencies = [
16-
"greenlet==3.1.1",
17-
"pyee==12.1.1",
19+
"pyee>=12,<13",
20+
"greenlet>=3.1.1,<4.0.0"
1821
]
1922
classifiers = [
2023
"Topic :: Software Development :: Testing",

requirements.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# This file was autogenerated by uv via the following command:
2+
# uv pip compile pyproject.toml -o requirements.txt
3+
greenlet==3.1.1
4+
# via playwright (pyproject.toml)
5+
pyee==12.1.1
6+
# via playwright (pyproject.toml)
7+
typing-extensions==4.12.2
8+
# via pyee

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy