Skip to content

Commit 931914c

Browse files
Merge pull request #3305 from nexB/update-skeleton-ci-images
Merge latest skeleton into scancode
2 parents 013e846 + cb971ce commit 931914c

File tree

6 files changed

+22
-4706
lines changed

6 files changed

+22
-4706
lines changed

azure-pipelines.yml

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -91,15 +91,6 @@ jobs:
9191
venv/bin/pytest -vvs --test-suite=plugins \
9292
tests/licensedcode/test_additional_license.py
9393
94-
- template: etc/ci/azure-posix.yml
95-
parameters:
96-
job_name: ubuntu18_cpython
97-
image_name: ubuntu-18.04
98-
python_versions: ['3.8', '3.9', '3.10', '3.11']
99-
python_architecture: x64
100-
test_suites:
101-
all: venv/bin/pytest -n 2 -vvs tests/scancode/test_cli.py --reruns 2
102-
10394
- template: etc/ci/azure-posix.yml
10495
parameters:
10596
job_name: ubuntu20_cpython
@@ -147,9 +138,9 @@ jobs:
147138

148139
- template: etc/ci/azure-win.yml
149140
parameters:
150-
job_name: win2019_cpython_2
151-
image_name: windows-2019
152-
python_versions: ['3.9', '3.10', '3.11']
141+
job_name: win2022_cpython
142+
image_name: windows-2022
143+
python_versions: ['3.8', '3.9', '3.10', '3.11']
153144
python_architecture: x64
154145
test_suites:
155146
all: venv\Scripts\pytest -n 2 -vvs tests\scancode\test_cli.py --reruns 2
@@ -206,14 +197,6 @@ jobs:
206197
test_suites:
207198
all: venv/bin/pip install --upgrade-strategy eager --force-reinstall --upgrade -e .[testing] && venv/bin/pytest -n 2 -vvs tests/scancode/test_cli.py
208199

209-
- template: etc/ci/azure-posix.yml
210-
parameters:
211-
job_name: ubuntu18_cpython_latest_from_pip
212-
image_name: ubuntu-18.04
213-
python_versions: ['3.8', '3.9', '3.10', '3.11']
214-
test_suites:
215-
all: venv/bin/pip install --upgrade-strategy eager --force-reinstall --upgrade -e .[testing] && venv/bin/pytest -n 2 -vvs tests/scancode/test_cli.py
216-
217200
- template: etc/ci/azure-posix.yml
218201
parameters:
219202
job_name: ubuntu20_cpython_latest_from_pip

configure

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ PROD_REQUIREMENTS="scancode_toolkit*.whl"
159159
VIRTUALENV_DIR=venv
160160

161161
# Cleanable files and directories to delete with the --clean option
162-
CLEANABLE="build venv"
162+
CLEANABLE="build dist venv .cache .eggs"
163163

164164
# extra arguments passed to pip
165165
PIP_EXTRA_ARGS=" "
@@ -175,6 +175,13 @@ CFG_ROOT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
175175
CFG_BIN_DIR=$CFG_ROOT_DIR/$VIRTUALENV_DIR/bin
176176

177177

178+
################################
179+
# Install with or without and index. With "--no-index" this is using only local wheels
180+
# This is an offline mode with no index and no network operations
181+
# NO_INDEX="--no-index "
182+
NO_INDEX=""
183+
184+
178185
################################
179186
# Thirdparty package locations and index handling
180187
# Find packages from the local thirdparty directory if present
@@ -308,6 +315,7 @@ while getopts :-: optchar; do
308315
esac
309316
done
310317

318+
311319
PIP_EXTRA_ARGS="$PIP_EXTRA_ARGS"
312320

313321
find_python

configure.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ set "REL_REQUIREMENTS=--requirement etc/scripts/requirements.txt"
3535
set "VIRTUALENV_DIR=venv"
3636

3737
@rem # Cleanable files and directories to delete with the --clean option
38-
set "CLEANABLE=build venv"
38+
set "CLEANABLE=build dist venv .cache .eggs"
3939

4040
@rem # extra arguments passed to pip
4141
set "PIP_EXTRA_ARGS= "

docs/source/conf.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,16 @@
2828
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
2929
# ones.
3030
extensions = [
31-
'sphinx.ext.intersphinx',
31+
"sphinx.ext.intersphinx",
3232
]
3333

3434
# This points to aboutcode.readthedocs.io
3535
# In case of "undefined label" ERRORS check docs on intersphinx to troubleshoot
3636
# Link was created at commit - https://github.com/nexB/aboutcode/commit/faea9fcf3248f8f198844fe34d43833224ac4a83
3737

3838
intersphinx_mapping = {
39-
'aboutcode': ('https://aboutcode.readthedocs.io/en/latest/', None),
40-
'scancode-workbench': ('https://scancode-workbench.readthedocs.io/en/develop/', None),
39+
"aboutcode": ("https://aboutcode.readthedocs.io/en/latest/", None),
40+
"scancode-workbench": ("https://scancode-workbench.readthedocs.io/en/develop/", None),
4141
}
4242

4343

@@ -62,7 +62,7 @@
6262
# so a file named "default.css" will overwrite the builtin "default.css".
6363
html_static_path = ["_static"]
6464

65-
master_doc = 'index'
65+
master_doc = "index"
6666

6767
html_context = {
6868
"display_github": True,
@@ -72,9 +72,7 @@
7272
"conf_py_path": "/docs/source/", # path in the checkout to the docs root
7373
}
7474

75-
html_css_files = [
76-
'_static/theme_overrides.css'
77-
]
75+
html_css_files = ["_static/theme_overrides.css"]
7876

7977

8078
# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.

etc/scripts/README.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Pre-requisites
2121
virtualenv or in the the main configured development virtualenv.
2222
These requireements need to be installed::
2323

24-
pip install --requirement etc/release/requirements.txt
24+
pip install --requirement etc/scripts/requirements.txt
2525

2626
TODO: we need to pin the versions of these tools
2727

@@ -34,7 +34,7 @@ Scripts
3434
~~~~~~~
3535

3636
**gen_requirements.py**: create/update requirements files from currently
37-
installed requirements.
37+
installed requirements.
3838

3939
**gen_requirements_dev.py** does the same but can subtract the main requirements
4040
to get extra requirements used in only development.
@@ -50,7 +50,7 @@ The sequence of commands to run are:
5050

5151
./configure --clean
5252
./configure
53-
python etc/release/gen_requirements.py --site-packages-dir <path to site-packages dir>
53+
python etc/scripts/gen_requirements.py --site-packages-dir <path to site-packages dir>
5454

5555
* You can optionally install or update extra main requirements after the
5656
./configure step such that these are included in the generated main requirements.
@@ -59,7 +59,7 @@ The sequence of commands to run are:
5959

6060
./configure --clean
6161
./configure --dev
62-
python etc/release/gen_requirements_dev.py --site-packages-dir <path to site-packages dir>
62+
python etc/scripts/gen_requirements_dev.py --site-packages-dir <path to site-packages dir>
6363

6464
* You can optionally install or update extra dev requirements after the
6565
./configure step such that these are included in the generated dev

0 commit comments

Comments
 (0)