Skip to content

Commit 30869cb

Browse files
Merge pull request #90 from aboutcode-org/release-prep-32.3.0
Release prep 32.3.0
2 parents 9a7c592 + 5d8bd13 commit 30869cb

39 files changed

+458
-364
lines changed

.github/workflows/docs-ci.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,13 @@ jobs:
2121
python-version: ${{ matrix.python-version }}
2222

2323
- name: Install Dependencies
24-
run: pip install -e .[docs,testing]
24+
run: ./configure --dev
2525

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

30-
- name: Check for documentation style errors
31-
working-directory: ./docs
32-
run: ./scripts/doc8_style_check.sh
29+
- name: Check documentation for style errors
30+
run: make doc8
3331

3432
- name: Check for Code style errors
35-
run: make check-ci
33+
run: make check

.github/workflows/pypi-release.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,15 @@ jobs:
3030
with:
3131
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 build twine
3535

3636
- name: Build a binary wheel and a source tarball
3737
run: python -m build --sdist --wheel --outdir dist/
3838

39+
- name: Validate wheel and sdis for Pypi
40+
run: python -m twine check dist/*
41+
3942
- name: Upload built archives
4043
uses: actions/upload-artifact@v4
4144
with:

.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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ python:
2626
- method: pip
2727
path: .
2828
extra_requirements:
29-
- docs
29+
- dev

AUTHORS.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ The following organizations or individuals have contributed to this repo:
1111
- Saravanan G @SaravananOffl
1212
- Sebastian Schuberth @sschuberth
1313
- Steven Esser @majurg
14+
- Theodore Aptekarev @piiq
1415
- Thomas Druez @tdruez

CHANGELOG.rst

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
Release notes
22
=============
33

4+
Version 32.3.0 - (2025-03-06)
5+
-----------------------------
6+
7+
- Fix ``click`` compatibililty issues.
8+
https://github.com/aboutcode-org/commoncode/pull/89
9+
https://github.com/aboutcode-org/commoncode/pull/86
10+
411
Version 32.2.1 - (2025-03-06)
512
-----------------------------
613

@@ -35,7 +42,8 @@ Version 32.0.0 - (2024-09-05)
3542
Version 31.2.1 - (2024-05-16)
3643
-----------------------------
3744

38-
- Remove ``commoncode.system.get_etc_os_release_info`` and replace it with ``commoncode.distro_os_release_parser``.
45+
- Remove ``commoncode.system.get_etc_os_release_info`` and replace it with
46+
``commoncode.distro_os_release_parser``.
3947

4048

4149
Version 31.2.0 - (2024-05-16)

MANIFEST.in

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,26 @@
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*
1215
include .giti*
16+
include .dockerignore
17+
include .gitignore
18+
include .readthedocs.yml
19+
include manage.py
20+
include Dockerfile*
21+
include Makefile
22+
include MANIFEST.in
1323

14-
global-exclude *.py[co] __pycache__ *.*~
24+
include .VERSION
1525

26+
global-exclude *.py[co] __pycache__ *.*~

Makefile

Lines changed: 25 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -13,39 +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,scripts,tests,migrations,settings.py,.cache .
37-
@echo "-> Run isort imports ordering validation"
38-
@${ACTIVATE} isort --sl -l 100 src tests setup.py --check-only
39-
@echo "-> Run black validation"
40-
@${ACTIVATE} black --check -l 100 src tests setup.py
41-
42-
check-ci:
43-
@echo "-> Run pycodestyle (PEP8) validation"
44-
pycodestyle --max-line-length=100 --exclude=.eggs,venv,lib,thirdparty,docs,scripts,tests,migrations,settings.py,.cache .
45-
@echo "-> Run isort imports ordering validation"
46-
isort --sl -l 100 src tests setup.py --check-only
47-
@echo "-> Run black validation"
48-
black --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/
4943

5044
clean:
5145
@echo "-> Clean the Python env"
@@ -57,6 +51,10 @@ test:
5751

5852
docs:
5953
rm -rf docs/_build/
60-
@${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/
6159

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

azure-pipelines.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ jobs:
4343

4444
- template: etc/ci/azure-win.yml
4545
parameters:
46-
job_name: win2019_cpython
47-
image_name: windows-2019
46+
job_name: win2025_cpython
47+
image_name: windows-2025
4848
python_versions: ["3.9", "3.10", "3.11", "3.12", "3.13"]
4949
test_suites:
5050
all: venv\Scripts\pytest -n 2 -vvs

configure

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,13 @@ CLI_ARGS=$1
2929

3030
# Requirement arguments passed to pip and used by default or with --dev.
3131
REQUIREMENTS="--editable . --constraint requirements.txt"
32-
DEV_REQUIREMENTS="--editable .[testing] --constraint requirements.txt --constraint requirements-dev.txt"
33-
DOCS_REQUIREMENTS="--editable .[docs] --constraint requirements.txt"
32+
DEV_REQUIREMENTS="--editable .[dev] --constraint requirements.txt --constraint requirements-dev.txt"
3433

3534
# where we create a virtualenv
3635
VIRTUALENV_DIR=venv
3736

3837
# Cleanable files and directories to delete with the --clean option
39-
CLEANABLE="build dist venv .cache .eggs"
38+
CLEANABLE="build dist venv .cache .eggs *.egg-info docs/_build/ pip-selfcheck.json"
4039

4140
# extra arguments passed to pip
4241
PIP_EXTRA_ARGS=" "
@@ -168,6 +167,7 @@ clean() {
168167
for cln in $CLEANABLE;
169168
do rm -rf "${CFG_ROOT_DIR:?}/${cln:?}";
170169
done
170+
find . -type f -name '*.py[co]' -delete -o -type d -name __pycache__ -delete
171171
set +e
172172
exit
173173
}
@@ -185,7 +185,6 @@ while getopts :-: optchar; do
185185
help ) cli_help;;
186186
clean ) find_python && clean;;
187187
dev ) CFG_REQUIREMENTS="$DEV_REQUIREMENTS";;
188-
docs ) CFG_REQUIREMENTS="$DOCS_REQUIREMENTS";;
189188
esac;;
190189
esac
191190
done

configure.bat

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@
2727

2828
@rem # Requirement arguments passed to pip and used by default or with --dev.
2929
set "REQUIREMENTS=--editable . --constraint requirements.txt"
30-
set "DEV_REQUIREMENTS=--editable .[testing] --constraint requirements.txt --constraint requirements-dev.txt"
31-
set "DOCS_REQUIREMENTS=--editable .[docs] --constraint requirements.txt"
30+
set "DEV_REQUIREMENTS=--editable .[dev] --constraint requirements.txt --constraint requirements-dev.txt"
3231

3332
@rem # where we create a virtualenv
3433
set "VIRTUALENV_DIR=venv"
@@ -76,9 +75,6 @@ if not "%1" == "" (
7675
if "%1" EQU "--dev" (
7776
set "CFG_REQUIREMENTS=%DEV_REQUIREMENTS%"
7877
)
79-
if "%1" EQU "--docs" (
80-
set "CFG_REQUIREMENTS=%DOCS_REQUIREMENTS%"
81-
)
8278
shift
8379
goto again
8480
)

docs/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ SPHINXOPTS ?=
77
SPHINXBUILD ?= sphinx-build
88
SPHINXAUTOBUILD = sphinx-autobuild
99
SOURCEDIR = source
10-
BUILDDIR = build
10+
BUILDDIR = _build
1111

1212
# Put it first so that "make" without argument is like "make help".
1313
help:

docs/scripts/doc8_style_check.sh

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

docs/scripts/sphinx_build_link_check.sh

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

docs/source/conf.py

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

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

2424

@@ -94,7 +94,8 @@
9494
html_show_sphinx = True
9595

9696
# Define CSS and HTML abbreviations used in .rst files. These are examples.
97-
# .. role:: is used to refer to styles defined in _static/theme_overrides.css and is used like this: :red:`text`
97+
# .. role:: is used to refer to styles defined in _static/theme_overrides.css
98+
# and is used like this: :red:`text`
9899
rst_prolog = """
99100
.. |psf| replace:: Python Software Foundation
100101

0 commit comments

Comments
 (0)