66# МАН69К <
[email protected] >, 2022.
77889- # gfbdrgng <
[email protected] >, 2023, 2024.
9+ # gfbdrgng <
[email protected] >, 2023, 2024
, 2025 .
1010# Andrey Rybakov <
[email protected] >, 2023.
1111# Nikita <
[email protected] >, 2024.
1212msgid ""
1313msgstr ""
1414"Project-Id-Version: Python Packaging User Guide\n"
1515"Report-Msgid-Bugs-To: \n"
1616"POT-Creation-Date: 2025-02-17 16:07+0000\n"
17- "PO-Revision-Date: 2024-07-15 14:09 +0000\n"
17+ "PO-Revision-Date: 2025-02-18 04:35 +0000\n"
1818"Last-Translator: gfbdrgng <
[email protected] >\n"
19- "Language-Team: Russian <https://hosted.weblate.org/projects/pypa/packaging- "
20- "python-org/ru/>\n"
19+ "Language-Team: Russian <https://hosted.weblate.org/projects/pypa/"
20+ "packaging- python-org/ru/>\n"
2121"Language: ru\n"
2222"MIME-Version: 1.0\n"
2323"Content-Type: text/plain; charset=UTF-8\n"
2424"Content-Transfer-Encoding: 8bit\n"
2525"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
2626"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
27- "X-Generator: Weblate 5.7 -dev\n"
27+ "X-Generator: Weblate 5.10.1 -dev\n"
2828
2929#: ../source/contribute.rst:5
3030msgid "Contribute to this guide"
@@ -2163,25 +2163,24 @@ msgid "Where to read more about this?"
21632163msgstr "Где почитать об этом?"
21642164
21652165#: ../source/discussions/setup-py-deprecated.rst:213
2166- #, fuzzy
21672166msgid ""
21682167"`Why you shouldn't invoke setup.py directly <https://blog.ganssle.io/"
21692168"articles/2021/10/setup-py-deprecated.html>`__ by Paul Ganssle"
2170- msgstr "https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html"
2169+ msgstr ""
2170+ "`Почему не следует вызывать setup.py напрямую <https://blog.ganssle.io/"
2171+ "articles/2021/10/setup-py-deprecated.html>`__ by Paul Ganssle"
21712172
21722173#: ../source/discussions/setup-py-deprecated.rst:215
21732174msgid ":doc:`setuptools:deprecated/commands`"
21742175msgstr ":doc:`setuptools:deprecated/commands`"
21752176
21762177#: ../source/discussions/single-source-version.rst:5
2177- #, fuzzy
21782178msgid "Single-sourcing the Project Version"
2179- msgstr "Однопользовательская версия пакета "
2179+ msgstr "Единая версия проекта "
21802180
21812181#: ../source/discussions/single-source-version.rst:7
2182- #, fuzzy
21832182msgid "Complete"
2184- msgstr "Незавершено "
2183+ msgstr "Выполнено "
21852184
21862185#: ../source/discussions/single-source-version.rst:8
21872186msgid "2024-10-07"
@@ -2195,44 +2194,58 @@ msgid ""
21952194"same version specifier as :func:`importlib.metadata.version` reports for the "
21962195"distribution package (as described in :ref:`runtime-version-access`)."
21972196msgstr ""
2197+ "Многие Python :term:`distribution packages <Distribution Package>` публикуют "
2198+ "один Python :term:`import package <Import Package>`, где желательно, чтобы "
2199+ "атрибут runtime ``__version__`` на импортном пакете сообщал тот же "
2200+ "спецификатор версии, что и :func:`importlib.metadata.version` сообщает для "
2201+ "дистрибутивного пакета (как описано в :ref:`runtime-version-access`)."
21982202
21992203#: ../source/discussions/single-source-version.rst:16
22002204msgid ""
22012205"It is also frequently desired that this version information be derived from "
22022206"a version control system *tag* (such as ``v1.2.3``) rather than being "
22032207"manually updated in the source code."
22042208msgstr ""
2209+ "Также часто бывает желательно, чтобы эта информация о версии была получена "
2210+ "из *метки* системы контроля версий (например, ``v1.2.3``), а не обновлялась "
2211+ "вручную в исходном коде."
22052212
22062213#: ../source/discussions/single-source-version.rst:20
22072214msgid ""
22082215"Some projects may choose to simply live with the data entry duplication, and "
22092216"rely on automated testing to ensure the different values do not diverge."
22102217msgstr ""
2218+ "Некоторые проекты могут просто смириться с дублированием ввода данных и "
2219+ "полагаться на автоматизированное тестирование, чтобы убедиться, что "
2220+ "различные значения не расходятся."
22112221
22122222#: ../source/discussions/single-source-version.rst:23
2213- #, fuzzy
22142223msgid ""
22152224"Alternatively, a project's chosen build system may offer a way to define a "
22162225"single source of truth for the version number."
22172226msgstr ""
2218- "Существует множество методов поддержания единого источника истины для номера "
2219- "версии вашего проекта: "
2227+ "В качестве альтернативы, выбранная проектом система сборки может предложить "
2228+ "способ определения единого источника истины для номера версии. "
22202229
22212230#: ../source/discussions/single-source-version.rst:26
22222231msgid "In general, the options are:"
2223- msgstr ""
2232+ msgstr "В общем, возможны следующие варианты: "
22242233
22252234#: ../source/discussions/single-source-version.rst:28
22262235msgid ""
22272236"If the code is in a version control system (VCS), such as Git, then the "
22282237"version can be extracted from the VCS."
22292238msgstr ""
2239+ "Если код находится в системе контроля версий (VCS), например Git, то версию "
2240+ "можно извлечь из VCS."
22302241
22312242#: ../source/discussions/single-source-version.rst:30
22322243msgid ""
22332244"The version can be hard-coded into the :file:`pyproject.toml` file -- and "
22342245"the build system can copy it into other locations it may be required."
22352246msgstr ""
2247+ "Версия может быть жестко задана в файле :file:`pyproject.toml`, а система "
2248+ "сборки может скопировать ее в другие места, которые могут потребоваться."
22362249
22372250#: ../source/discussions/single-source-version.rst:33
22382251msgid ""
@@ -2242,10 +2255,17 @@ msgid ""
22422255"attribute in a particular module, such as :file:`__init__.py`. The build "
22432256"system can then extract it from the runtime location at build time."
22442257msgstr ""
2258+ "Строка версии может быть жестко закодирована в исходном коде - либо в "
2259+ "специальном файле, таком как :file:`_version.txt` (который затем должен "
2260+ "поставляться как часть пакета распространения исходного кода проекта), либо "
2261+ "как атрибут в определенном модуле, таком как :file:`__init__.py`. Тогда "
2262+ "система сборки может извлечь его из места выполнения во время сборки."
22452263
22462264#: ../source/discussions/single-source-version.rst:38
22472265msgid "Consult your build system's documentation for their recommended method."
22482266msgstr ""
2267+ "Обратитесь к документации вашей системы сборки, чтобы узнать о рекомендуемом "
2268+ "методе."
22492269
22502270#: ../source/discussions/single-source-version.rst:40
22512271msgid ""
@@ -2255,16 +2275,24 @@ msgid ""
22552275"``importlib.metadata.version(\"dist-name\")`` report the same value (note: "
22562276"for many projects, ``import_name`` and ``dist-name`` will be the same name)."
22572277msgstr ""
2278+ "Если предполагается, что дистрибутив и связанный с ним пакет импорта имеют "
2279+ "одну и ту же версию, рекомендуется включить в проект автоматизированный "
2280+ "тестовый пример, который гарантирует, что ``import_name.__version__`` и "
2281+ "``importlib.metadata.version(\"dist-name\")`` сообщают одно и то же значение "
2282+ "(примечание: для многих проектов ``import_name`` и ``dist-name`` будут иметь "
2283+ "одно и то же имя)."
22582284
22592285#: ../source/discussions/single-source-version.rst:50
22602286msgid "Build System Version Handling"
2261- msgstr ""
2287+ msgstr "Обработка версий системы сборки "
22622288
22632289#: ../source/discussions/single-source-version.rst:52
22642290msgid ""
22652291"The following are links to some build system's documentation for handling "
22662292"version strings."
22672293msgstr ""
2294+ "Ниже приведены ссылки на документацию некоторых систем сборки по работе со "
2295+ "строками версий."
22682296
22692297#: ../source/discussions/single-source-version.rst:54
22702298msgid "`Flit <https://flit.pypa.io/en/stable/>`_"
0 commit comments