Skip to content

Commit c0ce98b

Browse files
Merge pull request #4430 from aboutcode-org/test-pyahocorasick
Support python 3.13 with updated dependencies
2 parents 0e887a7 + 0fe7fc8 commit c0ce98b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+720
-519
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

.github/workflows/scancode-release.yml

Lines changed: 36 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ name: Create ScanCode release archives, then test and publish to GH and PyPI
55
# Summary of the steps:
66
# - Build wheel and sdist for the "main" scancode, then build these for the "mini" flavor
77
# - test each wheel and sdist on every possible OS x Python version combinations
8-
# - Build release app archives, one for each of linux, windows, macos on Python 3.9 to 3.12
8+
# - Build release app archives, one for each of linux, windows, macos on Python 3.9 to 3.13
99
# - test each on its target OS and Python version
1010
# - Create gh-release and upload app archives to release
1111
# - Upload all wheels and sdist to PyPI
@@ -34,7 +34,7 @@ jobs:
3434
strategy:
3535
fail-fast: true
3636
matrix:
37-
pyver: ["3.9", "3.10", "3.11", "3.12"]
37+
pyver: ["3.9", "3.10", "3.11", "3.12", "3.13"]
3838

3939
steps:
4040
- uses: actions/checkout@v4
@@ -74,7 +74,7 @@ jobs:
7474
- name: Set up Python
7575
uses: actions/setup-python@v5
7676
with:
77-
python-version: "3.12"
77+
python-version: "3.13"
7878

7979
- name: Install requirements then build main and mini sdist
8080
run: etc/release/scancode-create-pypi-sdist.sh
@@ -100,7 +100,7 @@ jobs:
100100
strategy:
101101
fail-fast: true
102102
matrix:
103-
pyver: ["3.9", "3.10", "3.11", "3.12"]
103+
pyver: ["3.9", "3.10", "3.11", "3.12", "3.13"]
104104

105105
steps:
106106
- uses: actions/checkout@v4
@@ -135,7 +135,7 @@ jobs:
135135
strategy:
136136
fail-fast: true
137137
matrix:
138-
pyver: ["3.9", "3.10", "3.11", "3.12"]
138+
pyver: ["3.9", "3.10", "3.11", "3.12", "3.13"]
139139

140140
steps:
141141
- uses: actions/checkout@v4
@@ -170,7 +170,7 @@ jobs:
170170
strategy:
171171
fail-fast: true
172172
matrix:
173-
pyver: ["3.9", "3.10", "3.11", "3.12"]
173+
pyver: ["3.9", "3.10", "3.11", "3.12", "3.13"]
174174

175175
steps:
176176
- uses: actions/checkout@v4
@@ -211,7 +211,7 @@ jobs:
211211
- name: Set up Python
212212
uses: actions/setup-python@v5
213213
with:
214-
python-version: "3.12"
214+
python-version: "3.13"
215215

216216
- name: Build source archive with deps
217217
run: etc/release/scancode-create-release-app-sources.sh
@@ -240,7 +240,7 @@ jobs:
240240
fail-fast: true
241241
matrix:
242242
os: [ubuntu-24.04, ubuntu-24.04, macos-13, macos-14]
243-
pyver: ["3.9", "3.10", "3.11", "3.12"]
243+
pyver: ["3.9", "3.10", "3.11", "3.12", "3.13"]
244244

245245
steps:
246246
- uses: actions/checkout@v4
@@ -285,8 +285,8 @@ jobs:
285285
strategy:
286286
fail-fast: true
287287
matrix:
288-
os: [windows-2019, windows-2022]
289-
pyver: ["3.9", "3.10", "3.11", "3.12"]
288+
os: [windows-2025, windows-2022]
289+
pyver: ["3.9", "3.10", "3.11", "3.12", "3.13"]
290290

291291
steps:
292292
- uses: actions/checkout@v4
@@ -331,7 +331,7 @@ jobs:
331331
fail-fast: true
332332
matrix:
333333
os: [ubuntu-24.04, ubuntu-24.04]
334-
pyver: ["3.9", "3.10", "3.11", "3.12"]
334+
pyver: ["3.9", "3.10", "3.11", "3.12", "3.13"]
335335

336336
steps:
337337
- uses: actions/checkout@v4
@@ -349,7 +349,7 @@ jobs:
349349

350350
- name: test install app archive
351351
run: |
352-
for f in `find dist -type f -name "*.tar.gz"`; \
352+
for f in `find dist -type f -name "*.zip"`; \
353353
do \
354354
python etc/release/scancode_release_tests.py $f; \
355355
done
@@ -372,7 +372,7 @@ jobs:
372372
fail-fast: true
373373
matrix:
374374
os: [macos-13, macos-14]
375-
pyver: ["3.9", "3.10", "3.11", "3.12"]
375+
pyver: ["3.9", "3.10", "3.11", "3.12", "3.13"]
376376

377377
steps:
378378
- uses: actions/checkout@v4
@@ -390,7 +390,7 @@ jobs:
390390

391391
- name: test install app archive
392392
run: |
393-
for f in `find dist -type f -name "*.tar.gz"`; \
393+
for f in `find dist -type f -name "*.zip"`; \
394394
do \
395395
python etc/release/scancode_release_tests.py $f; \
396396
done
@@ -412,8 +412,8 @@ jobs:
412412
strategy:
413413
fail-fast: true
414414
matrix:
415-
os: [windows-2019, windows-2022]
416-
pyver: ["3.9", "3.10", "3.11", "3.12"]
415+
os: [windows-2025, windows-2022]
416+
pyver: ["3.9", "3.10", "3.11", "3.12", "3.13"]
417417

418418
steps:
419419
- uses: actions/checkout@v4
@@ -485,6 +485,12 @@ jobs:
485485
name: macos_app_py_3.12
486486
path: dist
487487

488+
- name: Download a single artifact macos_app for python 3.13
489+
uses: actions/download-artifact@v4
490+
with:
491+
name: macos_app_py_3.13
492+
path: dist
493+
488494
- name: Download a single artifact linux_app for python 3.9
489495
uses: actions/download-artifact@v4
490496
with:
@@ -509,6 +515,12 @@ jobs:
509515
name: linux_app_py_3.12
510516
path: dist
511517

518+
- name: Download a single artifact linux_app for python 3.13
519+
uses: actions/download-artifact@v4
520+
with:
521+
name: linux_app_py_3.13
522+
path: dist
523+
512524
- name: Download a single artifact windows_app for python 3.9
513525
uses: actions/download-artifact@v4
514526
with:
@@ -533,6 +545,12 @@ jobs:
533545
name: windows_app_py_3.12
534546
path: dist
535547

548+
- name: Download a single artifact windows_app for python 3.13
549+
uses: actions/download-artifact@v4
550+
with:
551+
name: windows_app_py_3.13
552+
path: dist
553+
536554
- name: Mock GH release
537555
run: |
538556
ls -al dist
@@ -559,13 +577,13 @@ jobs:
559577
strategy:
560578
fail-fast: true
561579
matrix:
562-
dist_names: ["wheels-3.9", "wheels-3.10", "wheels-3.11", "wheels-3.12", sdists]
580+
dist_names: ["wheels-3.9", "wheels-3.10", "wheels-3.11", "wheels-3.12", "wheels-3.13", sdists]
563581

564582
steps:
565583
- name: Set up Python
566584
uses: actions/setup-python@v5
567585
with:
568-
python-version: 3.9
586+
python-version: 3.13
569587

570588
- name: Download a single artifact
571589
uses: actions/download-artifact@v4

.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

AUTHORS.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ The following organizations or individuals have contributed to ScanCode:
4848
- Mankaran Singh @MankaranSingh
4949
- Marc-Etienne Vargenau @vargenau
5050
- Martin Petkov @MartinPetkov
51-
- Maximilian Huber @maxhbr
51+
- Maximilian Huber @maxhbr
5252
- Michael Herzog @mjherzog
5353
- Michael Rupprecht @michaelrup
5454
- Mike Rombout @mrombout
@@ -89,15 +89,15 @@ The following organizations or individuals have contributed to ScanCode:
8989
- Thomas Druez @tdruez
9090
- Thomas Steenbergen @tsteenbe
9191
- Thorsten Harter @ThorstenHarter
92-
- Till Jaeger @LeChasseur
92+
- Till Jaeger @LeChasseur
9393
- Tobias Furuholm @furuholm
9494
- Tushar Goel @TG1999
9595
- Tushar Mittal @techytushar
9696
- Tushar Upadhyay @tushar912
9797
- Van Lindberg @VanL
9898
- Vibhu Agarwal @Vibhu-Agarwal
9999
- Viktor Tiulpin @tiulpin
100-
- Vinay Kumar Singh @Vinay0001
100+
- Vinay Kumar Singh @Vinay0001
101101
- Virag Umathe @viragumathe5
102102
- Yash D. Saraf @yashdsaraf
103103
- Yash Nisar @yash-nisar

0 commit comments

Comments
 (0)