Skip to content

Commit

Permalink
Merge tag 'weblate-4.18.1'
Browse files Browse the repository at this point in the history
Version 4.18.1

# -----BEGIN PGP SIGNATURE-----
#
# iQIzBAABCAAdFiEEh+Zzr4P2w6DDRMjD9KoinU1YwkUFAmSMRnwACgkQ9KoinU1Y
# wkX19xAAhOg/nlztwbAeG1xoBtRNFhvycxbmyo8pTQ2SmJ2L2PmfvoK5gvfu5mHm
# +DU8/f5zbqZa8gObigEpYOBuWI91m0Egg8HHlAfnOK4on81qeTy54ANmN34AMThm
# 74c/uf/ntf16pYQI0V8ozCe6hFGkV9OjMT+bL9lCBOjyZnOf3nl9kvjrDd0nPvJY
# TU+J+XU2gBPMfDIvFZRYoAf8jejnmfBiAkI6kN/03nyKrG/3A4m6Rn+prnAqrsx/
# g2Fa3e84E2/1tIpgOf4fVBi5CTwKeHooGUVcJfokQtKHKtmW0tdH3/oTOFYlc2Po
# uHIUfC6zbCl3NyrWpU0otEzuAD1Ot8UbNWIk6zdyX6vlPaDAIFn07LxOJzVmeNvg
# NzD/8j217++HJPbWHJErpQ8cg3T3oT0zihcx7UZgNuhw6ne6U7GDXrA7cVwfiunC
# vhvRZi1hvFgRo3I12rhhC4sEcxF2JXiWf5/9L30KLvIrvkH9dRV6TFZFi1U8Ewr6
# ay4yh18cJYBdv95VDLKu8pQCeJoEiWYXQDhBPPcVL8Tb9yHs6Cp3wjAsR9DSVqRk
# pcDGBwxJpbBbyL8dHe83AlF7js9zUCUUAHDanTje5C9hD6P5Oy0hkF2U9N53zn5l
# zgMIh6LYTQvu/w3LYleCvWI93MPSDQdE+974QUNrIYAAWlGKGaU=
# =wbfm
# -----END PGP SIGNATURE-----
# gpg: Signature made 16.06.2023 13:24:44 �rodkowoeuropejski czas letni
# gpg:                using RSA key 87E673AF83F6C3A0C344C8C3F4AA229D4D58C245
# gpg: Can't check signature: No public key
  • Loading branch information
p0358 committed Jun 29, 2023
2 parents 1dfc87b + 8c2e79c commit dd77c9d
Show file tree
Hide file tree
Showing 803 changed files with 1,025,374 additions and 888,373 deletions.
18 changes: 12 additions & 6 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ body:
id: what-happened
attributes:
label: Describe the issue
description: A clear and concise description of the problem you are facing.
description: >
A clear and concise description of the problem you are facing.
Please include important information as file format you are using or add-ons being installed.
placeholder: Tell us what you see!
validations:
required: true
Expand All @@ -33,11 +36,14 @@ body:
id: reproducer
attributes:
label: Steps to reproduce the behavior
value: |
description: What did you do before the problem has appeared?
placeholder: |
1. Go to '...'
2. Scroll down to '...'
3. Click on '...'
4. See error
validations:
required: true
- type: textarea
id: expected
attributes:
Expand Down Expand Up @@ -97,10 +103,10 @@ body:
./manage.py list_versions
```
Using docker-compose:
Using docker-compose-plugin:
```
docker-compose exec --user weblate weblate weblate list_versions
docker compose exec --user weblate weblate weblate list_versions
```
This will properly render without any escaping.
Expand Down Expand Up @@ -129,10 +135,10 @@ body:
./manage.py check --deploy
```
Using docker-compose:
Using docker-compose-plugin:
```
docker-compose exec --user weblate weblate weblate check --deploy
docker compose exec --user weblate weblate weblate check --deploy
```
This will be rendered as console output automatically.
Expand Down
18 changes: 12 additions & 6 deletions .github/ISSUE_TEMPLATE/support_question.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ body:
id: what-happened
attributes:
label: Describe the issue
description: A clear and concise description of the problem you are facing.
description: >
A clear and concise description of the problem you are facing.
Please include important information as file format you are using or add-ons being installed.
placeholder: Tell us what you see!
validations:
required: true
Expand All @@ -37,11 +40,14 @@ body:
id: reproducer
attributes:
label: Steps to reproduce the behavior
value: |
description: What did you do before the problem has appeared?
placeholder: |
1. Go to '...'
2. Scroll down to '...'
3. Click on '...'
4. See error
validations:
required: true
- type: textarea
id: expected
attributes:
Expand Down Expand Up @@ -101,10 +107,10 @@ body:
./manage.py list_versions
```
Using docker-compose:
Using docker-compose-plugin:
```
docker-compose exec --user weblate weblate weblate list_versions
docker compose exec --user weblate weblate weblate list_versions
```
This will properly render without any escaping.
Expand Down Expand Up @@ -133,10 +139,10 @@ body:
./manage.py check --deploy
```
Using docker-compose:
Using docker-compose-plugin:
```
docker-compose exec --user weblate weblate weblate check --deploy
docker compose exec --user weblate weblate weblate check --deploy
```
This will be rendered as console output automatically.
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ jobs:
contents: read # for actions/checkout to fetch code
security-events: write # for github/codeql-action/autobuild to send a status report
name: Analyze
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/[email protected].2
uses: actions/[email protected].3
- name: Install apt dependencies
run: sudo ./ci/apt-install $CI_DATABASE
- name: Set up Python
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ permissions:

jobs:
build:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
name: Sphinx

steps:
Expand Down Expand Up @@ -45,7 +45,7 @@ jobs:
path: docs/_build/html

linkcheck:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
name: Linkcheck

steps:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/licenses-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ on:

jobs:
licenses-update:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
permissions:
contents: write
pull-requests: write

steps:
- uses: actions/[email protected].2
- uses: actions/[email protected].3
with:
submodules: true
- uses: actions/cache@v3
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/migrations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ permissions:

jobs:
migrations:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
strategy:
matrix:
database: [postgresql, mysql]
Expand All @@ -43,7 +43,9 @@ jobs:
- name: Set up Python 3.7
uses: actions/setup-python@v4
with:
python-version: 3.7
python-version: |
3.7
3.11
cache: pip
cache-dependency-path: '**/requirements*.txt'
- name: Install pip dependencies
Expand Down Expand Up @@ -87,11 +89,13 @@ jobs:
run: ./ci/run-migrate 4.15
- name: Migrate from 4.16
run: ./ci/run-migrate 4.16
- name: Migrate from 4.17
run: ./ci/run-migrate 4.17
- name: Coverage
run: |
coverage combine
coverage xml
- uses: codecov/[email protected].2
- uses: codecov/[email protected].4
with:
token: ${{secrets.CODECOV_TOKEN}}
flags: migrations
Expand Down
44 changes: 44 additions & 0 deletions .github/workflows/pylint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Copyright © Michal Čihař <[email protected]>
#
# SPDX-License-Identifier: CC0-1.0

# This file is maintained in https://github.com/WeblateOrg/meta/
name: pylint check

on:
push:
branches-ignore:
- deepsource-fix-**
- renovate/**
- weblate
pull_request:

permissions:
contents: read

jobs:
pylint:
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: |
~/.cache/pip
~/.cache/pre-commit
key: ${{ runner.os }}-pre-commit-${{ hashFiles('**/requirements*.txt') }}-${{ hashFiles('.pre-commit-config.yaml') }}
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip wheel
pip install -r requirements-lint.txt
- name: Add pylint annotator
uses: pr-annotators/[email protected]

- name: Run pylint
run: pylint weblate/
2 changes: 1 addition & 1 deletion .github/workflows/rundev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ permissions:

jobs:
rundev:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
name: Test development Docker
env:
PYTHONUNBUFFERED: 1
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/schema-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ on:

jobs:
jsonschema-update:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
permissions:
contents: write
pull-requests: write

steps:
- uses: actions/[email protected].2
- uses: actions/[email protected].3
- name: Set up Python
uses: actions/setup-python@v4
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/scorecards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/[email protected].2
uses: actions/[email protected].3
with:
persist-credentials: false

Expand Down Expand Up @@ -61,6 +61,6 @@ jobs:

# Upload the results to GitHub's code scanning dashboard.
- name: Upload to code-scanning
uses: github/codeql-action/upload-sarif@v2.2.12
uses: github/codeql-action/upload-sarif@v2.20.0
with:
sarif_file: results.sarif
28 changes: 28 additions & 0 deletions .github/workflows/semgrep.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Copyright © Michal Čihař <[email protected]>
#
# SPDX-License-Identifier: CC0-1.0

on:
workflow_dispatch: {}
pull_request: {}
push:
branches:
- main
- master
paths:
- .github/workflows/semgrep.yml
schedule:
# random HH:MM to avoid a load spike on GitHub Actions at 00:00
- cron: 50 4 * * *
name: Semgrep
jobs:
semgrep:
name: semgrep/ci
runs-on: ubuntu-20.04
env:
SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }}
container:
image: returntocorp/semgrep
steps:
- uses: actions/checkout@v3
- run: semgrep ci
12 changes: 6 additions & 6 deletions .github/workflows/setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ permissions:

jobs:
setup:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04

env:
PYTHONUNBUFFERED: 1
Expand Down Expand Up @@ -45,13 +45,13 @@ jobs:
run: |
coverage combine
coverage xml
- uses: codecov/[email protected].2
- uses: codecov/[email protected].4
with:
flags: setup
name: setup

pip:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04

env:
PYTHONUNBUFFERED: 1
Expand All @@ -72,12 +72,12 @@ jobs:
- name: Install pip dependencies
run: ./ci/pip-install
- name: Install Weblate
run: pip install .
run: pip install '.[all]'
- name: Check difference
run: diff -ruNqp weblate $(python -c 'import weblate; import os; print(os.path.dirname(weblate.__file__))')

dist:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
env:
PYTHONUNBUFFERED: 1
PYTHONWARNINGS: default,ignore:unclosed:ResourceWarning
Expand Down Expand Up @@ -112,7 +112,7 @@ jobs:
run: |
coverage combine
coverage xml
- uses: codecov/[email protected].2
- uses: codecov/[email protected].4
with:
flags: setup
name: dist
5 changes: 3 additions & 2 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,10 @@ jobs:
with:
days-before-pr-stale: 30
days-before-pr-close: 14
days-before-stale: 10
days-before-close: 4
days-before-stale: 14
days-before-close: 5
exempt-issue-labels: bug,enhancement,documentation,security,dependencies
exempt-pr-labels: backlog
stale-issue-label: wontfix
stale-pr-label: wontfix
repo-token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
Loading

0 comments on commit dd77c9d

Please sign in to comment.