Adding upstream version 4.6.0+dfsg.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
f3ad83a1a5
commit
167a3f8553
275 changed files with 30423 additions and 0 deletions
29
.github/workflows/bumpversion.yml
vendored
Normal file
29
.github/workflows/bumpversion.yml
vendored
Normal file
|
@ -0,0 +1,29 @@
|
|||
name: Bump version
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
bump-version:
|
||||
if: "!startsWith(github.event.head_commit.message, 'bump:')"
|
||||
runs-on: ubuntu-latest
|
||||
name: "Bump version and create changelog with commitizen"
|
||||
steps:
|
||||
- name: Check out
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
token: "${{ secrets.PERSONAL_ACCESS_TOKEN }}"
|
||||
- name: Create bump and changelog
|
||||
uses: commitizen-tools/commitizen-action@master
|
||||
with:
|
||||
github_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
|
||||
changelog_increment_filename: body.md
|
||||
- name: Release
|
||||
uses: ncipollo/release-action@v1
|
||||
with:
|
||||
tag: v${{ env.REVISION }}
|
||||
bodyFile: "body.md"
|
||||
skipIfReleaseExists: true
|
78
.github/workflows/docspublish.yml
vendored
Normal file
78
.github/workflows/docspublish.yml
vendored
Normal file
|
@ -0,0 +1,78 @@
|
|||
name: Publish documentation
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
update-cli-screenshots:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
|
||||
fetch-depth: 0
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: "3.x"
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install -U pip poetry poethepoet
|
||||
poetry --version
|
||||
poetry install --only main,script
|
||||
- name: Update CLI screenshots
|
||||
run: |
|
||||
poetry doc:screenshots
|
||||
- name: Commit and push updated CLI screenshots
|
||||
run: |
|
||||
git config --global user.name "github-actions[bot]"
|
||||
git config --global user.email "github-actions[bot]@users.noreply.github.com"
|
||||
git add docs/images/cli_help
|
||||
|
||||
if [[ -n "$(git status --porcelain)" ]]; then
|
||||
git commit -m "docs(cli/screenshots): update CLI screenshots" -m "[skip ci]"
|
||||
git push
|
||||
else
|
||||
echo "No changes to commit. Skipping."
|
||||
fi
|
||||
|
||||
publish-documentation:
|
||||
runs-on: ubuntu-latest
|
||||
needs: update-cli-screenshots
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
token: "${{ secrets.PERSONAL_ACCESS_TOKEN }}"
|
||||
fetch-depth: 0
|
||||
- name: Pull latest changes
|
||||
run: |
|
||||
git pull origin master
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: "3.x"
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install -U pip poetry poethepoet
|
||||
poetry --version
|
||||
poetry install --no-root --only documentation
|
||||
- name: Build docs
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
poetry doc:build
|
||||
- name: Generate Sponsors 💖
|
||||
uses: JamesIves/github-sponsors-readme-action@v1
|
||||
with:
|
||||
token: ${{ secrets.PERSONAL_ACCESS_TOKEN_FOR_ORG }}
|
||||
file: "docs/README.md"
|
||||
- name: Push doc to Github Page
|
||||
uses: peaceiris/actions-gh-pages@v4
|
||||
with:
|
||||
personal_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
|
||||
publish_branch: gh-pages
|
||||
publish_dir: ./site
|
||||
user_name: "github-actions[bot]"
|
||||
user_email: "github-actions[bot]@users.noreply.github.com"
|
32
.github/workflows/homebrewpublish.yml
vendored
Normal file
32
.github/workflows/homebrewpublish.yml
vendored
Normal file
|
@ -0,0 +1,32 @@
|
|||
name: Publish to Homebrew
|
||||
|
||||
on:
|
||||
workflow_run:
|
||||
workflows: ["Upload Python Package"]
|
||||
types:
|
||||
- completed
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: macos-latest
|
||||
if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: "3.x"
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install -U commitizen
|
||||
- name: Set Project version env variable
|
||||
run: |
|
||||
echo "project_version=$(cz version --project)" >> $GITHUB_ENV
|
||||
- name: Update Homebrew formula
|
||||
uses: dawidd6/action-homebrew-bump-formula@v4
|
||||
with:
|
||||
token: ${{secrets.PERSONAL_ACCESS_TOKEN}}
|
||||
formula: commitizen
|
||||
tag: v${{ env.project_version }}
|
||||
force: true
|
23
.github/workflows/label_issues.yml
vendored
Normal file
23
.github/workflows/label_issues.yml
vendored
Normal file
|
@ -0,0 +1,23 @@
|
|||
name: Label issues
|
||||
|
||||
on:
|
||||
issues:
|
||||
types:
|
||||
- opened
|
||||
- reopened
|
||||
|
||||
jobs:
|
||||
label-issue:
|
||||
permissions:
|
||||
issues: write
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/github-script@v7
|
||||
with:
|
||||
script: |
|
||||
github.rest.issues.addLabels({
|
||||
issue_number: context.issue.number,
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
labels: ['issue-status: needs-triage']
|
||||
})
|
19
.github/workflows/label_pr.yml
vendored
Normal file
19
.github/workflows/label_pr.yml
vendored
Normal file
|
@ -0,0 +1,19 @@
|
|||
name: "Label Pull Request"
|
||||
on:
|
||||
- pull_request_target
|
||||
|
||||
jobs:
|
||||
label-pr:
|
||||
permissions:
|
||||
contents: read
|
||||
pull-requests: write
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
sparse-checkout: |
|
||||
.github/labeler.yml
|
||||
sparse-checkout-cone-mode: false
|
||||
- uses: actions/labeler@v5
|
||||
with:
|
||||
configuration-path: .github/labeler.yml
|
38
.github/workflows/pythonpackage.yml
vendored
Normal file
38
.github/workflows/pythonpackage.yml
vendored
Normal file
|
@ -0,0 +1,38 @@
|
|||
name: Python package
|
||||
|
||||
on: [workflow_dispatch, pull_request]
|
||||
|
||||
jobs:
|
||||
python-check:
|
||||
strategy:
|
||||
matrix:
|
||||
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
|
||||
platform: [ubuntu-20.04, macos-latest, windows-latest]
|
||||
runs-on: ${{ matrix.platform }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Set up Python ${{ matrix.python-version }}
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install -U pip poetry poethepoet
|
||||
poetry --version
|
||||
poetry install --only main,linters,test
|
||||
- name: Run tests and linters
|
||||
run: |
|
||||
git config --global user.email "action@github.com"
|
||||
git config --global user.name "GitHub Action"
|
||||
poetry ci
|
||||
shell: bash
|
||||
- name: Upload coverage to Codecov
|
||||
if: runner.os == 'Linux'
|
||||
uses: codecov/codecov-action@v5
|
||||
with:
|
||||
token: ${{ secrets.CODECOV_TOKEN }}
|
||||
files: ./coverage.xml
|
||||
flags: unittests
|
||||
name: codecov-umbrella
|
28
.github/workflows/pythonpublish.yml
vendored
Normal file
28
.github/workflows/pythonpublish.yml
vendored
Normal file
|
@ -0,0 +1,28 @@
|
|||
name: Upload Python Package
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- "v*"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
token: "${{ secrets.PERSONAL_ACCESS_TOKEN }}"
|
||||
fetch-depth: 0
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: "3.x"
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install -U pip poetry
|
||||
poetry --version
|
||||
- name: Publish
|
||||
env:
|
||||
POETRY_HTTP_BASIC_PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
|
||||
POETRY_HTTP_BASIC_PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
|
||||
run: poetry publish --build
|
Loading…
Add table
Add a link
Reference in a new issue