Skip to content

Commit 305730d

Browse files
authored
Merge branch 'main' into patch-1
2 parents dcb3add + 102d895 commit 305730d

43 files changed

Lines changed: 11246 additions & 806 deletions

Some content is hidden

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

.github/workflows/translation.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Translation
2+
3+
on:
4+
workflow_run:
5+
workflows:
6+
- Test
7+
branches:
8+
- main
9+
types:
10+
- completed
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Grab the repo src
18+
uses: actions/checkout@v2
19+
20+
- name: Set up Python
21+
uses: actions/setup-python@v2
22+
with:
23+
python-version: 3.9
24+
25+
- name: Install Python tooling
26+
run: python -m pip install --upgrade nox virtualenv
27+
28+
- name: Generate a fresh POT file out of RST documents
29+
run: python -m nox -s translation
30+
31+
- name: Commit the POT file to Git
32+
run: |
33+
git config --local user.email "github-actions[bot]@users.noreply.github.com"
34+
git config --local user.name "github-actions[bot]"
35+
git_hash=$(git rev-parse --short "${GITHUB_SHA}")
36+
git commit -m "Update messages.pot as of version ${git_hash}" locales/messages.pot
37+
38+
- name: Check if any sources have changed since the last update
39+
if: failure()
40+
run: echo "There are no changes to the RST sources since the last update. Nothing to do."
41+
42+
- name: >-
43+
Push the updated POT file back to
44+
${{ github.repository }}@${{ github.event.repository.default_branch }}
45+
on GitHub
46+
run: |
47+
git push --atomic origin HEAD:${{ github.event.repository.default_branch }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ build/
33
.nox
44
*.pyc
55
__pycache__
6+
.DS_Store

.readthedocs.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Read the Docs configuration file
2+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
3+
4+
version: 2
5+
6+
sphinx:
7+
configuration: source/conf.py
8+
# The config file overrides the UI settings:
9+
# https://github.com/pyca/cryptography/issues/5863#issuecomment-792343136
10+
builder: dirhtml
11+
12+
python:
13+
version: 3.8
14+
install:
15+
- requirements: requirements.txt

0 commit comments

Comments
 (0)