Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 23e9dfc

Browse files
authored
Merge branch '3.9' into extending-extending
2 parents 0f231c4 + c4ac4df commit 23e9dfc

File tree

231 files changed

+6848
-6165
lines changed

Some content is hidden

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

231 files changed

+6848
-6165
lines changed

.github/pr-title-checker-config.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"LABEL": {
3+
"name": "Title needs formatting.",
4+
"color": "EEEEEE"
5+
},
6+
"CHECKS": {
7+
"prefixes": ["traduction de", "Traduction de", "Fix fuzzies in", "Fix fuzzies dans"],
8+
"regexp": "\\.po",
9+
"ignoreLabels": ["meta"]
10+
}
11+
}

.github/stale.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Number of days of inactivity before an issue becomes stale
2+
daysUntilStale: 60
3+
# Number of days of inactivity before a stale issue is closed
4+
daysUntilClose: 14
5+
# Issues with these labels will never be considered stale
6+
exemptLabels:
7+
- meta
8+
- on hold
9+
# Label to use when marking an issue as stale
10+
staleLabel: stale
11+
# Comment to post when marking an issue as stale. Set to `false` to disable
12+
markComment: >
13+
Cette issue/pull request a été automatiquement marquée comme innactive car elle n'a pas eu d'activité récente.
14+
Elle sera fermée si il ne se passe rien dans les 14 jours qui viennent. Merci pour votre contribution
15+
16+
This issue/pull request has been automatically marked as stale because it has not had
17+
recent activity. It will be closed if no further activity occurs. Thank you
18+
for your contributions.
19+
# Comment to post when closing a stale issue. Set to `false` to disable
20+
closeComment: true
21+
22+
# Comment to post when removing the stale label.
23+
unmarkComment: >
24+
Cette issue n'est plus innactive !
25+
This issue isn't stale anymore!

.github/workflows/pr-title-cheker.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: "PR Title Checker"
2+
on:
3+
pull_request:
4+
types:
5+
- opened
6+
- edited
7+
- synchronize
8+
- labeled
9+
- unlabeled
10+
11+
jobs:
12+
check:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: thehanimo/[email protected]
16+
with:
17+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/tests.yml

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
---
2+
3+
name: Tests
4+
5+
on:
6+
push:
7+
branches:
8+
- '*.*'
9+
pull_request:
10+
branches:
11+
- '*.*'
12+
13+
jobs:
14+
pospell:
15+
name: 'Orthographe'
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v2
19+
- name: Install pospell
20+
run: |
21+
sudo apt-get update
22+
sudo apt-get install -y hunspell hunspell-fr-comprehensive
23+
sudo python3 -m pip install pospell
24+
- name: Run pospell
25+
run: pospell -p dict -l fr_FR *.po */*.po
26+
27+
powrap:
28+
name: 'Ensure wrapping consistency'
29+
runs-on: ubuntu-latest
30+
steps:
31+
- uses: actions/checkout@v2
32+
- name: Install powrap
33+
run: |
34+
sudo apt-get update
35+
sudo apt-get install gettext
36+
sudo python3 -m pip install powrap
37+
- name: Run powrap
38+
run: powrap --check --quiet *.po */*.po
39+
40+
padpo:
41+
name: 'Grammaire'
42+
runs-on: ubuntu-latest
43+
steps:
44+
- uses: actions/checkout@v2
45+
- uses: actions/setup-python@v2
46+
with:
47+
python-version: '3.9'
48+
- name: Install padpo
49+
run: |
50+
python3.9 -m venv .venv
51+
.venv/bin/python -m pip install --upgrade pip setuptools wheel
52+
.venv/bin/python -m pip install padpo
53+
- name: Run padpo
54+
run: PATH=$PATH:$PWD/.venv/bin/ padpo -i *.po */*.po 2>&1 | grep -v -Ff padpo.ignore
55+
56+
sphinx:
57+
name: 'Build the doc'
58+
runs-on: ubuntu-latest
59+
steps:
60+
- uses: actions/checkout@v2
61+
- uses: actions/cache@v2
62+
with:
63+
path: '~/cpython/'
64+
key: '1'
65+
- uses: actions/setup-python@v2
66+
with:
67+
python-version: '3.9'
68+
- name: Clone cpython
69+
run: |
70+
if [ ! -d ~/cpython ]; then
71+
git clone https://github.com/python/cpython ~/cpython/
72+
else
73+
git -C ~/cpython fetch
74+
fi
75+
- name: Prepare build hierarchy
76+
run: |
77+
mkdir -p ~/locales/fr/LC_MESSAGES/
78+
cp -uv --parents *.po */*.po ~/locales/fr/LC_MESSAGES/
79+
git -C ~/cpython checkout b30934e9afb0af3f8e2e5f0992445be775b3c630
80+
- name: Prepare venv
81+
run: make -C $HOME/cpython/Doc venv
82+
- name: sphinx-build
83+
run: make -C $HOME/cpython/Doc SPHINXOPTS="-qW -j4 -D locale_dirs=$HOME/locales -D language=fr -D gettext_compact=0" autobuild-dev-html

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ venv/
44
.idea/
55
.DS_Store
66
.pospell/
7+
.potodo/

.potodoignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
venv/

CONTRIBUTING.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,8 @@ index indice (en particulier quand on parle de chaînes
430430
de caractères)
431431
installer installateur
432432
interpreter interpréteur
433+
keyword mot clé
434+
keyword argument argument nommé
433435
library bibliothèque
434436
list comprehension liste en compréhension (liste en intension est
435437
valide, mais nous ne l'utilisons pas)
@@ -833,4 +835,3 @@ Ensuite récupérez les changements depuis Transifex :
833835
git add -p
834836
git commit -m "tx pull"
835837
tx push -t -f --no-interactive --parallel
836-

Makefile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
# from which we generated our po files. We use it here so when we
2222
# test build, we're building with the .rst files that generated our
2323
# .po files.
24-
CPYTHON_CURRENT_COMMIT := d7cd1164c18dbf78380ce4c95bf46c7bb0ac0bb7
24+
CPYTHON_CURRENT_COMMIT := b30934e9afb0af3f8e2e5f0992445be775b3c630
2525

2626
CPYTHON_PATH := ../cpython/
2727

@@ -30,8 +30,6 @@ BRANCH := 3.9
3030

3131
EXCLUDED := whatsnew/ c-api/
3232

33-
.SILENT:
34-
3533
# Internal variables
3634

3735
UPSTREAM := https://github.com/python/cpython

README.rst

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,27 @@ Traduction française de la documentation Python
1010
.. |progression| image:: https://img.shields.io/badge/dynamic/json.svg?label=fr&query=%24.fr&url=http%3A%2F%2Fgce.zhsj.me%2Fpython/newest
1111
:width: 45%
1212

13+
Ce projet se fait en collaboration avec l'`AFPy
14+
<https://www.afpy.org>`_ (Association Francophone Python) qui fait la
15+
promotion du langage de développement Python dans l'ensemble des
16+
nations francophones à travers des événements accessibles à tous comme
17+
l'édition francophone de la PyCon nommée la `PyConFR
18+
<https://pycon.fr>`_, de nombreux meetups dans plusieurs villes et le
19+
maintien de nombreux projets communautaires pour enrichir
20+
l'écosystème.
1321

1422
Contribuer à la traduction
1523
--------------------------
1624

1725
Vous pouvez contribuer :
1826

1927
- en proposant des *pull requests* Github (solution recommandée) ;
20-
- en envoyant un correctif à la liste `traductions <https://lists.afpy.org/mailman/listinfo/traductions>`_.
28+
- en nous remontant des erreurs et propositions d'amélioration sur
29+
`discuss.afpy.org <https://discuss.afpy.org>`_ ou la `ml
30+
<https://lists.afpy.org/mailman/listinfo/traductions>`_;
31+
- en devenant `membre <https://www.afpy.org/adhesions>`_ de l'AFPy et
32+
en devenant `sponsor <https://liberapay.com/python-docs-fr>`_ du
33+
repo.
2134

2235
Consultez le
2336
`guide <https://github.com/python/python-docs-fr/blob/3.9/CONTRIBUTING.rst>`_

0 commit comments

Comments
 (0)