Skip to content

Commit b420087

Browse files
committed
Bug 1834350 [wpt PR 40130] - Don't require virtualenv binary, a=testonly
Automatic update from web-platform-tests Don't require virtualenv binary With Python 3 we can use python3 -m venv to create a virtualenv. The main dififculty is that we're missing activate_this.py which we use to activate the environment. But we can do the relevant path / env manipulations ourselves and so cut down the number of dependencies. -- Try falling back to `pip` if `pip3` doesn't exist -- Update documentation -- wpt-commits: 7eed90bb584ed77bf7227233501882a43f90d05e, 5bb7544e8c50cb3bcc55bd4508cbbc94b1209302, 4fd791ba8cda63f0fdece4bdb72a431f198b582e wpt-pr: 40130 UltraBlame original commit: 044925cdba0413292d139c32915f8c33484f3fb3
1 parent d49943c commit b420087

File tree

5 files changed

+301
-78
lines changed

5 files changed

+301
-78
lines changed

testing/web-platform/tests/.taskcluster.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@ wpt
557557
:
558558
0
559559
.
560-
53
560+
54
561561
maxRunTime
562562
:
563563
7200

testing/web-platform/tests/docs/running-tests/from-local-system.md

Lines changed: 7 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,8 @@ the
2626
tests
2727
requires
2828
python
29-
pip
3029
and
31-
virtualenv
30+
pip
3231
as
3332
well
3433
as
@@ -75,13 +74,10 @@ manager
7574
to
7675
install
7776
python
78-
pip
7977
and
80-
virtualenv
78+
pip
8179
.
8280
On
83-
Debian
84-
or
8581
Ubuntu
8682
:
8783
bash
@@ -90,11 +86,13 @@ apt
9086
-
9187
get
9288
install
93-
python
94-
python
89+
python3
90+
python3
9591
-
9692
pip
97-
virtualenv
93+
python3
94+
-
95+
venv
9896
It
9997
is
10098
important
@@ -153,8 +151,6 @@ be
153151
used
154152
while
155153
pip
156-
and
157-
virtualenv
158154
can
159155
be
160156
installed
@@ -191,12 +187,6 @@ base
191187
/
192188
bin
193189
"
194-
pip
195-
install
196-
-
197-
-
198-
user
199-
virtualenv
200190
To
201191
make
202192
the
@@ -308,14 +298,6 @@ ch000549
308298
htm
309299
)
310300
.
311-
Finally
312-
install
313-
virtualenv
314-
:
315-
bash
316-
pip
317-
install
318-
virtualenv
319301
The
320302
standard
321303
Windows

testing/web-platform/tests/tools/ci/tc/tasks/test.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ wpt
3131
:
3232
0
3333
.
34-
53
34+
54
3535
maxRunTime
3636
:
3737
7200
@@ -498,6 +498,12 @@ python3
498498
7
499499
-
500500
dev
501+
-
502+
python3
503+
.
504+
7
505+
-
506+
venv
501507
tox
502508
-
503509
python3_10
@@ -530,6 +536,12 @@ python3
530536
10
531537
-
532538
dev
539+
-
540+
python3
541+
.
542+
10
543+
-
544+
venv
533545
tests
534546
-
535547
affected

testing/web-platform/tests/tools/docker/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,10 @@ python3
138138
-
139139
pip
140140
\
141+
python3
142+
-
143+
venv
144+
\
141145
software
142146
-
143147
properties
@@ -290,10 +294,6 @@ install
290294
-
291295
upgrade
292296
pip
293-
RUN
294-
pip
295-
install
296-
virtualenv
297297
ENV
298298
TZ
299299
"

0 commit comments

Comments
 (0)