Skip to content

Commit d03a558

Browse files
Merge remote-tracking branch 'skeleton/main' into test-pyahocorasick
Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
2 parents a4e6e11 + c1002c2 commit d03a558

29 files changed

+429
-499
lines changed

.github/workflows/docs-ci.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
max-parallel: 4
1414
matrix:
15-
python-version: [3.12]
15+
python-version: [3.13]
1616

1717
steps:
1818
- name: Checkout code
@@ -24,14 +24,12 @@ jobs:
2424
python-version: ${{ matrix.python-version }}
2525

2626
- name: Install Dependencies
27-
run: pip install -e .[docs]
27+
run: ./configure --dev
2828

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

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

3735

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,3 +114,5 @@ selenium
114114

115115
# Ignore extra rpmdb sqlite stuff
116116
rpmdb.sqlite-*
117+
/.ruff_cache/
118+
.env

.readthedocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ python:
3232
- method: pip
3333
path: .
3434
extra_requirements:
35-
- docs
35+
- dev

MANIFEST.in

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
graft src
2+
graft docs
3+
graft etc
24

35
graft thirdparty
46
graft etc/thirdparty
@@ -10,6 +12,7 @@ include *.ABOUT
1012
include *.toml
1113
include *.yml
1214
include *.rst
15+
include *.png
1316
include setup.*
1417
include configure*
1518
include requirements*
@@ -22,7 +25,14 @@ include scancode*
2225
include PYTHON_EXECUTABLE
2326

2427
include Dockerfile
28+
include .dockerignore
29+
include .gitignore
30+
include .readthedocs.yml
31+
include manage.py
32+
include Dockerfile*
33+
include Makefile
34+
include MANIFEST.in
35+
2536
include .VERSION
2637

2738
global-exclude *.py[co] __pycache__ *.*~
28-

Makefile

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
#
3+
# Copyright (c) nexB Inc. and others. All rights reserved.
4+
# ScanCode is a trademark of nexB Inc.
5+
# SPDX-License-Identifier: Apache-2.0
6+
# See http://www.apache.org/licenses/LICENSE-2.0 for the license text.
7+
# See https://github.com/aboutcode-org/skeleton for support or download.
8+
# See https://aboutcode.org for more information about nexB OSS projects.
9+
#
10+
11+
# Python version can be specified with `$ PYTHON_EXE=python3.x make conf`
12+
PYTHON_EXE?=python3
13+
VENV=venv
14+
ACTIVATE?=. ${VENV}/bin/activate;
15+
16+
17+
conf:
18+
@echo "-> Install dependencies"
19+
./configure
20+
21+
dev:
22+
@echo "-> Configure and install development dependencies"
23+
./configure --dev
24+
25+
doc8:
26+
@echo "-> Run doc8 validation"
27+
@${ACTIVATE} doc8 --quiet docs/ *.rst
28+
29+
valid:
30+
@echo "-> Run Ruff format"
31+
@${ACTIVATE} ruff format
32+
@echo "-> Run Ruff linter"
33+
@${ACTIVATE} ruff check --fix
34+
35+
check:
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/
43+
44+
clean:
45+
@echo "-> Clean the Python env"
46+
./configure --clean
47+
48+
test:
49+
@echo "-> Run the test suite"
50+
${VENV}/bin/pytest -vvs
51+
52+
docs:
53+
rm -rf 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/
59+
60+
.PHONY: conf dev check valid clean test docs docs-check

README.rst

Lines changed: 0 additions & 194 deletions
Original file line numberDiff line numberDiff line change
@@ -207,197 +207,3 @@ and `how to extract archives <https://scancode-toolkit.readthedocs.io/en/latest/
207207

208208

209209
Support
210-
=======
211-
212-
If you have a problem, a suggestion or found a bug, please enter a ticket at:
213-
https://github.com/nexB/scancode-toolkit/issues
214-
215-
For discussions and chats, we have:
216-
217-
* an official Gitter channel for `web-based chats
218-
<https://matrix.to/#/#aboutcode-org_discuss:gitter.im>`_.
219-
Gitter is now accessible through `Element <https://element.io/download>`_
220-
or an `IRC bridge <https://matrix-org.github.io/matrix-appservice-irc/latest/usage.html>`_.
221-
There are other AboutCode project-specific channels available there too.
222-
223-
* The discussion channel for `scancode <https://matrix.to/#/#aboutcode-org_scancode:gitter.im>`_
224-
specifically aimed at users and developers using scancode-toolkit.
225-
226-
Source code and downloads
227-
=========================
228-
229-
* https://github.com/nexB/scancode-toolkit/releases
230-
* https://github.com/nexB/scancode-toolkit.git
231-
* https://pypi.org/project/scancode-toolkit/
232-
* https://github.com/nexB/scancode-thirdparty-src.git
233-
* https://github.com/nexB/scancode-plugins.git
234-
* https://github.com/nexB/thirdparty-packages.git
235-
236-
License
237-
=======
238-
239-
* Apache-2.0 as the overall license
240-
* CC-BY-4.0 for reference datasets (initially was in the Public Domain).
241-
* Multiple other secondary permissive or copyleft licenses (LGPL, MIT,
242-
BSD, GPL 2/3, etc.) for third-party components and test suite code and data.
243-
244-
245-
See the NOTICE file and the .ABOUT files that document the origin and license of
246-
the third-party code used in ScanCode for more details.
247-
248-
249-
250-
.. |azure| image:: https://dev.azure.com/nexB/scancode-toolkit/_apis/build/status/nexB.scancode-toolkit?branchName=develop
251-
:target: https://dev.azure.com/nexB/scancode-toolkit/_build/latest?definitionId=1&branchName=develop
252-
:alt: Azure tests status (Linux, macOS, Windows)
253-
254-
.. |docs-rtd| image:: https://readthedocs.org/projects/scancode-toolkit/badge/?version=latest
255-
:target: https://scancode-toolkit.readthedocs.io/en/latest/?badge=latest
256-
:alt: Documentation Status
257-
258-
.. |docs-github-actions| image:: https://github.com/nexB/scancode-toolkit/actions/workflows/docs-ci.yml/badge.svg?branch=develop
259-
:target: https://github.com/nexB/scancode-toolkit/actions/workflows/docs-ci.yml
260-
:alt: Documentation Tests
261-
262-
.. |release-github-actions| image:: https://github.com/nexB/scancode-toolkit/actions/workflows/scancode-release.yml/badge.svg?event=push
263-
:target: https://github.com/nexB/scancode-toolkit/actions/workflows/scancode-release.yml
264-
:alt: Release tests
265-
266-
267-
Acknowledgements, Funding, Support and Sponsoring
268-
--------------------------------------------------------
269-
270-
This project is funded, supported and sponsored by:
271-
272-
- Generous support and contributions from users like you!
273-
- the European Commission NGI programme
274-
- the NLnet Foundation
275-
- the Swiss State Secretariat for Education, Research and Innovation (SERI)
276-
- Google, including the Google Summer of Code and the Google Seasons of Doc programmes
277-
- Mercedes-Benz Group
278-
- Microsoft and Microsoft Azure
279-
- AboutCode ASBL
280-
- nexB Inc.
281-
282-
283-
284-
|europa| |dgconnect|
285-
286-
|ngi| |nlnet|
287-
288-
|aboutcode| |nexb|
289-
290-
291-
This project was funded through the NGI0 Discovery Fund, a fund established by NLnet with financial
292-
support from the European Commission's Next Generation Internet programme, under the aegis of DG
293-
Communications Networks, Content and Technology under grant agreement No 825322.
294-
295-
|ngidiscovery| https://nlnet.nl/project/vulnerabilitydatabase/
296-
297-
298-
This project was funded through the NGI0 Entrust Fund, a fund established by NLnet with financial
299-
support from the European Commission's Next Generation Internet programme, under the aegis of DG
300-
Communications Networks, Content and Technology under grant agreement No 101069594.
301-
302-
|ngizeroentrust| https://nlnet.nl/project/Back2source/
303-
304-
305-
This project was funded through the NGI0 Core Fund, a fund established by NLnet with financial
306-
support from the European Commission's Next Generation Internet programme, under the aegis of DG
307-
Communications Networks, Content and Technology under grant agreement No 101092990.
308-
309-
|ngizerocore| https://nlnet.nl/project/Back2source-next/
310-
311-
312-
This project was funded through the NGI0 Core Fund, a fund established by NLnet with financial
313-
support from the European Commission's Next Generation Internet programme, under the aegis of DG
314-
Communications Networks, Content and Technology under grant agreement No 101092990.
315-
316-
|ngizerocore| https://nlnet.nl/project/FastScan/
317-
318-
319-
This project was funded through the NGI0 Commons Fund, a fund established by NLnet with financial
320-
support from the European Commission's Next Generation Internet programme, under the aegis of DG
321-
Communications Networks, Content and Technology under grant agreement No 101135429. Additional
322-
funding is made available by the Swiss State Secretariat for Education, Research and Innovation
323-
(SERI).
324-
325-
|ngizerocommons| |swiss| https://nlnet.nl/project/MassiveFOSSscan/
326-
327-
This project was funded through the NGI0 Entrust Fund, a fund established by NLnet with financial
328-
support from the European Commission's Next Generation Internet programme, under the aegis of DG
329-
Communications Networks, Content and Technology under grant agreement No 101069594.
330-
331-
|ngizeroentrust| https://nlnet.nl/project/purl2sym/
332-
333-
334-
.. |nlnet| image:: https://nlnet.nl/logo/banner.png
335-
:target: https://nlnet.nl
336-
:height: 50
337-
:alt: NLnet foundation logo
338-
339-
.. |ngi| image:: https://ngi.eu/wp-content/uploads/thegem-logos/logo_8269bc6efcf731d34b6385775d76511d_1x.png
340-
:target: https://ngi.eu35
341-
:height: 50
342-
:alt: NGI logo
343-
344-
.. |nexb| image:: https://nexb.com/wp-content/uploads/2022/04/nexB.svg
345-
:target: https://nexb.com
346-
:height: 30
347-
:alt: nexB logo
348-
349-
.. |europa| image:: https://ngi.eu/wp-content/uploads/sites/77/2017/10/bandiera_stelle.png
350-
:target: http://ec.europa.eu/index_en.htm
351-
:height: 40
352-
:alt: Europa logo
353-
354-
.. |aboutcode| image:: https://aboutcode.org/wp-content/uploads/2023/10/AboutCode.svg
355-
:target: https://aboutcode.org/
356-
:height: 30
357-
:alt: AboutCode logo
358-
359-
.. |swiss| image:: https://www.sbfi.admin.ch/sbfi/en/_jcr_content/logo/image.imagespooler.png/1493119032540/logo.png
360-
:target: https://www.sbfi.admin.ch/sbfi/en/home/seri/seri.html
361-
:height: 40
362-
:alt: Swiss logo
363-
364-
.. |dgconnect| image:: https://commission.europa.eu/themes/contrib/oe_theme/dist/ec/images/logo/positive/logo-ec--en.svg
365-
:target: https://commission.europa.eu/about-european-commission/departments-and-executive-agencies/communications-networks-content-and-technology_en
366-
:height: 40
367-
:alt: EC DG Connect logo
368-
369-
.. |ngizerocore| image:: https://nlnet.nl/image/logos/NGI0_tag.svg
370-
:target: https://nlnet.nl/core
371-
:height: 40
372-
:alt: NGI Zero Core Logo
373-
374-
.. |ngizerocommons| image:: https://nlnet.nl/image/logos/NGI0_tag.svg
375-
:target: https://nlnet.nl/commonsfund/
376-
:height: 40
377-
:alt: NGI Zero Commons Logo
378-
379-
.. |ngizeropet| image:: https://nlnet.nl/image/logos/NGI0PET_tag.svg
380-
:target: https://nlnet.nl/PET
381-
:height: 40
382-
:alt: NGI Zero PET logo
383-
384-
.. |ngizeroentrust| image:: https://nlnet.nl/image/logos/NGI0Entrust_tag.svg
385-
:target: https://nlnet.nl/entrust
386-
:height: 38
387-
:alt: NGI Zero Entrust logo
388-
389-
.. |ngiassure| image:: https://nlnet.nl/image/logos/NGIAssure_tag.svg
390-
:target: https://nlnet.nl/image/logos/NGIAssure_tag.svg
391-
:height: 32
392-
:alt: NGI Assure logo
393-
394-
.. |ngidiscovery| image:: https://nlnet.nl/image/logos/NGI0Discovery_tag.svg
395-
:target: https://nlnet.nl/discovery/
396-
:height: 40
397-
:alt: NGI Discovery logo
398-
399-
400-
401-
402-
403-

azure-pipelines.yml

Lines changed: 3 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ jobs:
155155

156156
- template: etc/ci/azure-win.yml
157157
parameters:
158-
job_name: win2019_cpython_1
158+
job_name: win2025_cpython
159159
image_name: windows-2025
160160
python_versions: ['3.9']
161161
python_architecture: x64
@@ -171,25 +171,6 @@ jobs:
171171
test_suites:
172172
all: venv\Scripts\pytest -n 2 -vvs tests\scancode\test_cli.py --reruns 2
173173

174-
- template: etc/ci/azure-win.yml
175-
parameters:
176-
job_name: win2022_cpython_1
177-
image_name: windows-2022
178-
python_versions: ['3.9']
179-
python_architecture: x64
180-
test_suites:
181-
all: venv\Scripts\pytest -n 2 -vvs tests\scancode\test_cli.py --reruns 2
182-
183-
- template: etc/ci/azure-win.yml
184-
parameters:
185-
job_name: win2022_cpython_2
186-
image_name: windows-2022
187-
python_versions: ['3.9', '3.10', '3.11', '3.12', '3.13']
188-
python_architecture: x64
189-
test_suites:
190-
all: venv\Scripts\pytest -n 2 -vvs tests\scancode\test_cli.py --reruns 2
191-
192-
193174
################################################################################
194175
# Test using many version of Click to work around any regressions in their API
195176
################################################################################
@@ -270,5 +251,5 @@ jobs:
270251

271252
- template: etc/ci/azure-posix-docker.yml
272253
parameters:
273-
job_name: ubuntu22_build_container
274-
image_name: ubuntu-22.04
254+
job_name: ubuntu24_build_container
255+
image_name: ubuntu-24.04

0 commit comments

Comments
 (0)