Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Enable Read-The-Docs and fix any issues with existing translations#536

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
lysnikolaou merged 16 commits intomainfromenable-readthedocs
Aug 1, 2024
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
Show all changes
16 commits
Select commitHold shift + click to select a range
e4b4671
Enable Read-The-Docs and fix any issues with existing translations
lysnikolaouJun 21, 2024
fec3525
Do not check cpython dir for changed files in CI
lysnikolaouJun 21, 2024
01695b9
Fix spelling
lysnikolaouJun 21, 2024
dc02fa8
Fix spelling again
lysnikolaouJun 21, 2024
cadc47d
Manually list CPython doc requirements
lysnikolaouJun 21, 2024
eff02b6
Fix spelling again
lysnikolaouJun 21, 2024
1115a00
Fix spelling yet again
lysnikolaouJun 21, 2024
28c059b
Fix spelling yet again & add final empty lines
lysnikolaouJun 21, 2024
70e3f06
Gia na doume
lysnikolaouAug 1, 2024
524e9b8
Fingers crossed
lysnikolaouAug 1, 2024
5e515af
Update pre-commit version
lysnikolaouAug 1, 2024
408f845
We're there!
lysnikolaouAug 1, 2024
fbf8f17
Install system deps in CI
lysnikolaouAug 1, 2024
4a13d5d
[pre-commit.ci lite] apply automatic fixes
pre-commit-ci-lite[bot]Aug 1, 2024
a9950fa
Use commit hashes everywhere
lysnikolaouAug 1, 2024
158b08c
Apply suggestions from code review
lysnikolaouAug 1, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
69 changes: 0 additions & 69 deletions.github/workflows/main.yaml
View file
Open in desktop

This file was deleted.

29 changes: 29 additions & 0 deletions.github/workflows/precommit.yaml
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
name: Run pre-commit

on:
push:
branches:
- 3.*
- main
pull_request:

jobs:
test:
name: Run pre-commit.ci
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
submodules: "true"
fetch-depth: 2
- name: Setup python
uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f # v5.1.1
with:
python-version: "3.x"
- name: Install system deps
run: |
sudo apt-get update
sudo apt-get install -y hunspell hunspell-el gettext language-pack-el locales-all
- uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
- uses: pre-commit-ci/lite-action@9d882e7a565f7008d4faf128f27d1cb6503d4ebf # v1.0.2
if: always()
6 changes: 6 additions & 0 deletions.gitignore
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -158,3 +158,9 @@ cython_debug/
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/

locales/
.potodo/

# VS Code
.vscode/
3 changes: 3 additions & 0 deletions.gitmodules
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
[submodule "cpython"]
path = cpython
url = https://github.com/python/cpython
28 changes: 28 additions & 0 deletions.pre-commit-config.yaml
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: 2c9f875913ee60ca25ce70243dc24d5b6415598c # v4.6.0
hooks:
- id: file-contents-sorter
files: "dictionaries/main.txt"
args: ["--unique"]
- id: trailing-whitespace
- id: check-yaml
- id: end-of-file-fixer

- repo: https://git.afpy.org/AFPy/powrap
rev: df2a0a54804a6146cc9fbffb77464d4b5fe24f41 # v1.0.1
hooks:
- id: powrap

- repo: https://git.afpy.org/AFPy/pospell
rev: 8b753bde26fe612ba397a4b4aafa7a0560402805 # v1.3
hooks:
- id: pospell
args:
- "--language=el_GR"
- "--personal-dict=dictionaries/main.txt"

- repo: https://github.com/sphinx-contrib/sphinx-lint
rev: ce6d7aeab24d60b6119dbad180540bf3c9ff31da # v0.9.1
hooks:
- id: sphinx-lint
24 changes: 24 additions & 0 deletions.readthedocs.yaml
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
# .readthedocs.yml
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

# Required
version: 2

build:
os: ubuntu-22.04
tools:
python: "3"

commands:
- python -m pip install -r requirements.txt
- make
- mkdir -p _readthedocs/html/
- cp -r cpython/Doc/build/html/* _readthedocs/html/

python:
install:
- requirements: requirements.txt

submodules:
include: all
22 changes: 9 additions & 13 deletionsMakefile
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -23,9 +23,10 @@
# .po files.
CPYTHON_CURRENT_COMMIT := 9cbde7c6ce6f7b93301a37f03dfa0c0d45e00a39

CPYTHON_PATH :=/home/tpetkos/github.com/python/cpython/
CPYTHON_PATH :=./cpython

LANGUAGE := gr
LANGUAGE := el
TRANSLATION_BRANCH := main
BRANCH := 3.12

EXCLUDED := whatsnew/ c-api/
Expand All@@ -36,7 +37,7 @@ UPSTREAM := https://github.com/python/cpython

PYTHON := $(shell which python3)
MODE := html
POSPELL_TMP_DIR := .pospell/
POSPELL_TMP_DIR := .pospell
JOBS := auto

# Detect OS
Expand All@@ -58,7 +59,6 @@ endif

.PHONY: all
all: ensure_prerequisites
git -C $(CPYTHON_PATH) checkout $(CPYTHON_CURRENT_COMMIT)
mkdir -p locales/$(LANGUAGE)/LC_MESSAGES/
$(CP_CMD) -u --parents *.po */*.po locales/$(LANGUAGE)/LC_MESSAGES/
$(MAKE) -C $(CPYTHON_PATH)/Doc/ \
Expand All@@ -70,7 +70,6 @@ all: ensure_prerequisites
-D latex_elements.inputenc= \
-D latex_elements.fontenc=' \
$(MODE)
git -C $(CPYTHON_PATH) checkout -
@echo "Build success, open file://$(abspath $(CPYTHON_PATH))/Doc/build/html/index.html or run 'make serve' to see them."


Expand All@@ -83,10 +82,7 @@ ensure_prerequisites:
@if ! [ -d $(CPYTHON_PATH) ]; then \
echo "Building the translation requires a cpython clone."; \
echo "Please provide the path to a clone using the CPYTHON_PATH variable."; \
echo "(Currently CPYTHON_PATH is $(CPYTHON_PATH)."; \
echo "So you may want to run:"; \
echo ""; \
echo " git clone $(UPSTREAM) $(CPYTHON_PATH)"; \
echo "(Currently CPYTHON_PATH is $(CPYTHON_PATH).)"; \
exit 1; \
fi
@if [ -n "$$(git -C $(CPYTHON_PATH) status --porcelain)" ]; then \
Expand All@@ -95,16 +91,16 @@ ensure_prerequisites:
exit 1; \
fi
@if ! (blurb help >/dev/null 2>&1 && sphinx-build --version >/dev/null 2>&1); then \
git -C $(CPYTHON_PATH) checkout $(BRANCH); \
echo "You're missing dependencies, please enable a venv and install:"; \
echo ""; \
echo " python -m pip install -r requirements.txt -r $(CPYTHON_PATH)/Doc/requirements.txt"; \
echo " python -m pip install -r requirements.txt"; \
exit 1; \
fi


.PHONY: serve
serve:
$(MAKE) -C $(CPYTHON_PATH)/Doc/ serve
$(PYTHON) -c "import os, webbrowser; webbrowser.open('file://' + os.path.realpath('cpython/Doc/build/html/index.html'))"


.PHONY: progress
Expand All@@ -123,7 +119,7 @@ wrap: ensure_prerequisites
@echo "Verify wrapping"
powrap --check --quiet *.po **/*.po

SRCS = $(shell git diff --name-only $(BRANCH) | grep '.po$$')
SRCS = $(shell git diff --name-only $(TRANSLATION_BRANCH) | grep '.po$$')
# foo/bar.po => $(POSPELL_TMP_DIR)/foo/bar.po.out
DESTS = $(addprefix $(POSPELL_TMP_DIR)/,$(addsuffix .out,$(SRCS)))

Expand Down
2 changes: 1 addition & 1 deletionREADME.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -6,7 +6,7 @@
ΣΗΜΕΙΩΣΗ ΓΙΑ ΤΗΝ ΑΔΕΙΑ ΧΡΗΣΗΣ ΤΩΝ ΜΕΤΑΦΡΑΣΕΩΝ

Ο οδηγός χρήσης της Python συντηρείται από ένα παγκόσμιο δίκτυο
εθελοντών.
εθελοντών.

Αυτό το έργο πρότζεκτ αποτελεί μια συνεργασία ανάμεσα σε εθελοντές μεταφραστές και
της ομάδας python-docs-gr. Το παρόν έγγραφο καθορίζει τα δικαιώματα και τις ευθύνες
Expand Down
2 changes: 1 addition & 1 deletionTRANSLATORS
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,4 +2,4 @@ Georgios Zisopoulos
Lysandros Nikolaou
Theofanis Petkos
Panagiotis Skias
Dimitrios Papadopoulos
Dimitrios Papadopoulos
47 changes: 14 additions & 33 deletionsc-api/buffer.po
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -382,48 +382,34 @@ msgid ""
"flags below it."
msgstr ""

#: c-api/buffer.rst:306
#: c-api/buffer.rst:331
#: c-api/buffer.rst:306 c-api/buffer.rst:331
msgid "Request"
msgstr ""

#: c-api/buffer.rst:306
#: c-api/buffer.rst:331
#: c-api/buffer.rst:306 c-api/buffer.rst:331
msgid "shape"
msgstr ""

#: c-api/buffer.rst:306
#: c-api/buffer.rst:331
#: c-api/buffer.rst:306 c-api/buffer.rst:331
msgid "strides"
msgstr ""

#: c-api/buffer.rst:306
#: c-api/buffer.rst:331
#: c-api/buffer.rst:306 c-api/buffer.rst:331
msgid "suboffsets"
msgstr ""

#: c-api/buffer.rst:286
#: c-api/buffer.rst:308
#: c-api/buffer.rst:312
#: c-api/buffer.rst:333
#: c-api/buffer.rst:337
#: c-api/buffer.rst:341
#: c-api/buffer.rst:345
#: c-api/buffer.rst:347
#: c-api/buffer.rst:286 c-api/buffer.rst:308 c-api/buffer.rst:312
#: c-api/buffer.rst:333 c-api/buffer.rst:337 c-api/buffer.rst:341
#: c-api/buffer.rst:345 c-api/buffer.rst:347
msgid "yes"
msgstr ""

#: c-api/buffer.rst:333
#: c-api/buffer.rst:335
#: c-api/buffer.rst:333 c-api/buffer.rst:335
msgid "if needed"
msgstr ""

#: c-api/buffer.rst:288
#: c-api/buffer.rst:308
#: c-api/buffer.rst:312
#: c-api/buffer.rst:337
#: c-api/buffer.rst:341
#: c-api/buffer.rst:345
#: c-api/buffer.rst:288 c-api/buffer.rst:308 c-api/buffer.rst:312
#: c-api/buffer.rst:337 c-api/buffer.rst:341 c-api/buffer.rst:345
#: c-api/buffer.rst:347
msgid "NULL"
msgstr ""
Expand All@@ -443,8 +429,7 @@ msgstr ""
msgid "contig"
msgstr ""

#: c-api/buffer.rst:314
#: c-api/buffer.rst:347
#: c-api/buffer.rst:314 c-api/buffer.rst:347
msgid "C"
msgstr ""

Expand DownExpand Up@@ -485,19 +470,15 @@ msgstr ""
msgid "format"
msgstr ""

#: c-api/buffer.rst:335
#: c-api/buffer.rst:339
#: c-api/buffer.rst:343
#: c-api/buffer.rst:335 c-api/buffer.rst:339 c-api/buffer.rst:343
msgid "U"
msgstr ""

#: c-api/buffer.rst:337
#: c-api/buffer.rst:345
#: c-api/buffer.rst:337 c-api/buffer.rst:345
msgid "0"
msgstr ""

#: c-api/buffer.rst:339
#: c-api/buffer.rst:347
#: c-api/buffer.rst:339 c-api/buffer.rst:347
msgid "1 or 0"
msgstr ""

Expand Down
3 changes: 1 addition & 2 deletionsc-api/bytes.po
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -100,8 +100,7 @@ msgstr ""
msgid "``%c``"
msgstr ""

#: c-api/bytes.rst:72
#: c-api/bytes.rst:93
#: c-api/bytes.rst:72 c-api/bytes.rst:93
msgid "int"
msgstr ""

Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp