Skip to content

Commit bfbbe92

Browse files
committed
Complete migration to skeleton
Use consistrentently the venv subdirectory Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
1 parent 7d3e45e commit bfbbe92

File tree

14 files changed

+27
-74
lines changed

14 files changed

+27
-74
lines changed

.github/workflows/ci-about-files.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,16 @@ jobs:
2424
run: ./configure --dev
2525

2626
- name: Activate VirtualEnv
27-
run: source bin/activate
27+
run: source venv/bin/activate
2828

2929
#- name: Check About Files in thirdparty
30-
# run: ./bin/about check thirdparty/
30+
# run: ./venv/bin/about check thirdparty/
3131

3232
- name: Check About Files in thirdparty
33-
run: ./bin/about check src/
33+
run: ./venv/bin/about check src/
3434

3535
- name: Check About Files in thirdparty
36-
run: ./bin/about check etc/
36+
run: ./venv/bin/about check etc/
3737

3838
- name: Check About Files in thirdparty
39-
run: ./bin/about check scancode-toolkit.ABOUT
39+
run: ./venv/bin/about check scancode-toolkit.ABOUT

INSTALL.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Advanced installation: pip install a Python PyPI package
4747

4848
- Create a virtual environment for Python 3.x and activate it::
4949

50-
virtualenv -p python3 venv-scancode && source venv-scancode/bin/activate
50+
virtualenv -p python3 venv && source venv/bin/activate
5151

5252
- Run ``pip install scancode-toolkit[full]``
5353

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ build: off
1616

1717
test_script:
1818
- python -c "import sys;print(sys.getdefaultencoding())"
19-
- cmd: "set PYTHON_EXECUTABLE=%PYTHON%\\python.exe && configure --dev && Scripts\\pytest -vvs tests\\scancode"
19+
- cmd: "set PYTHON_EXECUTABLE=%PYTHON%\\python.exe && configure --dev && venv\\Scripts\\pytest -vvs tests\\scancode"

azure-pipelines.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ jobs:
129129
python_versions: ['3.7', '3.8', '3.9']
130130
python_architecture: x64
131131
test_suites:
132-
all: Scripts\pytest -n 2 -vvs tests\scancode\test_cli.py
132+
all: venv\Scripts\pytest -n 2 -vvs tests\scancode\test_cli.py
133133

134134

135135
- template: etc/ci/azure-win.yml
@@ -139,7 +139,7 @@ jobs:
139139
python_versions: ['3.6', '3.7', '3.8', '3.9']
140140
python_architecture: x64
141141
test_suites:
142-
all: Scripts\pytest -n 2 -vvs tests\scancode\test_cli.py
142+
all: venv\Scripts\pytest -n 2 -vvs tests\scancode\test_cli.py
143143

144144

145145
- template: etc/ci/azure-posix.yml
@@ -176,9 +176,9 @@ jobs:
176176
click_versions: |
177177
for clk_ver in 8.0.1 7.1.2 7.1.1 7.1 6.7;
178178
do
179-
bin/pip install click==$clk_ver;
180-
bin/scancode -i samples/ -n3 --json foo.json;
181-
bin/scancode -i --verbose samples/ -n3 --json foo.json;
179+
venv/bin/pip install click==$clk_ver;
180+
venv/bin/scancode -i samples/ -n3 --json foo.json;
181+
venv/bin/scancode -i --verbose samples/ -n3 --json foo.json;
182182
done
183183
184184
@@ -338,20 +338,20 @@ jobs:
338338
image_name: ubuntu-20.04
339339
python_versions: ['3.6', '3.7', '3.8', '3.9']
340340
test_suites:
341-
all: bin/pip install --force-reinstall --upgrade -e .[dev] && venv/bin/pytest -n 2 -vvs tests/scancode/test_cli.py
341+
all: venv/bin/pip install --force-reinstall --upgrade -e .[dev] && venv/bin/pytest -n 2 -vvs tests/scancode/test_cli.py
342342

343343
- template: etc/ci/azure-win.yml
344344
parameters:
345345
job_name: win2019_cpython_latest_from_pip
346346
image_name: windows-2019
347347
python_versions: ['3.6', '3.7', '3.8', '3.9']
348348
test_suites:
349-
all: Scripts\pip install --force-reinstall --upgrade -e .[dev] && Scripts\pytest -n 2 -vvs tests\scancode\test_cli.py
349+
all: venv\Scripts\pip install --force-reinstall --upgrade -e .[dev] && Scripts\pytest -n 2 -vvs tests\scancode\test_cli.py
350350

351351
- template: etc/ci/azure-posix.yml
352352
parameters:
353353
job_name: macos1015_cpython_latest_from_pip
354354
image_name: macos-10.15
355355
python_versions: ['3.6', '3.7', '3.8', '3.9']
356356
test_suites:
357-
all: bin/pip install --force-reinstall --upgrade -e .[dev] && venv/bin/pytest -n 2 -vvs tests/scancode/test_cli.py
357+
all: venv/bin/pip install --force-reinstall --upgrade -e .[dev] && venv/bin/pytest -n 2 -vvs tests/scancode/test_cli.py

docs/source/contribute/contrib_dev.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,11 @@ test suite. This is installed with the ``pytest`` package which is installed
6969
when you run ``./configure --dev``).
7070

7171
If you are running from a fresh git clone and you run ``./configure`` and then
72-
``source bin/activate`` the ``pytest`` command will be available in your path.
72+
``source venv/bin/activate`` the ``pytest`` command will be available in your path.
7373

7474
Alternatively, if you have already configured but are not in an activated
7575
"virtualenv" the ``pytest`` command is available under
76-
``<root of your checkout>/bin/pytest``
76+
``<root of your checkout>/venv/bin/pytest``
7777

7878
(Note: paths here are for POSIX, but mostly the same applies to Windows)
7979

docs/source/getting-started/ide-config.rst

Lines changed: 0 additions & 42 deletions
This file was deleted.

docs/source/getting-started/index.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
home
88
install
9-
ide-config
109
newcomer
1110

1211
..

docs/source/getting-started/install.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -306,14 +306,14 @@ On Linux/Mac:
306306
- Open a terminal
307307
- cd to the clone directory
308308
- run ``./configure``
309-
- run ``source bin/activate``
309+
- run ``source venv/bin/activate``
310310

311311
On Windows:
312312

313313
- open a command prompt
314314
- cd to the clone directory
315315
- run ``configure``
316-
- run ``Scripts\activate``
316+
- run ``venv\Scripts\activate``
317317

318318
Now you are ready to use the freshly configured scancode-toolkit.
319319

@@ -336,14 +336,14 @@ The steps are:
336336

337337
#. Create a Python virtual environment::
338338

339-
/usr/bin/python3 -m venv .
339+
/usr/bin/python3 -m venv venv
340340

341341
For more information on Python virtualenv, visit this
342342
`page <https://docs.python-guide.org/dev/virtualenvs/#lower-level-virtualenv>`_.
343343

344344
#. Activate the virtual environment you just created::
345345

346-
source bin/activate
346+
source venv/bin/activate
347347

348348
#. Run ``pip install --upgrade pip setuptools wheel`` to install the latest
349349
versions of base utilities.

etc/build/scancode-toolkit.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ ScanCode is a tool to scan code and detect licenses, copyrights and more.
2929
ls -al
3030
pwd
3131
./configure
32-
cd `pwd` && venv/bin/py.test -n 2 -vvs src tests/commoncode
32+
cd `pwd` && venv/bin/pytest -n 2 -vvs src tests/commoncode
3333

3434
#py.test -n 2 -vvs src tests/commoncode tests/extractcode tests/textcode tests/typecode tests/cluecode tests/scancode tests/licensedcode/test_detect.py tests/licensedcode/test_index.py tests/licensedcode/test_legal.py tests/licensedcode/test_models.py
3535

etc/virtualenv.pyz

-8.63 MB
Binary file not shown.

0 commit comments

Comments
 (0)