Skip to content

Commit

Permalink
Merge pull request #4 from rivosinc/dev/kbroch/merge-upstream2
Browse files Browse the repository at this point in the history
merge with upstream
  • Loading branch information
kbroch-rivosinc authored Jan 30, 2025
2 parents 476d7ad + e6d6b3d commit 16db23c
Show file tree
Hide file tree
Showing 112 changed files with 20,733 additions and 16,389 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
# ===========================================================================
docker_test:
name: Test the Docker images
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v2
# Dockerfile
Expand All @@ -46,7 +46,7 @@ jobs:
# ===========================================================================
docker_push_tag:
name: Push Docker images for tags to Docker Hub
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
# Depends on successful Docker build/test
needs:
- docker_test
Expand Down
15 changes: 9 additions & 6 deletions .github/workflows/gettext.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:

jobs:
create-pot:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v3
with:
Expand All @@ -23,8 +23,11 @@ jobs:
# exception to the branch protection, so we'll use that account's
# token to push to the main branch.
token: ${{ secrets.FSFE_SYSTEM_TOKEN }}
- name: Install gettext and wlc
run: sudo apt-get install -y gettext wlc
- name: Install poetry, gettext, and wlc
run: sudo apt-get install -y python3-poetry gettext wlc
# We mostly install reuse to install the click dependency.
- name: Install reuse
run: poetry install --no-interaction --only main
- name: Lock Weblate
run: |
wlc --url https://hosted.weblate.org/api/ --key ${{secrets.WEBLATE_KEY }} lock fsfe/reuse-tool
Expand All @@ -34,14 +37,14 @@ jobs:
- name: Pull Weblate translations
run: git pull origin main
- name: Create .pot file
run: make create-pot
run: poetry run make create-pot
# Normally, POT-Creation-Date changes in two locations. Check if the diff
# includes more than just those two lines.
- name: Check if sufficient lines were changed
id: diff
run:
echo "changed=$(git diff -U0 | grep '^[+|-][^+|-]' | grep -Ev
'^[+-]("POT-Creation-Date|#:)' | wc -l)" >> $GITHUB_OUTPUT
echo "changed=$(git diff -U0 po/reuse.pot | grep '^[+|-][^+|-]' | grep
-Ev '^[+-]("POT-Creation-Date|#:)' | wc -l)" >> $GITHUB_OUTPUT
- name: Commit and push updated reuse.pot
if: ${{ steps.diff.outputs.changed != '0' }}
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/jujutsu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ on:
- "tests/**.py"
jobs:
test-jujutsu:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v2
- name: Set up Python
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/license_list_up_to_date.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:

jobs:
license-list-up-to-date:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pijul.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ on:
- "tests/**.py"
jobs:
test-pijul:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v2
- name: Set up Python
Expand Down
32 changes: 16 additions & 16 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ jobs:
# do not abort the whole test job if one combination in the matrix fails
fail-fast: false
matrix:
python-version: ["3.8", "3.12"]
os: [ubuntu-22.04]
python-version: ["3.9", "3.13"]
os: [ubuntu-24.04]
include:
- python-version: "3.8"
- python-version: "3.9"
os: macos-latest
- python-version: "3.8"
- python-version: "3.9"
os: windows-latest

steps:
Expand All @@ -37,19 +37,19 @@ jobs:
- name: Install dependencies
run: |
pip install poetry~=1.3.0
poetry install --no-interaction --only main,test
poetry install --no-interaction --only main,test --all-extras
- name: Run tests with pytest
run: |
poetry run pytest --cov=reuse
pylint:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
python-version: 3.9
- name: Install dependencies
run: |
pip install poetry~=1.3.0
Expand All @@ -59,13 +59,13 @@ jobs:
poetry run pylint src/reuse/ tests/
black:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
python-version: 3.9
- name: Install dependencies
run: |
pip install poetry~=1.3.0
Expand All @@ -76,13 +76,13 @@ jobs:
poetry run black --check .
mypy:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
python-version: 3.9
- name: Install dependencies
run: |
pip install poetry~=1.3.0
Expand All @@ -92,7 +92,7 @@ jobs:
poetry run mypy
prettier:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
container: node:latest
steps:
- uses: actions/checkout@v2
Expand All @@ -102,13 +102,13 @@ jobs:
run: npx prettier --check .

reuse:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
python-version: 3.9
- name: Install dependencies
run: |
pip install poetry~=1.3.0
Expand All @@ -117,13 +117,13 @@ jobs:
run: make reuse

docs:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
python-version: 3.9
- name: Install dependencies
run: |
pip install poetry~=1.3.0
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/third_party_lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ on:

jobs:
third-party-lint:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
strategy:
# do not abort the whole test job if one combination in the matrix fails
fail-fast: false
Expand All @@ -33,7 +33,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
python-version: 3.9
- name: Install dependencies
run: |
pip install poetry~=1.3.0
Expand All @@ -45,7 +45,7 @@ jobs:
matrix.repo }}

third-party-lint-expect-failure:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
strategy:
# do not abort the whole test job if one combination in the matrix fails
fail-fast: false
Expand All @@ -56,7 +56,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
python-version: 3.9
- name: Install dependencies
run: |
pip install poetry~=1.3.0
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,6 @@ dmypy.json

# End of https://www.gitignore.io/api/linux,python

po/reuse.pot
*.mo
docs/api/
docs/history.md
Expand Down
14 changes: 11 additions & 3 deletions .pre-commit-hooks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,22 @@
# SPDX-License-Identifier: GPL-3.0-or-later

- id: reuse
name: reuse
name: reuse lint
entry: reuse
args: ["lint"]
language: python
pass_filenames: false
description:
"Lint the project directory for compliance with the REUSE Specification"
language_version: python3
"Lint the project directory for compliance with the REUSE Specification."

- id: reuse-lint-file
name: reuse lint-file
entry: reuse
args: ["lint-file"]
language: python
description:
"Lint the changed files for compliance with the REUSE Specification."

- id: reuse-annotate
name: reuse-annotate
entry: "reuse annotate"
Expand Down
4 changes: 3 additions & 1 deletion .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ jobs=0

disable=duplicate-code,
logging-fstring-interpolation,
implicit-str-concat
implicit-str-concat,
inconsistent-quotes,
too-many-positional-arguments
enable=useless-suppression

[REPORTS]
Expand Down
2 changes: 1 addition & 1 deletion .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ build:
# This should mirror the configuration in ./.github/workflows/test.yaml
os: ubuntu-22.04
tools:
python: "3.8"
python: "3.9"
jobs:
post_create_environment:
- python -m pip install poetry
Expand Down
15 changes: 4 additions & 11 deletions AUTHORS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,7 @@ Contributors
- Luca Bonissi <lucabon@fsfe.org>
- José Vieira <jvieira33@sapo.pt>
- flow <adolflow@sindominio.net>
- pd <euklade@gmail.com>
- Roberto Bauglir <bauglir@fsfe.org>
- T. E. Kalayci <tekrei@member.fsf.org>
- John Mulligan <jmulligan@redhat.com>
- Kevin Broch <kbroch@rivosinc.com>
- Benoit Rolandeau <benoit.rolandeau@allcircuits.com>
Expand Down Expand Up @@ -73,14 +71,12 @@ Contributors
- Keith Maxwell <keith.maxwell@gmail.com>
- Kirill Elagin <kirelagin@gmail.com>
- Kristoffer Grundström <swedishsailfishosuser@tutanota.com>
- Luca Bonissi <lucabon@fsfe.org>
- Manlio Perillo <manlio.perillo@gmail.com>
- Mauro Aranda <maurooaranda@gmail.com>
- Maxim Cournoyer <maxim.cournoyer@gmail.com>
- Mikko Piuhola <mikkopiu@users.noreply.github.com>
- Raniere Silva <Raniere.CostadaSilva@gesis.org>
- Robert Cohn <rscohn2@gmail.com>
- Sebastian Schuberth <sschuberth@fsfe.org>
- Simon Schliesky <p-github@schliesky.com>
- Stefan Bakker <s.bakker777@gmail.com>
- T. E. Kalayci <tekrei@member.fsf.org>
Expand All @@ -93,12 +89,9 @@ Contributors
- mdolling <mdolling@gfz-potsdam.de>
- psykose <alice@ayaya.dev>
- Adrián Chaves <adrian@chaves.io>
- Alvar <8402811+oxzi@users.noreply.github.com>
- Alvar Penning <post@0x21.biz>
- Aminda Suomalainen <suomalainen+git@mikaela.info>
- Andrey Bienkowski <hexagon-recursion@posteo.net>
- André Ockers <ao@fsfe.org>
- Anthony Loiseau <anthony@loiseau.fr>
- Arnout Engelen <arnout@bzzt.net>
- Basil Peace <grv87@yandex.ru>
- Benedikt Fein <fein@fim.uni-passau.de>
Expand All @@ -119,7 +112,7 @@ Contributors
- Johannes Keyser <joke@fsfe.org>
- Jon Burdo <jon@jonburdo.com>
- Josef Andersson <josef.andersson@gmail.com>
- José Vieira <jvieira33@sapo.pt>
- Kerry McAdams <github@klmcadams>
- Kevin Meagher <11620178+kjmeagher@users.noreply.github.com>
- Lars Francke <lars.francke@stackable.de>
- Libor Pechacek <lpechacek@gmx.com>
Expand All @@ -135,19 +128,19 @@ Contributors
- Olaf Meeuwissen <paddy-hack@member.fsf.org>
- Pep <socialkuma@hotmail.com>
- Philipp Zabel <philipp.zabel@gmail.com>
- Roberto Bauglir <bauglir@fsfe.org>
- Romain Tartière <romain@blogreen.org>
- Ryan Schmidt <git@ryandesign.com>
- Sebastian Crane <seabass@fsfe.org>
- T. E. Kalaycı <tekrei@tutanota.com>
- Sebastien Morais <github@SMoraisAnsys>
- Vishesh Handa <me@vhanda.in>
- Vlad-Stefan Harbuz <vlad@vladh.net>
- Yaman Qalieh <ybq987@gmail.com>
- criadoperez <alejandro@criadoperez.com>
- ethulhu <eth.morgan@gmail.com>
- nautilusx <translate@disroot.org>
- pukkamustard <pukkamustard@users.noreply.github.com>
- rajivsunar07 <56905029+rajivsunar07@users.noreply.github.com>
- Сергій <sergiy.goncharuk.1@gmail.com>
- Mersho <code.rezaei@gmail.com>
- Skyler Grey <sky@a.starrysky.fyi>
- Emil Velikov <emil.l.velikov@gmail.com>
- Linnea Gräf <nea@nea.moe>
Loading

0 comments on commit 16db23c

Please sign in to comment.