<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>50838</bug_id>
          
          <creation_ts>2024-07-05 10:35:35 +0300</creation_ts>
          <short_desc>При запуске теста sysfont_test.py: устаревший вызов pkg_resources.declare_namespace(&apos;paste&apos;)</short_desc>
          <delta_ts>2024-07-08 17:34:47 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>python3-module-pygame</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Tatyana Gagina">tatyana</reporter>
          <assigned_to name="Grigory Ustinov">grenka</assigned_to>
          <cc>grenka</cc>
    
    <cc>lav</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>248565</commentid>
    <comment_count>0</comment_count>
    <who name="Tatyana Gagina">tatyana</who>
    <bug_when>2024-07-05 10:35:35 +0300</bug_when>
    <thetext>Стенды, обновлённые до Sisyphus:
ALT Workstation K x86-64
ALT Workstation x86-64
ALT Education KDE/XFCE x86-64

Версия: python3-module-pygame-2.5.2-alt1

Шаги: 
1. Установить пакет:
# apt-get install -y  python3-module-pygame

2. Запустить тест sysfont_test.py в терминале:
# cd /usr/lib64/python3/site-packages/pygame/tests/ &amp;&amp; python3 ./sysfont_test.py

Результат:
/usr/lib64/python3/site-packages/pygame/pkgdata.py:25: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
  from pkg_resources import resource_stream, resource_exists
/usr/lib64/python3/site-packages/pkg_resources/__init__.py:2825: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace(&apos;paste&apos;)`.
Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
  declare_namespace(pkg)


Детали: не воспроизводится на P10  c версией python3-module-pygame-2.0.1-alt1
Вывод: 
----------------------------------------------------------------------
Ran 6 tests in 0.075s

OK (skipped=2)


Согласно из https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages:

&quot;Реализация namespace_packages опирается на pkg_resources. Однако pkg_resources имеет некоторые нежелательные свойства, и Setuptools намерена отказаться от его использования в будущем&quot;. 

Ожидаемый результат: данного вызова нет, предупреждений, соответственно, тоже; не используется вызов ввиду указанных выше причин.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>248636</commentid>
    <comment_count>1</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2024-07-08 17:34:47 +0300</bug_when>
    <thetext>python3-module-pygame-2.6.0-alt1 -&gt; sisyphus:

 Fri Jul 05 2024 Grigory Ustinov &lt;grenka@altlinux&gt; 2.6.0-alt1
 - Automatically updated to 2.6.0.
 - Built with check (Closes: #50821, #50833, #50834, #50836, #50838, #50839).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>