Skip to content

Commit e96d942

Browse files
Merge remote-tracking branch 'skeleton/main'
Signed-off-by: Ayan Sinha Mahapatra <asmahapatra@aboutcode.org>
2 parents fe5264b + fb75a2e commit e96d942

35 files changed

+489
-683
lines changed

.github/workflows/docs-ci.yml

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,34 +4,29 @@ on: [push, pull_request]
44

55
jobs:
66
build:
7-
runs-on: ubuntu-20.04
7+
runs-on: ubuntu-24.04
88

99
strategy:
1010
max-parallel: 4
1111
matrix:
12-
python-version: [3.9]
12+
python-version: [3.13]
1313

1414
steps:
1515
- name: Checkout code
16-
uses: actions/checkout@v3
16+
uses: actions/checkout@v4
1717

1818
- name: Set up Python ${{ matrix.python-version }}
19-
uses: actions/setup-python@v4
19+
uses: actions/setup-python@v5
2020
with:
2121
python-version: ${{ matrix.python-version }}
2222

23-
- name: Give permission to run scripts
24-
run: chmod +x ./docs/scripts/doc8_style_check.sh
25-
2623
- name: Install Dependencies
27-
run: pip install -e .[docs]
24+
run: ./configure --dev
2825

29-
- name: Check Sphinx Documentation build minimally
30-
working-directory: ./docs
31-
run: sphinx-build -E -W source build
26+
- name: Check documentation and HTML for errors and dead links
27+
run: make docs-check
3228

33-
- name: Check for documentation style errors
34-
working-directory: ./docs
35-
run: ./scripts/doc8_style_check.sh
29+
- name: Check documentation for style errors
30+
run: make doc8
3631

3732

.github/workflows/pypi-release.yml

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -21,23 +21,26 @@ on:
2121
jobs:
2222
build-pypi-distribs:
2323
name: Build and publish library to PyPI
24-
runs-on: ubuntu-20.04
24+
runs-on: ubuntu-24.04
2525

2626
steps:
27-
- uses: actions/checkout@v3
27+
- uses: actions/checkout@v4
2828
- name: Set up Python
29-
uses: actions/setup-python@v4
29+
uses: actions/setup-python@v5
3030
with:
31-
python-version: 3.9
31+
python-version: 3.12
3232

33-
- name: Install pypa/build
34-
run: python -m pip install build --user
33+
- name: Install pypa/build and twine
34+
run: python -m pip install --user --upgrade build twine pkginfo
3535

3636
- name: Build a binary wheel and a source tarball
37-
run: python -m build --sdist --wheel --outdir dist/
37+
run: python -m build --wheel --sdist --outdir dist/
38+
39+
- name: Validate wheel and sdis for Pypi
40+
run: python -m twine check dist/*
3841

3942
- name: Upload built archives
40-
uses: actions/upload-artifact@v3
43+
uses: actions/upload-artifact@v4
4144
with:
4245
name: pypi_archives
4346
path: dist/*
@@ -47,17 +50,17 @@ jobs:
4750
name: Create GH release
4851
needs:
4952
- build-pypi-distribs
50-
runs-on: ubuntu-20.04
53+
runs-on: ubuntu-24.04
5154

5255
steps:
5356
- name: Download built archives
54-
uses: actions/download-artifact@v3
57+
uses: actions/download-artifact@v4
5558
with:
5659
name: pypi_archives
5760
path: dist
5861

5962
- name: Create GH release
60-
uses: softprops/action-gh-release@v1
63+
uses: softprops/action-gh-release@v2
6164
with:
6265
draft: true
6366
files: dist/*
@@ -67,17 +70,18 @@ jobs:
6770
name: Create PyPI release
6871
needs:
6972
- create-gh-release
70-
runs-on: ubuntu-20.04
73+
runs-on: ubuntu-24.04
74+
environment: pypi-publish
75+
permissions:
76+
id-token: write
7177

7278
steps:
7379
- name: Download built archives
74-
uses: actions/download-artifact@v3
80+
uses: actions/download-artifact@v4
7581
with:
7682
name: pypi_archives
7783
path: dist
7884

7985
- name: Publish to PyPI
8086
if: startsWith(github.ref, 'refs/tags')
81-
uses: pypa/gh-action-pypi-publish@release/v1
82-
with:
83-
password: ${{ secrets.PYPI_API_TOKEN }}
87+
uses: pypa/gh-action-pypi-publish@release/v1

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,3 +72,5 @@ tcl
7272

7373
# Ignore Jupyter Notebook related temp files
7474
.ipynb_checkpoints/
75+
/.ruff_cache/
76+
.env

.readthedocs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ version: 2
99
build:
1010
os: ubuntu-22.04
1111
tools:
12-
python: "3.11"
12+
python: "3.13"
1313

1414
# Build PDF & ePub
1515
formats:
@@ -26,4 +26,4 @@ python:
2626
- method: pip
2727
path: .
2828
extra_requirements:
29-
- docs
29+
- dev

AUTHORS.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ The following organizations or individuals have contributed to this repo:
1010
- Qingmin Duanmu @qduanmu
1111
- Rakesh Balusa @balusarakesh
1212
- Ravi Jain @JRavi2
13-
- Steven Esser @majurg
13+
- Steven Esser @majurg

MANIFEST.in

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,25 @@
11
graft src
2+
graft docs
3+
graft etc
24

35
include *.LICENSE
46
include NOTICE
57
include *.ABOUT
68
include *.toml
79
include *.yml
810
include *.rst
11+
include *.png
912
include setup.*
1013
include configure*
1114
include requirements*
12-
include .giti*
15+
include .dockerignore
16+
include .gitignore
17+
include .readthedocs.yml
18+
include manage.py
19+
include Dockerfile*
20+
include Makefile
21+
include MANIFEST.in
1322

14-
include extractcode*
23+
include .VERSION
1524

1625
global-exclude *.py[co] __pycache__ *.*~
17-

Makefile

Lines changed: 26 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# ScanCode is a trademark of nexB Inc.
55
# SPDX-License-Identifier: Apache-2.0
66
# See http://www.apache.org/licenses/LICENSE-2.0 for the license text.
7-
# See https://github.com/nexB/skeleton for support or download.
7+
# See https://github.com/aboutcode-org/skeleton for support or download.
88
# See https://aboutcode.org for more information about nexB OSS projects.
99
#
1010

@@ -13,31 +13,33 @@ PYTHON_EXE?=python3
1313
VENV=venv
1414
ACTIVATE?=. ${VENV}/bin/activate;
1515

16-
dev:
17-
@echo "-> Configure the development envt."
18-
./configure --dev
1916

20-
isort:
21-
@echo "-> Apply isort changes to ensure proper imports ordering"
22-
${VENV}/bin/isort --sl -l 100 src tests setup.py
17+
conf:
18+
@echo "-> Install dependencies"
19+
./configure
2320

24-
black:
25-
@echo "-> Apply black code formatter"
26-
${VENV}/bin/black -l 100 src tests setup.py
21+
dev:
22+
@echo "-> Configure and install development dependencies"
23+
./configure --dev
2724

2825
doc8:
2926
@echo "-> Run doc8 validation"
30-
@${ACTIVATE} doc8 --max-line-length 100 --ignore-path docs/_build/ --quiet docs/
27+
@${ACTIVATE} doc8 --quiet docs/ *.rst
3128

32-
valid: isort black
29+
valid:
30+
@echo "-> Run Ruff format"
31+
@${ACTIVATE} ruff format
32+
@echo "-> Run Ruff linter"
33+
@${ACTIVATE} ruff check --fix
3334

3435
check:
35-
@echo "-> Run pycodestyle (PEP8) validation"
36-
@${ACTIVATE} pycodestyle --max-line-length=100 --exclude=.eggs,venv,lib,thirdparty,docs,migrations,settings.py,.cache .
37-
@echo "-> Run isort imports ordering validation"
38-
@${ACTIVATE} isort --sl --check-only -l 100 setup.py src tests .
39-
@echo "-> Run black validation"
40-
@${ACTIVATE} black --check --check -l 100 src tests setup.py
36+
@echo "-> Run Ruff linter validation (pycodestyle, bandit, isort, and more)"
37+
@${ACTIVATE} ruff check
38+
@echo "-> Run Ruff format validation"
39+
@${ACTIVATE} ruff format --check
40+
@$(MAKE) doc8
41+
@echo "-> Run ABOUT files validation"
42+
@${ACTIVATE} about check etc/
4143

4244
clean:
4345
@echo "-> Clean the Python env"
@@ -49,6 +51,10 @@ test:
4951

5052
docs:
5153
rm -rf docs/_build/
52-
@${ACTIVATE} sphinx-build docs/ docs/_build/
54+
@${ACTIVATE} sphinx-build docs/source docs/_build/
55+
56+
docs-check:
57+
@${ACTIVATE} sphinx-build -E -W -b html docs/source docs/_build/
58+
@${ACTIVATE} sphinx-build -E -W -b linkcheck docs/source docs/_build/
5359

54-
.PHONY: conf dev check valid black isort clean test docs
60+
.PHONY: conf dev check valid clean test docs docs-check

NOTICE

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
#
22
# Copyright (c) nexB Inc. and others. All rights reserved.
3-
# ScanCode is a trademark of nexB Inc.
43
# SPDX-License-Identifier: Apache-2.0
4+
#
5+
# Visit https://aboutcode.org and https://github.com/aboutcode-org/ for support and download.
6+
# ScanCode is a trademark of nexB Inc.
57
# See http://www.apache.org/licenses/LICENSE-2.0 for the license text.
68
# See https://github.com/nexB/extractcode for support or download.
79
# See https://aboutcode.org for more information about nexB OSS projects.

azure-pipelines.yml

Lines changed: 39 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -7,50 +7,57 @@
77
jobs:
88
- template: etc/ci/azure-posix.yml
99
parameters:
10-
job_name: ubuntu20_cpython
11-
image_name: ubuntu-20.04
12-
python_versions: ["3.8", "3.9", "3.10", "3.11"]
13-
test_suites:
14-
all:
15-
sudo chmod 0644 /boot/vmlinuz-* && sudo apt install libguestfs-tools
16-
&& venv/bin/pytest -n 2 -vvs
10+
job_name: run_code_checks
11+
image_name: ubuntu-24.04
12+
python_versions: ['3.13']
13+
test_suites:
14+
all: make check
1715

1816
- template: etc/ci/azure-posix.yml
1917
parameters:
20-
job_name: ubuntu22_cpython
21-
image_name: ubuntu-22.04
22-
python_versions: ["3.8", "3.9", "3.10", "3.11"]
23-
test_suites:
24-
all: venv/bin/pytest -n 2 -vvs
18+
job_name: ubuntu22_cpython
19+
image_name: ubuntu-22.04
20+
python_versions: ['3.10', '3.11', '3.12', '3.13', '3.14']
21+
test_suites:
22+
all:
23+
sudo chmod 0644 /boot/vmlinuz-* && sudo apt install libguestfs-tools
24+
&& venv/bin/pytest -n 2 -vvs
25+
- template: etc/ci/azure-posix.yml
26+
parameters:
27+
job_name: ubuntu24_cpython
28+
image_name: ubuntu-24.04
29+
python_versions: ['3.10', '3.11', '3.12', '3.13', '3.14']
30+
test_suites:
31+
all: venv/bin/pytest -n 2 -vvs
2532

2633
- template: etc/ci/azure-posix.yml
2734
parameters:
28-
job_name: macos12_cpython
29-
image_name: macos-12
30-
python_versions: ["3.8", "3.9", "3.10", "3.11"]
31-
test_suites:
32-
all: venv/bin/pytest -n 2 -vvs
35+
job_name: macos13_cpython
36+
image_name: macOS-13
37+
python_versions: ['3.10', '3.11', '3.12', '3.13', '3.14']
38+
test_suites:
39+
all: venv/bin/pytest -n 2 -vvs
3340

3441
- template: etc/ci/azure-posix.yml
3542
parameters:
36-
job_name: macos13_cpython
37-
image_name: macos-13
38-
python_versions: ["3.8", "3.9", "3.10", "3.11"]
39-
test_suites:
40-
all: venv/bin/pytest -n 2 -vvs
43+
job_name: macos14_cpython
44+
image_name: macOS-14
45+
python_versions: ['3.10', '3.11', '3.12', '3.13', '3.14']
46+
test_suites:
47+
all: venv/bin/pytest -n 2 -vvs
4148

4249
- template: etc/ci/azure-win.yml
4350
parameters:
44-
job_name: win2019_cpython
45-
image_name: windows-2019
46-
python_versions: ["3.8", "3.9", "3.10", "3.11"]
47-
test_suites:
48-
all: venv\Scripts\pytest -n 2 -vvs
51+
job_name: win2022_cpython
52+
image_name: windows-2022
53+
python_versions: ['3.10', '3.11', '3.12', '3.13', '3.14']
54+
test_suites:
55+
all: venv\Scripts\pytest -n 2 -vvs
4956

5057
- template: etc/ci/azure-win.yml
5158
parameters:
52-
job_name: win2022_cpython
53-
image_name: windows-2022
54-
python_versions: ["3.8", "3.9", "3.10", "3.11"]
55-
test_suites:
56-
all: venv\Scripts\pytest -n 2 -vvs
59+
job_name: win2025_cpython
60+
image_name: windows-2025
61+
python_versions: ['3.10', '3.11', '3.12', '3.13', '3.14']
62+
test_suites:
63+
all: venv\Scripts\pytest -n 2 -vvs

0 commit comments

Comments
 (0)