Skip to content

Commit 593e237

Browse files
committed
Use venv as virtual environment directory name #37
* Replace all references to `tmp` with `venv` Signed-off-by: Jono Yang <[email protected]>
1 parent a5ae4f3 commit 593e237

7 files changed

+18
-16
lines changed

Diff for: .gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
/Lib
1313
/pip-selfcheck.json
1414
/tmp
15+
/venv
1516
.Python
1617
/include
1718
/Include

Diff for: .travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ python:
1919
install: ./configure --dev
2020

2121
# Scripts to run at script stage
22-
script: tmp/bin/pytest
22+
script: venv/bin/pytest

Diff for: README.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -74,16 +74,16 @@ To generate requirements.txt:
7474

7575
.. code-block:: bash
7676
77-
python etc/scripts/gen_requirements.py -s tmp/lib/python<version>/site-packages/
77+
python etc/scripts/gen_requirements.py -s venv/lib/python<version>/site-packages/
7878
7979
Replace \<version\> with the version number of the Python being used.
8080

8181
To generate requirements-dev.txt after requirements.txt has been generated:
8282

8383
.. code-block:: bash
8484
./configure --dev
85-
source tmp/bin/activate
86-
python etc/scripts/gen_requirements_dev.py -s tmp/lib/python<version>/site-packages/
85+
source venv/bin/activate
86+
python etc/scripts/gen_requirements_dev.py -s venv/lib/python<version>/site-packages/
8787
8888
Collecting and generating ABOUT files for dependencies
8989
------------------------------------------------------

Diff for: azure-pipelines.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -13,52 +13,52 @@ jobs:
1313
image_name: ubuntu-16.04
1414
python_versions: ['3.6', '3.7', '3.8', '3.9']
1515
test_suites:
16-
all: tmp/bin/pytest -vvs
16+
all: venv/bin/pytest -vvs
1717

1818
- template: etc/ci/azure-posix.yml
1919
parameters:
2020
job_name: ubuntu18_cpython
2121
image_name: ubuntu-18.04
2222
python_versions: ['3.6', '3.7', '3.8', '3.9']
2323
test_suites:
24-
all: tmp/bin/pytest -n 2 -vvs
24+
all: venv/bin/pytest -n 2 -vvs
2525

2626
- template: etc/ci/azure-posix.yml
2727
parameters:
2828
job_name: ubuntu20_cpython
2929
image_name: ubuntu-20.04
3030
python_versions: ['3.6', '3.7', '3.8', '3.9']
3131
test_suites:
32-
all: tmp/bin/pytest -n 2 -vvs
32+
all: venv/bin/pytest -n 2 -vvs
3333

3434
- template: etc/ci/azure-posix.yml
3535
parameters:
3636
job_name: macos1014_cpython
3737
image_name: macos-10.14
3838
python_versions: ['3.6', '3.7', '3.8', '3.9']
3939
test_suites:
40-
all: tmp/bin/pytest -n 2 -vvs
40+
all: venv/bin/pytest -n 2 -vvs
4141

4242
- template: etc/ci/azure-posix.yml
4343
parameters:
4444
job_name: macos1015_cpython
4545
image_name: macos-10.15
4646
python_versions: ['3.6', '3.7', '3.8', '3.9']
4747
test_suites:
48-
all: tmp/bin/pytest -n 2 -vvs
48+
all: venv/bin/pytest -n 2 -vvs
4949

5050
- template: etc/ci/azure-win.yml
5151
parameters:
5252
job_name: win2016_cpython
5353
image_name: vs2017-win2016
5454
python_versions: ['3.6', '3.7', '3.8', '3.9']
5555
test_suites:
56-
all: tmp\Scripts\pytest -n 2 -vvs
56+
all: venv\Scripts\pytest -n 2 -vvs
5757

5858
- template: etc/ci/azure-win.yml
5959
parameters:
6060
job_name: win2019_cpython
6161
image_name: windows-2019
6262
python_versions: ['3.6', '3.7', '3.8', '3.9']
6363
test_suites:
64-
all: tmp\Scripts\pytest -n 2 -vvs
64+
all: venv\Scripts\pytest -n 2 -vvs

Diff for: configure

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ REQUIREMENTS="--editable . --constraint requirements.txt"
3030
DEV_REQUIREMENTS="--editable .[testing] --constraint requirements.txt --constraint requirements-dev.txt"
3131

3232
# where we create a virtualenv
33-
VIRTUALENV_DIR=tmp
33+
VIRTUALENV_DIR=venv
3434

3535
# Cleanable files and directories with the --clean option
3636
CLEANABLE="
3737
build
38-
tmp"
38+
venv"
3939

4040
# extra arguments passed to pip
4141
PIP_EXTRA_ARGS=" "

Diff for: configure.bat

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ set "REQUIREMENTS=--editable . --constraint requirements.txt"
2828
set "DEV_REQUIREMENTS=--editable .[testing] --constraint requirements.txt --constraint requirements-dev.txt"
2929

3030
@rem # where we create a virtualenv
31-
set "VIRTUALENV_DIR=tmp"
31+
set "VIRTUALENV_DIR=venv"
3232

3333
@rem # Cleanable files and directories to delete with the --clean option
34-
set "CLEANABLE=build tmp"
34+
set "CLEANABLE=build venv"
3535

3636
@rem # extra arguments passed to pip
3737
set "PIP_EXTRA_ARGS= "

Diff for: pyproject.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,11 @@ norecursedirs = [
3333
"Scripts",
3434
"thirdparty",
3535
"tmp",
36+
"venv",
3637
"tests/data",
3738
".eggs"
3839
]
39-
40+
4041
python_files = "*.py"
4142

4243
python_classes = "Test"

0 commit comments

Comments
 (0)