Skip to content

Commit 2186416

Browse files
committed
Merge remote-tracking branch 'skeleton/main' into main
2 parents d5be3d6 + b1dabd8 commit 2186416

16 files changed

Lines changed: 797 additions & 78 deletions

configure.bat

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,9 @@ if %ERRORLEVEL% neq 0 (
160160
%CFG_REQUIREMENTS%
161161

162162
@rem # Create junction to bin to have the same directory between linux and windows
163+
if exist "%CFG_ROOT_DIR%\%VIRTUALENV_DIR%\bin" (
164+
rmdir /s /q "%CFG_ROOT_DIR%\%VIRTUALENV_DIR%\bin"
165+
)
163166
mklink /J %CFG_ROOT_DIR%\%VIRTUALENV_DIR%\bin %CFG_ROOT_DIR%\%VIRTUALENV_DIR%\Scripts
164167

165168
if %ERRORLEVEL% neq 0 (

docs/source/conf.py

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,28 @@
1818
# -- Project information -----------------------------------------------------
1919

2020
project = "nexb-skeleton"
21-
copyright = "nexb Inc."
22-
author = "nexb Inc."
21+
copyright = "nexB Inc. and others."
22+
author = "AboutCode.org authors and contributors"
2323

2424

2525
# -- General configuration ---------------------------------------------------
2626

2727
# Add any Sphinx extension module names here, as strings. They can be
2828
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
2929
# ones.
30-
extensions = []
30+
extensions = [
31+
'sphinx.ext.intersphinx',
32+
]
33+
34+
# This points to aboutcode.readthedocs.io
35+
# In case of "undefined label" ERRORS check docs on intersphinx to troubleshoot
36+
# Link was created at commit - https://github.com/nexB/aboutcode/commit/faea9fcf3248f8f198844fe34d43833224ac4a83
37+
38+
intersphinx_mapping = {
39+
'aboutcode': ('https://aboutcode.readthedocs.io/en/latest/', None),
40+
'scancode-workbench': ('https://scancode-workbench.readthedocs.io/en/develop/', None),
41+
}
42+
3143

3244
# Add any paths that contain templates here, relative to this directory.
3345
templates_path = ["_templates"]
@@ -50,6 +62,8 @@
5062
# so a file named "default.css" will overwrite the builtin "default.css".
5163
html_static_path = ["_static"]
5264

65+
master_doc = 'index'
66+
5367
html_context = {
5468
"css_files": [
5569
"_static/theme_overrides.css", # override wide tables in RTD theme

etc/ci/azure-container-deb.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
parameters:
2+
job_name: ''
3+
container: ''
4+
python_path: ''
5+
python_version: ''
6+
package_manager: apt-get
7+
install_python: ''
8+
install_packages: |
9+
set -e -x
10+
sudo apt-get -y update
11+
sudo apt-get -y install \
12+
build-essential \
13+
xz-utils zlib1g bzip2 libbz2-1.0 tar \
14+
sqlite3 libxml2-dev libxslt1-dev \
15+
software-properties-common openssl
16+
test_suite: ''
17+
test_suite_label: ''
18+
19+
20+
jobs:
21+
- job: ${{ parameters.job_name }}
22+
23+
pool:
24+
vmImage: 'ubuntu-16.04'
25+
26+
container:
27+
image: ${{ parameters.container }}
28+
options: '--name ${{ parameters.job_name }} -e LANG=C.UTF-8 -e LC_ALL=C.UTF-8 -v /usr/bin/docker:/tmp/docker:ro'
29+
30+
steps:
31+
- checkout: self
32+
fetchDepth: 10
33+
34+
- script: /tmp/docker exec -t -e LANG=C.UTF-8 -e LC_ALL=C.UTF-8 -u 0 ${{ parameters.job_name }} $(Build.SourcesDirectory)/etc/ci/install_sudo.sh ${{ parameters.package_manager }}
35+
displayName: Install sudo
36+
37+
- script: ${{ parameters.install_packages }}
38+
displayName: Install required packages
39+
40+
- script: ${{ parameters.install_python }}
41+
displayName: 'Install Python ${{ parameters.python_version }}'
42+
43+
- script: ${{ parameters.python_path }} --version
44+
displayName: 'Show Python version'
45+
46+
- script: PYTHON_EXE=${{ parameters.python_path }} ./configure --dev
47+
displayName: 'Run Configure'
48+
49+
- script: ${{ parameters.test_suite }}
50+
displayName: 'Run ${{ parameters.test_suite_label }} tests with py${{ parameters.python_version }} on ${{ parameters.job_name }}'

etc/ci/azure-container-rpm.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
parameters:
2+
job_name: ''
3+
image_name: 'ubuntu-16.04'
4+
container: ''
5+
python_path: ''
6+
python_version: ''
7+
package_manager: yum
8+
install_python: ''
9+
install_packages: |
10+
set -e -x
11+
sudo yum groupinstall -y "Development Tools"
12+
sudo yum install -y \
13+
openssl openssl-devel \
14+
sqlite-devel zlib-devel xz-devel bzip2-devel \
15+
bzip2 tar unzip zip \
16+
libxml2-devel libxslt-devel
17+
test_suite: ''
18+
test_suite_label: ''
19+
20+
21+
jobs:
22+
- job: ${{ parameters.job_name }}
23+
24+
pool:
25+
vmImage: ${{ parameters.image_name }}
26+
27+
container:
28+
image: ${{ parameters.container }}
29+
options: '--name ${{ parameters.job_name }} -e LANG=C.UTF-8 -e LC_ALL=C.UTF-8 -v /usr/bin/docker:/tmp/docker:ro'
30+
31+
steps:
32+
- checkout: self
33+
fetchDepth: 10
34+
35+
- script: /tmp/docker exec -t -e LANG=C.UTF-8 -e LC_ALL=C.UTF-8 -u 0 ${{ parameters.job_name }} $(Build.SourcesDirectory)/etc/ci/install_sudo.sh ${{ parameters.package_manager }}
36+
displayName: Install sudo
37+
38+
- script: ${{ parameters.install_packages }}
39+
displayName: Install required packages
40+
41+
- script: ${{ parameters.install_python }}
42+
displayName: 'Install Python ${{ parameters.python_version }}'
43+
44+
- script: ${{ parameters.python_path }} --version
45+
displayName: 'Show Python version'
46+
47+
- script: PYTHON_EXE=${{ parameters.python_path }} ./configure --dev
48+
displayName: 'Run Configure'
49+
50+
- script: ${{ parameters.test_suite }}
51+
displayName: 'Run ${{ parameters.test_suite_label }} tests with py${{ parameters.python_version }} on ${{ parameters.job_name }}'

etc/ci/azure-posix.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ jobs:
3131
displayName: 'Install Python $(python_version)'
3232

3333
- script: |
34+
python --version
3435
python3 --version
3536
python$(python_version) --version
3637
echo "python$(python_version)" > PYTHON_EXECUTABLE

etc/ci/install_sudo.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/bash
2+
set -e
3+
4+
5+
if [[ "$1" == "apt-get" ]]; then
6+
apt-get update -y
7+
apt-get -o DPkg::Options::="--force-confold" install -y sudo
8+
9+
elif [[ "$1" == "yum" ]]; then
10+
yum install -y sudo
11+
12+
elif [[ "$1" == "dnf" ]]; then
13+
dnf install -y sudo
14+
15+
fi

0 commit comments

Comments
 (0)