diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d8f70c3c9..839f9f9a5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,7 +5,7 @@ on: - pull_request env: - WEECHAT_DEPENDENCIES: devscripts equivs python3-pip autopoint cmake ninja-build lcov pkg-config libncursesw5-dev gem2deb libperl-dev python2-dev python3-dev libaspell-dev liblua5.3-dev tcl8.6-dev guile-2.2-dev libv8-dev libcurl4-gnutls-dev libgcrypt20-dev libgnutls28-dev libzstd-dev zlib1g-dev curl libcpputest-dev php8.0-dev libphp8.0-embed libargon2-dev libsodium-dev pylint python3-bandit asciidoctor ruby-pygments.rb + WEECHAT_DEPENDENCIES: devscripts equivs python3-pip autopoint cmake ninja-build lcov pkg-config libncursesw5-dev gem2deb libperl-dev python3-dev libaspell-dev liblua5.3-dev tcl8.6-dev guile-2.2-dev libv8-dev libcurl4-gnutls-dev libgcrypt20-dev libgnutls28-dev libzstd-dev zlib1g-dev curl libcpputest-dev php8.0-dev libphp8.0-embed libargon2-dev libsodium-dev pylint python3-bandit asciidoctor ruby-pygments.rb jobs: @@ -19,7 +19,6 @@ jobs: - { name: "cmake_gcc", cc: "gcc", cxx: "g++", tool: "cmake", args: "" } - { name: "cmake_gcc_ninja", cc: "gcc", cxx: "g++", tool: "cmake", args: "-G Ninja" } - { name: "cmake_gcc_no_nls", cc: "gcc", cxx: "g++", tool: "cmake", args: "-DENABLE_NLS=OFF" } - - { name: "cmake_gcc_py2", cc: "gcc", cxx: "g++", tool: "cmake", args: "-DENABLE_PYTHON2=ON" } - { name: "cmake_gcc_coverage", cc: "gcc", cxx: "g++", tool: "cmake", args: "-DENABLE_CODE_COVERAGE=ON" } - { name: "cmake_clang", cc: "clang", cxx: "clang++", tool: "cmake", args: "" } - { name: "autotools_gcc", cc: "gcc", cxx: "g++", tool: "autotools", args: "" } diff --git a/CMakeLists.txt b/CMakeLists.txt index 4ed408c60..4d6d934bb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -105,7 +105,6 @@ option(ENABLE_SCRIPT "Enable Script plugin (script manager)" ON) option(ENABLE_SCRIPTS "Enable script plugins (perl, python, ...)" ON) option(ENABLE_PERL "Enable Perl scripting language" ON) option(ENABLE_PYTHON "Enable Python scripting language" ON) -option(ENABLE_PYTHON2 "Use Python 2 instead of Python 3" OFF) option(ENABLE_RUBY "Enable Ruby scripting language" ON) option(ENABLE_LUA "Enable Lua scripting language" ON) option(ENABLE_TCL "Enable Tcl scripting language" ON) diff --git a/ChangeLog.adoc b/ChangeLog.adoc index 236c3771d..a57b09899 100644 --- a/ChangeLog.adoc +++ b/ChangeLog.adoc @@ -33,6 +33,10 @@ Tests:: * scripts: add tests on config functions +Build:: + + * python: remove support of Python 2.x + [[v3.7]] == Version 3.7 (2022-10-09) diff --git a/ReleaseNotes.adoc b/ReleaseNotes.adoc index d347ba29c..1214932ee 100644 --- a/ReleaseNotes.adoc +++ b/ReleaseNotes.adoc @@ -20,6 +20,12 @@ https://weechat.org/files/changelog/ChangeLog-devel.html[ChangeLog] [[v3.8]] == Version 3.8 (under dev) +[[v3.8_remove_python2_support]] +=== Remove Python 2 support + +The CMake option `ENABLE_PYTHON2` and autotools option `--enable-python2` +have been removed, and WeeChat can not be compiled with Python 2.x any more. + [[v3.8_config_new_option_callbacks]] === Callbacks of function config_new_option diff --git a/cmake/FindPython.cmake b/cmake/FindPython.cmake index 48d5172e3..f7730ad67 100644 --- a/cmake/FindPython.cmake +++ b/cmake/FindPython.cmake @@ -28,11 +28,7 @@ # PYTHON_LIBRARIES = path to where libpython.so* can be found # PYTHON_LDFLAGS = python compiler options for linking -if(ENABLE_PYTHON2) - pkg_check_modules(PYTHON python2 IMPORTED_TARGET GLOBAL) -else() - pkg_check_modules(PYTHON python3-embed IMPORTED_TARGET GLOBAL) - if(NOT PYTHON_FOUND) - pkg_check_modules(PYTHON python3 IMPORTED_TARGET GLOBAL) - endif() +pkg_check_modules(PYTHON python3-embed IMPORTED_TARGET GLOBAL) +if(NOT PYTHON_FOUND) + pkg_check_modules(PYTHON python3 IMPORTED_TARGET GLOBAL) endif() diff --git a/configure.ac b/configure.ac index 6d80447b5..afd8834f0 100644 --- a/configure.ac +++ b/configure.ac @@ -155,7 +155,6 @@ AC_ARG_ENABLE(script, [ --disable-script turn off Script plugin (d AC_ARG_ENABLE(scripts, [ --disable-scripts turn off script plugins (perl, python, ...) (default=compiled if found)],enable_scripts=$enableval,enable_scripts=yes) AC_ARG_ENABLE(perl, [ --disable-perl turn off Perl script plugin (default=compiled if found)],enable_perl=$enableval,enable_perl=yes) AC_ARG_ENABLE(python, [ --disable-python turn off Python script plugin (default=compiled if found)],enable_python=$enableval,enable_python=yes) -AC_ARG_ENABLE(python2, [ --enable-python2 use Python 2 instead of Python 3 (default=off)],enable_python2=$enableval,enable_python2=no) AC_ARG_ENABLE(ruby, [ --disable-ruby turn off Ruby script plugin (default=compiled if found)],enable_ruby=$enableval,enable_ruby=yes) AC_ARG_ENABLE(lua, [ --disable-lua turn off Lua script plugin (default=compiled if found)],enable_lua=$enableval,enable_lua=yes) AC_ARG_ENABLE(tcl, [ --disable-tcl turn off Tcl script plugin (default=compiled if found)],enable_tcl=$enableval,enable_tcl=yes) @@ -467,13 +466,9 @@ fi PYTHON_VERSION= if test "x$enable_python" = "xyes" ; then - if test "x$enable_python2" = "xyes" ; then - PKG_CHECK_MODULES(PYTHON, [python2], [PYTHON_FOUND=yes; PYTHON_VERSION=`$PKGCONFIG --modversion python2`], [PYTHON_FOUND=no]) - else - PKG_CHECK_MODULES(PYTHON, [python3-embed], [PYTHON_FOUND=yes; PYTHON_VERSION=`$PKGCONFIG --modversion python3-embed`], [PYTHON_FOUND=no]) - if test "x$PYTHON_FOUND" != "xyes"; then - PKG_CHECK_MODULES(PYTHON, [python3], [PYTHON_FOUND=yes; PYTHON_VERSION=`$PKGCONFIG --modversion python3`], [PYTHON_FOUND=no]) - fi + PKG_CHECK_MODULES(PYTHON, [python3-embed], [PYTHON_FOUND=yes; PYTHON_VERSION=`$PKGCONFIG --modversion python3-embed`], [PYTHON_FOUND=no]) + if test "x$PYTHON_FOUND" != "xyes"; then + PKG_CHECK_MODULES(PYTHON, [python3], [PYTHON_FOUND=yes; PYTHON_VERSION=`$PKGCONFIG --modversion python3`], [PYTHON_FOUND=no]) fi if test "x$PYTHON_FOUND" != "xyes" ; then AC_MSG_WARN([ diff --git a/doc/de/includes/autogen_api_infos.de.adoc b/doc/de/includes/autogen_api_infos.de.adoc index 2fcb004eb..25883c98d 100644 --- a/doc/de/includes/autogen_api_infos.de.adoc +++ b/doc/de/includes/autogen_api_infos.de.adoc @@ -60,8 +60,6 @@ | php | php_version | Version des verwendeten Interpreters | - -| python | python2_bin | Pfad zum Python 2.x Interpreter (*veraltet*, seit WeeChat Version 2.6 müssen Skripten Python3 verwenden) | - - | python | python_eval | Evaluierung des Quelltextes | Quelltext welcher ausgeführt werden soll | python | python_interpreter | Name des verwendeten Interpreters | - diff --git a/doc/de/weechat_scripting.de.adoc b/doc/de/weechat_scripting.de.adoc index a6737ae33..6a256391b 100644 --- a/doc/de/weechat_scripting.de.adoc +++ b/doc/de/weechat_scripting.de.adoc @@ -144,10 +144,6 @@ Liste ist nicht vollständig): |=== -Mit Python 2, das mittlerweile veraltet ist und nicht mehr verwendet werden sollte, ist die -Zeichenkette die an die Callbacks gesendet wird immer vom Typ `str` und kann deshalb bei den -oben genannten Fällen, ungültige UTF-8 Daten enthalten. - [[language_perl]] ==== Perl diff --git a/doc/de/weechat_user.de.adoc b/doc/de/weechat_user.de.adoc index d2859f69f..ca106bd82 100644 --- a/doc/de/weechat_user.de.adoc +++ b/doc/de/weechat_user.de.adoc @@ -168,7 +168,7 @@ WeeChat optional sind: | gettext | | Internationalisierung (Übersetzung der Mitteilungen; Hauptsprache ist englisch). | ca-certificates | | Zertifikate für SSL Verbindungen. | libaspell-dev / libenchant-dev | | Spell Erweiterung. -| python3-dev ^(2)^ | | Python Erweiterung. +| python3-dev | ≥ 3.0 | Python Erweiterung. | libperl-dev | | Perl Erweiterung. | ruby2.7, ruby2.7-dev | ≥ 1.9.1 | Ruby Erweiterung. | liblua5.4-dev | | Lua Erweiterung. @@ -187,9 +187,7 @@ WeeChat optional sind: [NOTE] ^(1)^ Der Name stammt von der Debian GNU/Linux Bullseye-Distribution, -Version und Name können in anderen Distributionen anders lauten. + -^(2)^ standardmäßig wird Python 3.x verwendet. Wird die Option `+ENABLE_PYTHON2+` aktiviert -(siehe unten), sollte die Version 2.7 von Python genutzt werden. +Version und Name können in anderen Distributionen anders lauten. Falls eine Debian/Ubuntu basierte Distribution genutzt wird und man einen "deb-src" Quelleintrag in _/etc/apt/sources.list_ eingetragen hat, dann ist @@ -305,9 +303,6 @@ Liste von häufig verwendeten Optionen: | ENABLE_PYTHON | `ON`, `OFF` | ON | kompiliert <>. -| ENABLE_PYTHON2 | `ON`, `OFF` | OFF -| kompiliert <> nutzt Python 2 anstelle von Python 3. - | ENABLE_RELAY | `ON`, `OFF` | ON | kompiliert <>. diff --git a/doc/en/includes/autogen_api_infos.en.adoc b/doc/en/includes/autogen_api_infos.en.adoc index 5d6b42497..01ff23c34 100644 --- a/doc/en/includes/autogen_api_infos.en.adoc +++ b/doc/en/includes/autogen_api_infos.en.adoc @@ -60,8 +60,6 @@ | php | php_version | version of the interpreter used | - -| python | python2_bin | path to Python 2.x interpreter (*deprecated* since version 2.6, scripts must use Python 3 only) | - - | python | python_eval | evaluation of source code | source code to execute | python | python_interpreter | name of the interpreter used | - diff --git a/doc/en/weechat_scripting.en.adoc b/doc/en/weechat_scripting.en.adoc index 237e2aabd..f54d53796 100644 --- a/doc/en/weechat_scripting.en.adoc +++ b/doc/en/weechat_scripting.en.adoc @@ -134,10 +134,6 @@ receive a string of type `str` or `bytes` (this list is not exhaustive): |=== -In Python 2, which is now deprecated and should not be used any more, the -strings sent to callbacks are always of type `str`, and may contain invalid -UTF-8 data, in the cases mentioned above. - [[language_perl]] ==== Perl diff --git a/doc/en/weechat_user.en.adoc b/doc/en/weechat_user.en.adoc index 91106fad6..ff27f8eb1 100644 --- a/doc/en/weechat_user.en.adoc +++ b/doc/en/weechat_user.en.adoc @@ -161,7 +161,7 @@ WeeChat: | gettext | | Internationalization (translation of messages; base language is English). | ca-certificates | | Certificates for SSL connections. | libaspell-dev / libenchant-dev | | Spell plugin. -| python3-dev ^(2)^ | | Python plugin. +| python3-dev | ≥ 3.0 | Python plugin. | libperl-dev | | Perl plugin. | ruby2.7, ruby2.7-dev | ≥ 1.9.1 | Ruby plugin. | liblua5.4-dev | | Lua plugin. @@ -180,9 +180,7 @@ WeeChat: [NOTE] ^(1)^ Name comes from the Debian GNU/Linux Bullseye distribution, version and -name can be different in other distributions. + -^(2)^ By default Python 3.x is used. If you enable option `+ENABLE_PYTHON2+` -(see below), only the version 2.7 of Python is recommended. +name can be different in other distributions. If you are using a Debian/Ubuntu based distribution, and if you have some "deb-src" source entries in your file _/etc/apt/sources.list_, you can install @@ -297,9 +295,6 @@ List of commonly used options: | ENABLE_PYTHON | `ON`, `OFF` | ON | Compile <>. -| ENABLE_PYTHON2 | `ON`, `OFF` | OFF -| Compile <> using Python 2 instead of Python 3. - | ENABLE_RELAY | `ON`, `OFF` | ON | Compile <>. diff --git a/doc/fr/includes/autogen_api_infos.fr.adoc b/doc/fr/includes/autogen_api_infos.fr.adoc index e78ac0637..846ffa665 100644 --- a/doc/fr/includes/autogen_api_infos.fr.adoc +++ b/doc/fr/includes/autogen_api_infos.fr.adoc @@ -60,8 +60,6 @@ | php | php_version | version de l'interpréteur utilisé | - -| python | python2_bin | chemin vers l'interpréteur Python 2.x (*obsolète* depuis la version 2.6, les scripts doivent utiliser seulement Python 3) | - - | python | python_eval | évaluation de code source | code source à exécuter | python | python_interpreter | nom de l'interpréteur utilisé | - diff --git a/doc/fr/weechat_scripting.fr.adoc b/doc/fr/weechat_scripting.fr.adoc index 4245b0e4f..a8d732461 100644 --- a/doc/fr/weechat_scripting.fr.adoc +++ b/doc/fr/weechat_scripting.fr.adoc @@ -143,10 +143,6 @@ pas exhaustive) : |=== -En Python 2, qui est déconseillé et ne devrait plus être utilisé, les chaînes -envoyées aux fonctions de rappel sont toujours de type `str`, et peuvent contenir -des données invalides UTF-8, dans les cas mentionnés ci-dessus. - [[language_perl]] ==== Perl diff --git a/doc/fr/weechat_user.fr.adoc b/doc/fr/weechat_user.fr.adoc index da4d56a05..e0343cc65 100644 --- a/doc/fr/weechat_user.fr.adoc +++ b/doc/fr/weechat_user.fr.adoc @@ -162,7 +162,7 @@ Le tableau suivant liste les paquets optionnels pour compiler WeeChat : | gettext | | Internationalisation (traduction des messages ; la langue de base est l'anglais). | ca-certificates | | Certificats pour les connexions SSL. | libaspell-dev / libenchant-dev | | Extension spell. -| python3-dev ^(2)^ | | Extension python. +| python3-dev | ≥ 3.0 | Extension python. | libperl-dev | | Extension perl. | ruby2.7, ruby2.7-dev | ≥ 1.9.1 | Extension ruby. | liblua5.4-dev | | Extension lua. @@ -182,9 +182,6 @@ Le tableau suivant liste les paquets optionnels pour compiler WeeChat : [NOTE] ^(1)^ Le nom provient de la distribution GNU/Linux Debian Bullseye, la version et le nom peuvent être différents dans les autres distributions. -^(2)^ Par défaut Python 3.x est utilisé. Si vous activez l'option -`+ENABLE_PYTHON2+` (voir ci-dessous), seule la version 2.7 de Python est -recommandée. Si vous utilisez une distribution basée sur Debian ou Ubuntu, et si vous avez des entrées source "deb-src" dans votre fichier _/etc/apt/sources.list_, vous @@ -299,10 +296,6 @@ Liste des options couramment utilisées : | ENABLE_PYTHON | `ON`, `OFF` | ON | Compiler <>. -| ENABLE_PYTHON2 | `ON`, `OFF` | OFF -| Compiler <> avec Python 2 au lieu de - Python 3. - | ENABLE_RELAY | `ON`, `OFF` | ON | Compiler <>. diff --git a/doc/it/includes/autogen_api_infos.it.adoc b/doc/it/includes/autogen_api_infos.it.adoc index 4aafd0380..3cbe8daca 100644 --- a/doc/it/includes/autogen_api_infos.it.adoc +++ b/doc/it/includes/autogen_api_infos.it.adoc @@ -60,8 +60,6 @@ | php | php_version | version of the interpreter used | - -| python | python2_bin | path to Python 2.x interpreter (*deprecated* since version 2.6, scripts must use Python 3 only) | - - | python | python_eval | evaluation of source code | source code to execute | python | python_interpreter | name of the interpreter used | - diff --git a/doc/it/weechat_scripting.it.adoc b/doc/it/weechat_scripting.it.adoc index 44bed235c..c31bffdf6 100644 --- a/doc/it/weechat_scripting.it.adoc +++ b/doc/it/weechat_scripting.it.adoc @@ -147,10 +147,6 @@ receive a string of type `str` or `bytes` (this list is not exhaustive): |=== -In Python 2, which is now deprecated and should not be used any more, the -strings sent to callbacks are always of type `str`, and may contain invalid -UTF-8 data, in the cases mentioned above. - [[language_perl]] ==== Perl diff --git a/doc/it/weechat_user.it.adoc b/doc/it/weechat_user.it.adoc index b28e8e913..f8edbe73e 100644 --- a/doc/it/weechat_user.it.adoc +++ b/doc/it/weechat_user.it.adoc @@ -197,7 +197,7 @@ WeeChat: | gettext | | Internazionalizzazione (traduzione dei messaggi; la lingua base è l'inglese). | ca-certificates | | Certificati per le connessioni SSL. | libaspell-dev / libenchant-dev | | Plugin spell. -| python3-dev ^(2)^ | | Plugin python. +| python3-dev | ≥ 3.0 | Plugin python. | libperl-dev | | Plugin perl. | ruby2.7, ruby2.7-dev | ≥ 1.9.1 | Plugin ruby. | liblua5.4-dev | | Plugin lua. @@ -222,10 +222,7 @@ WeeChat: [NOTE] // TRANSLATION MISSING ^(1)^ Name comes from the Debian GNU/Linux Bullseye distribution, version and -name can be different in other distributions. + -// TRANSLATION MISSING -^(2)^ By default Python 3.x is used. If you enable option `+ENABLE_PYTHON2+` (see -below), only the version 2.7 of Python is recommended. +name can be different in other distributions. // TRANSLATION MISSING If you are using a Debian/Ubuntu based distribution, and if you have some @@ -346,10 +343,6 @@ List of commonly used options: | ENABLE_PYTHON | `ON`, `OFF` | ON | Compile <>. -// TRANSLATION MISSING -| ENABLE_PYTHON2 | `ON`, `OFF` | OFF -| Compile <> using Python 2 instead of Python 3. - | ENABLE_RELAY | `ON`, `OFF` | ON | Compile <>. diff --git a/doc/ja/includes/autogen_api_infos.ja.adoc b/doc/ja/includes/autogen_api_infos.ja.adoc index 3356bf47c..8d1b171d8 100644 --- a/doc/ja/includes/autogen_api_infos.ja.adoc +++ b/doc/ja/includes/autogen_api_infos.ja.adoc @@ -60,8 +60,6 @@ | php | php_version | 使用中のインタプリタのバージョン | - -| python | python2_bin | path to Python 2.x interpreter (*deprecated* since version 2.6, scripts must use Python 3 only) | - - | python | python_eval | ソースコードの評価 | 実行するソースコード | python | python_interpreter | 使用中のインタプリタの名前 | - diff --git a/doc/ja/weechat_scripting.ja.adoc b/doc/ja/weechat_scripting.ja.adoc index 4fd333797..c9dbc32bb 100644 --- a/doc/ja/weechat_scripting.ja.adoc +++ b/doc/ja/weechat_scripting.ja.adoc @@ -144,10 +144,6 @@ receive a string of type `str` or `bytes` (this list is not exhaustive): |=== -In Python 2, which is now deprecated and should not be used any more, the -strings sent to callbacks are always of type `str`, and may contain invalid -UTF-8 data, in the cases mentioned above. - [[language_perl]] ==== Perl diff --git a/doc/ja/weechat_user.ja.adoc b/doc/ja/weechat_user.ja.adoc index cc27b1a02..c88babd1f 100644 --- a/doc/ja/weechat_user.ja.adoc +++ b/doc/ja/weechat_user.ja.adoc @@ -180,7 +180,7 @@ WeeChat: | gettext | | 国際化 (メッセージの翻訳; ベース言語は英語です) | ca-certificates | | SSL 接続に必要な証明書、relay プラグインで SSL サポート | libaspell-dev / libenchant-dev | | spell プラグイン -| python3-dev ^(2)^ | | python プラグイン +| python3-dev | 3.0 以上 | python プラグイン | libperl-dev | | perl プラグイン | ruby2.7, ruby2.7-dev | 1.9.1 以上 | ruby プラグイン | liblua5.4-dev | | lua プラグイン @@ -201,10 +201,7 @@ WeeChat: [NOTE] // TRANSLATION MISSING ^(1)^ Name comes from the Debian GNU/Linux Bullseye distribution, version and -name can be different in other distributions. + -// TRANSLATION MISSING -^(2)^ By default Python 3.x is used. If you enable option `+ENABLE_PYTHON2+` (see -below), only the version 2.7 of Python is recommended. +name can be different in other distributions. Debian および Ubuntu ベースのディストリビューションを使っており、_/etc/apt/sources.list_ ファイルで "deb-src" @@ -320,10 +317,6 @@ CMake に対するオプションを指定するには、以下の書式を使 | ENABLE_PYTHON | `ON`, `OFF` | ON | <>のコンパイル。 -// TRANSLATION MISSING -| ENABLE_PYTHON2 | `ON`, `OFF` | OFF -| Compile <> using Python 2 instead of Python 3. - | ENABLE_RELAY | `ON`, `OFF` | ON | <>のコンパイル。 diff --git a/doc/pl/includes/autogen_api_infos.pl.adoc b/doc/pl/includes/autogen_api_infos.pl.adoc index 1d19996a2..0250b1c98 100644 --- a/doc/pl/includes/autogen_api_infos.pl.adoc +++ b/doc/pl/includes/autogen_api_infos.pl.adoc @@ -60,8 +60,6 @@ | php | php_version | wersja użytego interpretera | - -| python | python2_bin | ścieżka do interpretera Pythona 2.x (*przestarzałe* od wersji 2.6 skrypty muszą używać tylko Pythona 3) | - - | python | python_eval | wykonywanie kodu źródłowego | kod źródłowy do wykonania | python | python_interpreter | nazwa użytego interpretera | - diff --git a/doc/pl/weechat_user.pl.adoc b/doc/pl/weechat_user.pl.adoc index 6e2fa32d0..0a5eab311 100644 --- a/doc/pl/weechat_user.pl.adoc +++ b/doc/pl/weechat_user.pl.adoc @@ -179,7 +179,7 @@ WeeChat: | gettext | | Internacjonalizacja (tłumaczenie wiadomości; język bazowy to Angielski). | ca-certificates | | Certyfikaty dla połączeń SSL. | libaspell-dev / libenchant-dev | | Wtyczka spell. -| python3-dev ^(2)^ | | Wtyczka python. +| python3-dev | ≥ 3.0 | Wtyczka python. | libperl-dev | | Wtyczka perl. | ruby2.7, ruby2.7-dev | ≥ 1.9.1 | Wtyczka ruby. | liblua5.4-dev | | Wtyczka lua. @@ -200,9 +200,7 @@ WeeChat: [NOTE] // TRANSLATION MISSING ^(1)^ Name comes from the Debian GNU/Linux Bullseye distribution, version and -name can be different in other distributions. + -^(2)^ Domyślnie używany jest Pythin 3.x. Chyba że włączysz opcję `+ENABLE_PYTHON2+` -(zobacz niżej), zaleca się uzywania wersji 2.7 Pythona. +name can be different in other distributions. Jeśli używasz dystrybujci bazującej na Debianie/Ubuntu, oraz jeśli posiadasz wpisy "deb-src" w pliku _/etc/apt/sources.list_, możesz zainstalować wszytkie zależności @@ -317,9 +315,6 @@ Lista popularnych opcji: | ENABLE_PYTHON | `ON`, `OFF` | ON | Kompilacja <>. -| ENABLE_PYTHON2 | `ON`, `OFF` | OFF -| Kompilacja <> z użyciem Pythona 2 zamiast Pythona 3. - | ENABLE_RELAY | `ON`, `OFF` | ON | Kompilacja <>. diff --git a/doc/sr/includes/autogen_api_infos.sr.adoc b/doc/sr/includes/autogen_api_infos.sr.adoc index c2b7b15f6..01c6306a4 100644 --- a/doc/sr/includes/autogen_api_infos.sr.adoc +++ b/doc/sr/includes/autogen_api_infos.sr.adoc @@ -60,8 +60,6 @@ | php | php_version | верзија интерпретера која се користи | - -| python | python2_bin | путања до Python 2.x интерпретера (*застарело* од верзије 2.6, скрипте смеју да користе само Python 3) | - - | python | python_eval | израчунавање изворног кода | изворни кôд који треба да се изврши | python | python_interpreter | име интерпретера који се користи | - diff --git a/doc/sr/weechat_scripting.sr.adoc b/doc/sr/weechat_scripting.sr.adoc index 0f880dba3..55808a3c5 100644 --- a/doc/sr/weechat_scripting.sr.adoc +++ b/doc/sr/weechat_scripting.sr.adoc @@ -123,8 +123,6 @@ Python стаб за WeeChat API је соступан у репозиториј |=== -У Python 2, који је сад превазиђен и више не би требало да се употребљава, стрингови који се шаљу функцијама повратног позива су увек били типа `str`, и у случајевима који су поменути изнад, могли су да садрже неважеће UTF-8 податке. - [[language_perl]] ==== Perl diff --git a/doc/sr/weechat_user.sr.adoc b/doc/sr/weechat_user.sr.adoc index fb1dc3bb9..829953d49 100644 --- a/doc/sr/weechat_user.sr.adoc +++ b/doc/sr/weechat_user.sr.adoc @@ -160,7 +160,7 @@ https://github.com/weechat/weechat-container[weechat-container ^↗^,window=_bl | gettext | | Интернационализацију (превод порука; основни језик је енглески). | ca-certificates | | Сертификате за SSL везе. | libaspell-dev / libenchant-dev | | Spell додатак. -| python3-dev ^(2)^ | | Python додатак. +| python3-dev | ≥ 3.0 | Python додатак. | libperl-dev | | Perl додатак. | ruby2.7, ruby2.7-dev | ≥ 1.9.1 | Ruby додатак. | liblua5.4-dev | | Lua додатак. @@ -179,8 +179,7 @@ https://github.com/weechat/weechat-container[weechat-container ^↗^,window=_bl [NOTE] ^(1)^ Име долази из Debian GNU/Linux Bullseye дистрибуције, верзија и -име могу да буду другачији у осталим дистрибуцијама. + -^(2)^ Подразумевано се користи Python 3.x. Ако укључите опцију `+ENABLE_PYTHON2+` (погледајте испод), препоручује се само верзија 2.7 језика Python. +име могу да буду другачији у осталим дистрибуцијама. Ако користите дистрибуцију базирану на Debian/Ubuntu и ако имате неке „deb-src” изворне ставке у фајлу _/etc/apt/sources.list_, можете инсталирати све зависности командом: @@ -293,9 +292,6 @@ $ make install | ENABLE_PYTHON | `ON`, `OFF` | ON | Компајлира <>. -| ENABLE_PYTHON2 | `ON`, `OFF` | OFF -| Компајлира <> користећи Python 2 уместо Python 3. - | ENABLE_RELAY | `ON`, `OFF` | ON | Компајлира <>. diff --git a/po/cs.po b/po/cs.po index 83f68f287..482dcee70 100644 --- a/po/cs.po +++ b/po/cs.po @@ -21,8 +21,8 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2022-09-28 20:50+0200\n" -"PO-Revision-Date: 2022-06-18 16:11+0200\n" +"POT-Creation-Date: 2022-10-15 22:42+0200\n" +"PO-Revision-Date: 2022-10-15 22:51+0200\n" "Last-Translator: Ondřej Súkup \n" "Language-Team: weechat-dev \n" "Language: cs\n" @@ -11172,11 +11172,6 @@ msgstr "%s%s: nemůžu přesměrovat stdout" msgid "%s%s: unable to redirect stderr" msgstr "%s%s: nemohu přesměrovat stderr" -msgid "" -"path to Python 2.x interpreter (*deprecated* since version 2.6, scripts must " -"use Python 3 only)" -msgstr "" - #, c-format msgid "%s%s: unable to launch global interpreter" msgstr "%s%s: nemohu spustit globální interpreter" @@ -13647,12 +13642,3 @@ msgstr "%s%s: vypršel časový limit \"%s\" pro %s" #, c-format msgid "%s%s: unable to connect: unexpected error (%d)" msgstr "%s%s: nemohu se připojit\" neočekávaná chyba (%d)" - -#, fuzzy, c-format -#~ msgid "%sReal name of %s%s%s has been set to \"%s\"" -#~ msgstr "%sSelhalo odnastavení volby \"%s\"" - -#, fuzzy -#~| msgid "WeeChat version" -#~ msgid "WeeChat session saved" -#~ msgstr "verze WeeChat" diff --git a/po/de.po b/po/de.po index b3caa575f..4b5527c57 100644 --- a/po/de.po +++ b/po/de.po @@ -25,8 +25,8 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2022-09-28 20:50+0200\n" -"PO-Revision-Date: 2022-09-29 10:38+0200\n" +"POT-Creation-Date: 2022-10-15 22:42+0200\n" +"PO-Revision-Date: 2022-10-15 22:51+0200\n" "Last-Translator: Nils Görs \n" "Language-Team: German \n" "Language: de\n" @@ -12744,12 +12744,6 @@ msgstr "" "Ersatzzeichen für Dateinamen, falls der Dateiname Sonderzeichen beinhaltet " "(z.B. das Trennzeichen bei Verzeichnissen \"/\")" -#| msgid "" -#| "compression of messages sent to clients with \"weechat\" protocol: 0 = " -#| "disable compression, 1 = low compression / fast ... 100 = best " -#| "compression / slow; the value is a percentage converted to 1-9 for zlib " -#| "and 1-19 for zstd; the default value is recommended, it offers a good " -#| "compromise between compression and speed" msgid "" "compression level for rotated log files (with extension \".1\", \".2\", " "etc.), if option logger.file.rotation_compression_type is enabled: 1 = low " @@ -12757,16 +12751,12 @@ msgid "" "percentage converted to 1-9 for gzip and 1-19 for zstd; the default value is " "recommended, it offers a good compromise between compression and speed" msgstr "" -"Komprimierungsstufe für rotierende Protokolldateien (mit Dateierweiterung" -" „.1“, „.2“," -"etc.), falls die Option logger.file.rotation_compression_type aktiviert ist:" -" 1 = niedrige" -"Komprimierung / schnell ... 100 = beste Komprimierung / langsam; Der Wert des" -" Prozentsatzes " -"wird umgewandelt in 1-9 für gzip und 1-19 für zstd; der Standardwert wird" -" hierbei" -"empfohlen, denn er bietet einen guten Kompromiss zwischen Komprimierung und" -" Geschwindigkeit" +"Komprimierungsstufe für rotierende Protokolldateien (mit Dateierweiterung " +"„.1“, „.2“,etc.), falls die Option logger.file.rotation_compression_type " +"aktiviert ist: 1 = niedrigeKomprimierung / schnell ... 100 = beste " +"Komprimierung / langsam; Der Wert des Prozentsatzes wird umgewandelt in 1-9 " +"für gzip und 1-19 für zstd; der Standardwert wird hierbeiempfohlen, denn er " +"bietet einen guten Kompromiss zwischen Komprimierung und Geschwindigkeit" msgid "" "compression type for rotated log files; if set to \"none\", rotated log " @@ -12775,17 +12765,13 @@ msgid "" "compress files with the new type (or decompress files), then change the " "option in logger.conf, then load the logger plugin" msgstr "" -"Komprimierungstyp für rotierende Protokolldateien; wenn \"none\" genutzt" -" wird, findet " -"keine Komprimierung der Protokolldateien statt; WARNUNG: wenn die Rotation" -" mit einer " -"anderen Stufe der Komprimierung (oder gar keiner Komprimierung) aktiviert" -" wurde, " -"muss zuerst die Logger-Erweiterung beendet werden., dann de-komprimieren Sie" -" die Dateien " -"mit dem neuen Typ, danach muss die Option in der Datei logger.conf angepasst" -" werden, " -"bevor die Logger-Erweiterung neu geladen wird" +"Komprimierungstyp für rotierende Protokolldateien; wenn \"none\" genutzt " +"wird, findet keine Komprimierung der Protokolldateien statt; WARNUNG: wenn " +"die Rotation mit einer anderen Stufe der Komprimierung (oder gar keiner " +"Komprimierung) aktiviert wurde, muss zuerst die Logger-Erweiterung beendet " +"werden., dann de-komprimieren Sie die Dateien mit dem neuen Typ, danach muss " +"die Option in der Datei logger.conf angepasst werden, bevor die Logger-" +"Erweiterung neu geladen wird" msgid "" "when this size is reached, a rotation of log files is performed: the " @@ -12798,21 +12784,16 @@ msgid "" "should first set the compression type via option logger.file." "rotation_compression_type" msgstr "" -"Wenn diese Größe erreicht ist, wird eine Rotation der Protokolldateien" -" durchgeführt: die" -"vorhandene rotierte Protokolldateien werden umbenannt (.1 wird zu .2, .2 wird" -" zu .3 usw.)." -"Die aktuelle Datei erhält wird umbenannt und erhält .1 als Erweiterung; eine" -" ganze Zahl mit" -"Suffix ist erlaubt: b = Bytes (Standard, wenn keine Einheit angegeben ist), k" -" = Kilobytes, m =" -"Megabyte, g = Gigabyte, t = Terabyte; Beispiel: \"2g\" bewirkt eine Rotation" -"sobald die Dateigröße > 2.000.000.000 Byte ist; wenn auf „0“ gesetzt, erfolgt" -" keine Rotation" -"der Dateien (unbegrenzte Protokollgröße); WARNUNG: Bevor Sie diese Option" -" ändern," -"sollte sie zuerst den Komprimierungstyp über die Option logger.file festlegen." -"rotation_compression_type" +"Wenn diese Größe erreicht ist, wird eine Rotation der Protokolldateien " +"durchgeführt: dievorhandene rotierte Protokolldateien werden umbenannt (.1 " +"wird zu .2, .2 wird zu .3 usw.).Die aktuelle Datei erhält wird umbenannt und " +"erhält .1 als Erweiterung; eine ganze Zahl mitSuffix ist erlaubt: b = Bytes " +"(Standard, wenn keine Einheit angegeben ist), k = Kilobytes, m =Megabyte, g " +"= Gigabyte, t = Terabyte; Beispiel: \"2g\" bewirkt eine Rotationsobald die " +"Dateigröße > 2.000.000.000 Byte ist; wenn auf „0“ gesetzt, erfolgt keine " +"Rotationder Dateien (unbegrenzte Protokollgröße); WARNUNG: Bevor Sie diese " +"Option ändern,sollte sie zuerst den Komprimierungstyp über die Option logger." +"file festlegen.rotation_compression_type" msgid "timestamp used in log files (see man strftime for date/time specifiers)" msgstr "" @@ -13540,13 +13521,6 @@ msgstr "%s%s: Standardausgabe (stdout) kann nicht weitergeleitet werden" msgid "%s%s: unable to redirect stderr" msgstr "%s%s: Standardfehlerausgabe (stderr) kann nicht weitergeleitet werden" -msgid "" -"path to Python 2.x interpreter (*deprecated* since version 2.6, scripts must " -"use Python 3 only)" -msgstr "" -"Pfad zum Python 2.x Interpreter (*veraltet*, seit WeeChat Version 2.6 müssen " -"Skripten Python3 verwenden)" - #, c-format msgid "%s%s: unable to launch global interpreter" msgstr "%s%s: globaler Interpreter kann nicht gestartet werden" @@ -15522,8 +15496,7 @@ msgstr "verwaltet Trigger, das Schweizer Armeemesser für WeeChat" msgid "" "list|listfull|listdefault || add|addoff|addreplace " -"[\"\" [\"\" [\"\" [\"\" [\"<" -"return_code>\" [\"\"]]]]]] " +"[\"\" [\"\" [\"\" [\"\" [\"\" [\"\"]]]]]] " "|| addinput [] || input|output|recreate || set