Skip to content

Commit f7116fb

Browse files
authored
Merge branch '3.11' into whatsnew-3.9
2 parents 591edde + 7b3e5d0 commit f7116fb

File tree

15 files changed

+522
-75
lines changed

15 files changed

+522
-75
lines changed

.github/CODEOWNERS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Notify maintainers for all issues and pull requests
2+
* @egeakman @ardasak

.github/workflows/build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Tests
22

33
on:
4+
workflow_dispatch:
45
push:
56
branches:
67
- '**'

.github/workflows/update_doc.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Update Doc
2+
on:
3+
workflow_dispatch:
4+
schedule:
5+
- cron: '0 0 1 * *'
6+
7+
jobs:
8+
create_pr:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/checkout@v3
13+
14+
- name: Clone CPython Repo
15+
run: git clone https://github.com/python/cpython venv/cpython
16+
17+
- name: Set Up Python 3.11
18+
uses: actions/setup-python@v4
19+
with:
20+
python-version: "3.11"
21+
22+
- name: Install dependencies
23+
run: pip install -r requirements.txt && sudo apt install gettext -y
24+
25+
- name: Run merge.py
26+
run: python merge.py ${GITHUB_REF##*/}
27+
28+
- name: Commit changes
29+
run: |
30+
git config --local user.email "python.docs.tr@gmail.com"
31+
git config --local user.name "python-docs-turkish"
32+
git commit -m "Get changes from CPython Doc for ${{ github.ref_name }}"
33+
34+
- name: Create Pull Request
35+
uses: peter-evans/create-pull-request@v4.2.3
36+
with:
37+
token: ${{ secrets.BOT_PAT }}
38+
commit-message: Get changes from CPython Doc for ${{ github.ref_name }}
39+
author: python-docs-turkish <python.docs.tr@gmail.com>
40+
committer: python-docs-turkish <python.docs.tr@gmail.com>
41+
branch: translation-update-${{ github.ref_name }}
42+
delete-branch: true
43+
title: Translation Update ${{ github.ref_name }}
44+
body: There are some changes, don't forget to translate them!
45+
labels: update
46+
reviewers: |
47+
egeakman
48+
ardasak

.github/workflows/wrap_branch.yml

Lines changed: 18 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,75 +1,47 @@
1-
name: "Wrap all po files in branch"
1+
name: "Wrap All"
22

3-
on: workflow_dispatch
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: '0 0 15 * *'
47

58
jobs:
69
wrap:
710
runs-on: ubuntu-latest
811
steps:
9-
# Checkout the latest code from the repo
1012
- name: Checkout repo
1113
uses: actions/checkout@v3
1214

13-
# Setup which version of Python to use
1415
- name: Set Up Python 3.11
1516
uses: actions/setup-python@v4
1617
with:
1718
python-version: "3.11"
1819

19-
# Update pip
20-
- name: Update pip
20+
# Upgrade pip
21+
- name: Upgrade pip
2122
run: python -m pip install --upgrade pip
2223

23-
# Install requirements.
24-
- name: Install requirements
25-
run: python -m pip install --upgrade -r requirements.txt
26-
2724
# Install dependencies
2825
- name: Install dependencies
29-
run: sudo apt install -y gettext
26+
run: python -m pip install --upgrade -r requirements.txt && sudo apt install -y gettext
3027

3128
# Wrap all po files
3229
- name: Wrap
3330
run: powrap *.po */*.po
3431

35-
- name: Sphinx lint
36-
run: |
37-
sphinx-lint *.po */*.po
38-
39-
# Detect changed files
40-
- name: Detect changed files
41-
run: echo "WRAPPED=$(git diff --name-only | tr '\n' ' ')" >> $GITHUB_ENV
42-
43-
# Commit changes
44-
- name: Commit changes
45-
run: |
46-
array=($WRAPPED)
47-
len=${#array[@]}
48-
if [[ $len -eq 0 ]]; then
49-
echo "No files to commit"
50-
echo "WRAPPED=False" >> $GITHUB_ENV
51-
else
52-
echo "Committing changes"
53-
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
54-
git config --local user.name "github-actions[bot]"
55-
git add ${WRAPPED}
56-
git commit -m "Wrap translations"
57-
echo "WRAPPED=True" >> $GITHUB_ENV
58-
fi
59-
6032
# Create pull request
6133
- name: Create Pull Request
62-
id: cpr
63-
uses: peter-evans/create-pull-request@v4
34+
uses: peter-evans/create-pull-request@v4.2.3
6435
with:
65-
token: ${{ secrets.GITHUB_TOKEN }}
66-
commit-message: Update report
67-
committer: GitHub <noreply@github.com>
68-
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
69-
signoff: false
70-
branch: ${{ github.ref_name }}_wrapped
36+
token: ${{ secrets.BOT_PAT }}
37+
commit-message: 'Wrap all files on: ${{ github.ref_name }}'
38+
branch: ${{ github.ref_name }}-wrapped
7139
delete-branch: true
40+
committer: python-docs-turkish <python.docs.tr@gmail.com>
41+
author: python-docs-turkish <python.docs.tr@gmail.com>
7242
title: 'Wrap branch: ${{ github.ref_name }}'
73-
body: Wrapped all translations on branch ${{ github.ref_name }}.
43+
body: 'Wrapped all files on branch: ${{ github.ref_name }}.'
7444
labels: wrap
75-
draft: false
45+
reviewers: |
46+
egeakman
47+
ardasak

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@ venv/
1212
.DS_Store
1313
.pospell/
1414
.potodo/
15-
.venv/
15+
.venv/
16+
_readthedocs/html/

.readthedocs.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
version: 2
2+
build:
3+
os: "ubuntu-22.04"
4+
tools:
5+
python: "3"
6+
7+
apt_packages:
8+
- make
9+
- gettext
10+
11+
commands:
12+
- git clone https://github.com/python/cpython.git venv/cpython/
13+
- python -m pip install --upgrade pip setuptools wheel
14+
- python -m pip install --upgrade -r requirements.txt -r venv/cpython/Doc/requirements.txt
15+
- make
16+
- mkdir -p _readthedocs/html/
17+
- cp -r venv/cpython/Doc/build/html/* _readthedocs/html/

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,15 @@ Bu proje gönüllü çevirmenler ve python-docs-tr ekibi iş birliğinde sürdü
1717

1818
### Adımlar
1919

20+
#### Rezervasyon
21+
22+
Çeviri yapmak istediğiniz bir dosyaya rezervasyon oluşturmak için şu adımları izleyin:
23+
24+
1. `Issues > New Issue > Get started` düğmelerini takip ederek rezervasyon formunu açın.
25+
2. foo/bar.po taslağını, çalışmak istediğiniz dosyanın yolu ile değiştirin.
26+
- Örnegin, "library/functions.po üzerinde çalışmak istiyorum".
27+
3. Submit new issue düğmesine tıklayarak rezervasyonunuzu oluşturun ve çeviriyi üstlenin.
28+
2029
#### Projeye ilk başlarken
2130

2231
1. Projeyi GitHub üzerinden forklayın.

c-api/index.po

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,23 @@
22
# Copyright (C) 2001-2022, Python Software Foundation
33
# This file is distributed under the same license as the Python package.
44
#
5-
#, fuzzy
65
msgid ""
76
msgstr ""
87
"Project-Id-Version: Python 3.11\n"
98
"Report-Msgid-Bugs-To: \n"
109
"POT-Creation-Date: 2022-12-17 01:28+0300\n"
11-
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
10+
"PO-Revision-Date: 2023-01-16 04:30+0300\n"
1211
"Last-Translator: \n"
1312
"Language-Team: TURKISH <python.docs.tr@gmail.com>\n"
1413
"Language: tr\n"
1514
"MIME-Version: 1.0\n"
1615
"Content-Type: text/plain; charset=UTF-8\n"
1716
"Content-Transfer-Encoding: 8bit\n"
17+
"X-Generator: Poedit 3.2.2\n"
1818

1919
#: c-api/index.rst:5
2020
msgid "Python/C API Reference Manual"
21-
msgstr ""
21+
msgstr "Python/C API Referans Kılavuzu"
2222

2323
#: c-api/index.rst:7
2424
msgid ""
@@ -27,3 +27,7 @@ msgid ""
2727
"`extending-index`, which describes the general principles of extension "
2828
"writing but does not document the API functions in detail."
2929
msgstr ""
30+
"Bu kılavuz, genişletme modülleri yazmak veya Python'u gömmek isteyen C ve C+"
31+
"+ programcıları tarafından kullanılan API'yi belgelemektedir. Uzantı "
32+
"yazmanın genel ilkelerini açıklayan ancak API işlevlerini ayrıntılı olarak "
33+
"belgelemeyen :ref:`extending-index`'in tamamlayıcısıdır."

extending/index.po

Lines changed: 51 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,12 @@ msgstr ""
1717
"Content-Transfer-Encoding: 8bit\n"
1818

1919
#: extending/index.rst:5
20+
#, fuzzy
2021
msgid "Extending and Embedding the Python Interpreter"
21-
msgstr ""
22+
msgstr "Python Yorumlayıcısını Genişletme ve Gömme"
2223

2324
#: extending/index.rst:7
25+
#, fuzzy
2426
msgid ""
2527
"This document describes how to write modules in C or C++ to extend the "
2628
"Python interpreter with new modules. Those modules can not only define new "
@@ -30,68 +32,113 @@ msgid ""
3032
"extension modules so that they can be loaded dynamically (at run time) into "
3133
"the interpreter, if the underlying operating system supports this feature."
3234
msgstr ""
35+
"Bu belge, Python yorumlayıcısını yeni modüllerle genişletmek için C veya C+"
36+
"+'da modüllerin nasıl yazılacağını açıklar. Bu modüller sadece yeni "
37+
"fonksiyonları değil, aynı zamanda yeni nesne tiplerini ve metotlarını da "
38+
"tanımlayabilir. Belge ayrıca Python yorumlayıcısının bir uzantı dili olarak "
39+
"kullanılmak üzere başka bir uygulamaya nasıl yerleştirileceğini de açıklar. "
40+
"Son olarak, temeldeki işletim sistemi bu özelliği destekliyorsa, uzantı "
41+
"modüllerinin yorumlayıcıya dinamik olarak (çalışma zamanında) yüklenebilmesi "
42+
"için nasıl derleneceğini ve bağlanacağını gösterir."
3343

3444
#: extending/index.rst:15
45+
#, fuzzy
3546
msgid ""
3647
"This document assumes basic knowledge about Python. For an informal "
3748
"introduction to the language, see :ref:`tutorial-index`. :ref:`reference-"
3849
"index` gives a more formal definition of the language. :ref:`library-index` "
3950
"documents the existing object types, functions and modules (both built-in "
4051
"and written in Python) that give the language its wide application range."
4152
msgstr ""
53+
"Bu belge, Python hakkında temel bilgiye sahip olduğunuzu varsayar. Dile "
54+
"gayri resmi bir giriş için bkz. :ref:`library-index`. :ref:`library-index`, "
55+
"dilin daha resmi bir tanımını verir. :ref:`library-index`, dile geniş "
56+
"uygulama yelpazesi sağlayan mevcut nesne türlerini, işlevleri ve modülleri "
57+
"(hem yerleşik hem de Python'da yazılmış) belgeler."
4258

4359
#: extending/index.rst:21
60+
#, fuzzy
4461
msgid ""
4562
"For a detailed description of the whole Python/C API, see the separate :ref:"
4663
"`c-api-index`."
4764
msgstr ""
65+
"Tüm Python/C API'sinin ayrıntılı açıklaması için ayrı :ref:`c-api-index`'a "
66+
"bakın."
4867

4968
#: extending/index.rst:26
69+
#, fuzzy
5070
msgid "Recommended third party tools"
51-
msgstr ""
71+
msgstr "Önerilen üçüncü taraf araçları"
5272

5373
#: extending/index.rst:28
74+
#, fuzzy
5475
msgid ""
5576
"This guide only covers the basic tools for creating extensions provided as "
5677
"part of this version of CPython. Third party tools like `Cython <https://"
5778
"cython.org/>`_, `cffi <https://cffi.readthedocs.io>`_, `SWIG <https://www."
5879
"swig.org>`_ and `Numba <https://numba.pydata.org/>`_ offer both simpler and "
5980
"more sophisticated approaches to creating C and C++ extensions for Python."
6081
msgstr ""
82+
"Bu kılavuz, yalnızca CPython'un bu sürümünün bir parçası olarak sağlanan "
83+
"uzantıları oluşturmak için temel araçları kapsar. `Cython <https://cython."
84+
"org/>`_, `cffi <https://cffi.readthedocs.io>`_, `SWIG <https://www.swig."
85+
"org>`_ ve `Numba <https://numba.pydata.org/>`_ gibi üçüncü taraf araçlar, "
86+
"Python için C ve C++ uzantıları oluşturmaya yönelik hem daha basit hem de "
87+
"daha karmaşık yaklaşımlar sunar."
6188

6289
#: extending/index.rst:40
90+
#, fuzzy
6391
msgid ""
6492
"`Python Packaging User Guide: Binary Extensions <https://packaging.python."
6593
"org/guides/packaging-binary-extensions/>`_"
6694
msgstr ""
95+
"`Python Paketleme Kullanıcı Kılavuzu: İkili Uzantılar <https://packaging."
96+
"python.org/guides/packaging-binary-extensions/>`_"
6797

6898
#: extending/index.rst:38
99+
#, fuzzy
69100
msgid ""
70101
"The Python Packaging User Guide not only covers several available tools that "
71102
"simplify the creation of binary extensions, but also discusses the various "
72103
"reasons why creating an extension module may be desirable in the first place."
73104
msgstr ""
105+
"Python Paketleme Kullanıcı Kılavuzu, yalnızca ikili uzantıların "
106+
"oluşturulmasını basitleştiren çeşitli mevcut araçları kapsamakla kalmaz, "
107+
"aynı zamanda bir uzantı modülü oluşturmanın en başta neden istenebileceğinin "
108+
"çeşitli nedenlerini de tartışır."
74109

75110
#: extending/index.rst:45
111+
#, fuzzy
76112
msgid "Creating extensions without third party tools"
77-
msgstr ""
113+
msgstr "Üçüncü taraf araçları olmadan uzantılar oluşturma"
78114

79115
#: extending/index.rst:47
116+
#, fuzzy
80117
msgid ""
81118
"This section of the guide covers creating C and C++ extensions without "
82119
"assistance from third party tools. It is intended primarily for creators of "
83120
"those tools, rather than being a recommended way to create your own C "
84121
"extensions."
85122
msgstr ""
123+
"Kılavuzun bu bölümü, üçüncü taraf araçlardan yardım almadan C ve C++ "
124+
"uzantıları oluşturmayı kapsar. Kendi C uzantılarınızı oluşturmanız için "
125+
"önerilen bir yol olmaktan ziyade, öncelikle bu araçların yaratıcılarına "
126+
"yöneliktir."
86127

87128
#: extending/index.rst:63
129+
#, fuzzy
88130
msgid "Embedding the CPython runtime in a larger application"
89-
msgstr ""
131+
msgstr "CPython çalışma zamanını daha büyük bir uygulamaya gömme"
90132

91133
#: extending/index.rst:65
134+
#, fuzzy
92135
msgid ""
93136
"Sometimes, rather than creating an extension that runs inside the Python "
94137
"interpreter as the main application, it is desirable to instead embed the "
95138
"CPython runtime inside a larger application. This section covers some of the "
96139
"details involved in doing that successfully."
97140
msgstr ""
141+
"Bazen, ana uygulama olarak Python yorumlayıcısının içinde çalışan bir uzantı "
142+
"oluşturmak yerine, bunun yerine CPython çalışma zamanını daha büyük bir "
143+
"uygulamanın içine gömmek tercih edilir. Bu bölüm, bunu başarılı bir şekilde "
144+
"yapmakla ilgili bazı ayrıntıları içerir."

0 commit comments

Comments
 (0)