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

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

    <bug>
          <bug_id>32321</bug_id>
          
          <creation_ts>2016-07-28 11:08:16 +0300</creation_ts>
          <short_desc>Включить поддержку python3</short_desc>
          <delta_ts>2016-07-28 18:26:44 +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>python-module-libcloud</component>
          <version>unstable</version>
          <rep_platform>all</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>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Andrey Cherepanov">cas</reporter>
          <assigned_to name="Valentin Rosavitskiy">valintinr</assigned_to>
          <cc>imz</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>157815</commentid>
    <comment_count>0</comment_count>
    <who name="Andrey Cherepanov">cas</who>
    <bug_when>2016-07-28 11:08:16 +0300</bug_when>
    <thetext>C %def_with python3 собирается. Прошу пересобрать или разрешить мне.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>157816</commentid>
    <comment_count>1</comment_count>
    <who name="Valentin Rosavitskiy">valintinr</who>
    <bug_when>2016-07-28 11:19:56 +0300</bug_when>
    <thetext>Отправил на сборку опять, прошлый раз почему-то упустил это (хотя был уверен что включил %def_with)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>157818</commentid>
    <comment_count>2</comment_count>
    <who name="Valentin Rosavitskiy">valintinr</who>
    <bug_when>2016-07-28 13:20:12 +0300</bug_when>
    <thetext>Не получается собрать, вылазит зависимость

python3-module-libcloud#1.1.0-alt2	python3(pysphere) &lt; 0


собираю python-module-pysphere с python3 и там еще больше зависимостей (я так понимаю он в принципе под 3-м питоном не работает)
python3-module-pysphere#0.1.8-alt3	python3(UserDict) &lt; 0
python3-module-pysphere#0.1.8-alt3	python3(exceptions) &lt; 0
python3-module-pysphere#0.1.8-alt3	python3(md5) &lt; 0
python3-module-pysphere#0.1.8-alt3	python3(mimetools) &lt; 0
python3-module-pysphere#0.1.8-alt3	python3(multifile) &lt; 0

Подскажите как правильно разрулить ситуацию.


P.S права есть у всех
$ ssh git.alt acl sisyphus python-module-libcloud show
python-module-libcloud  valintinr @everybody</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>157823</commentid>
    <comment_count>3</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2016-07-28 16:14:52 +0300</bug_when>
    <thetext>mimetools и md5 поставлялись вместе с Python2, в Python3 отстутствуют. Надо переписать те куски кода, которые их импортируют на Python3.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>157824</commentid>
    <comment_count>4</comment_count>
    <who name="Andrey Cherepanov">cas</who>
    <bug_when>2016-07-28 16:18:48 +0300</bug_when>
    <thetext>python-module-pysphere не адаптирован под python3. Проще выкинуть из модуля под python3 файл libcloud/compute/drivers/vsphere.py и выкорчевать из libcloud/compute/providers.py</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>157825</commentid>
    <comment_count>5</comment_count>
    <who name="Valentin Rosavitskiy">valintinr</who>
    <bug_when>2016-07-28 16:21:19 +0300</bug_when>
    <thetext>(В ответ на комментарий №4)
&gt; python-module-pysphere не адаптирован под python3. Проще выкинуть из модуля под
&gt; python3 файл libcloud/compute/drivers/vsphere.py и выкорчевать из
&gt; libcloud/compute/providers.py

Ок, сейчас попробую.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>157827</commentid>
    <comment_count>6</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2016-07-28 16:31:32 +0300</bug_when>
    <thetext>https://docs.python.org/2.7/library/mimetools.html : &quot;Deprecated since version 2.3: The email package should be used in preference to the mimetools module. This module is present only to maintain backward compatibility, and it has been removed in 3.x.&quot;

Если в Python3 сказать import mimetools, это не сработает.

С md5 похожая ситуация.

Про весь список сходу сказать не могу, возможно, что-то можно собрать, а чему-то предлагается замена. Можно погуглить.

Ага, это про сборку pysphere. Не заметил, что вопрос был про libcloud. Можно вынести какую-то опциональную часть, которая не будет работать в Python3, в подпакет или спрятать в коде import pysphere:

try:
    import pysphere
....</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>157832</commentid>
    <comment_count>7</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2016-07-28 18:26:44 +0300</bug_when>
    <thetext>python-module-libcloud-1.1.0-alt3 -&gt; sisyphus:

* Thu Jul 28 2016 Valentin Rosavitskiy &lt;valintinr@altlinux&gt; 1.1.0-alt3
- Dropped pysphere for build with python3

* Thu Jul 28 2016 Valentin Rosavitskiy &lt;valintinr@altlinux&gt; 1.1.0-alt2
- Build with python3 (ALT 32321)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>