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

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

    <bug>
          <bug_id>44944</bug_id>
          
          <creation_ts>2023-01-17 15:58:04 +0300</creation_ts>
          <short_desc>support for cryptography 39</short_desc>
          <delta_ts>2024-02-18 03:21:56 +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-openssl</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>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>49358</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Stanislav Levin">slev</reporter>
          <assigned_to name="Vitaly Lipatov">lav</assigned_to>
          <cc>cow</cc>
    
    <cc>lav</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>220241</commentid>
    <comment_count>0</comment_count>
    <who name="Stanislav Levin">slev</who>
    <bug_when>2023-01-17 15:58:04 +0300</bug_when>
    <thetext>certbot depends on PyOpenSSL. PyOpenSSL 22.1.0 (current version in Sisyphus) in turn pins its runtime dependency on cryptography to `&gt;=38.0.0,&lt;39`. Sisyphus&apos; cryptography has version 39.

This breaks certbot:
```
[builder@localhost .in]$ certbot --debug --help 
Exiting abnormally:
Traceback (most recent call last):
  File &quot;/usr/bin/certbot&quot;, line 36, in &lt;module&gt;
    sys.exit(load_entry_point(&apos;certbot==1.32.0&apos;, &apos;console_scripts&apos;, &apos;certbot&apos;)())
  File &quot;/usr/share/certbot/certbot/main.py&quot;, line 19, in main
    return internal_main.main(cli_args)
  File &quot;/usr/share/certbot/certbot/_internal/main.py&quot;, line 1705, in main
    plugins = plugins_disco.PluginsRegistry.find_all()
  File &quot;/usr/share/certbot/certbot/_internal/plugins/disco.py&quot;, line 241, in find_all
    plugin_ep = cls._load_entry_point(entry_point, plugins, with_prefix=False)
  File &quot;/usr/share/certbot/certbot/_internal/plugins/disco.py&quot;, line 261, in _load_entry_point
    plugin_ep = PluginEntryPoint(entry_point, with_prefix)
  File &quot;/usr/share/certbot/certbot/_internal/plugins/disco.py&quot;, line 60, in __init__
    self.plugin_cls: Type[interfaces.Plugin] = entry_point.load()
  File &quot;/usr/lib64/python3/site-packages/pkg_resources/__init__.py&quot;, line 2470, in load
    self.require(*args, **kwargs)
  File &quot;/usr/lib64/python3/site-packages/pkg_resources/__init__.py&quot;, line 2493, in require
    items = working_set.resolve(reqs, env, installer, extras=self.extras)
  File &quot;/usr/lib64/python3/site-packages/pkg_resources/__init__.py&quot;, line 800, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (cryptography 39.0.0 (/usr/lib64/python3/site-packages), Requirement.parse(&apos;cryptography&lt;39,&gt;=38.0.0&apos;), {&apos;PyOpenSSL&apos;})
```

PyOpenSSL 23.0.0 bumped dependency on cryptography to `&gt;=38.0.0,&lt;40&quot;`:
https://github.com/pyca/pyopenssl/pull/1175</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>224877</commentid>
    <comment_count>1</comment_count>
    <who name="Stanislav Levin">slev</who>
    <bug_when>2023-04-24 11:21:33 +0300</bug_when>
    <thetext>@Every@ major release of cryptography breaks this package.

I suggest to get rid of upper limit:
https://github.com/pyca/pyopenssl/blob/d788a4f1ee2cfe0642ea9e0533bb840077a88ca6/setup.py#L101</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>230664</commentid>
    <comment_count>2</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2023-08-01 01:08:14 +0300</bug_when>
    <thetext>Проверил, что текущая
python3-module-openssl-23.2.0
работает с текущей
python3-module-cryptography-41.0.2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>230684</commentid>
    <comment_count>3</comment_count>
    <who name="Stanislav Levin">slev</who>
    <bug_when>2023-08-01 11:36:27 +0300</bug_when>
    <thetext>Эта проблема происходила и будет происходить при каждом несовместимом (по мнению авторов pyopenssl) обновлении cryptography. Например, сейчас они считают, что &quot;cryptography&gt;=41.0.0,&lt;42&quot;. Мое предложение в силе https://bugzilla.altlinux.org/show_bug.cgi?id=44944#c1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>241762</commentid>
    <comment_count>4</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2024-02-18 03:09:42 +0300</bug_when>
    <thetext>(Ответ для Stanislav Levin на комментарий #3)
&gt; Эта проблема происходила и будет происходить при каждом несовместимом (по
&gt; мнению авторов pyopenssl) обновлении cryptography. Например, сейчас они
&gt; считают, что &quot;cryptography&gt;=41.0.0,&lt;42&quot;. Мое предложение в силе
&gt; https://bugzilla.altlinux.org/show_bug.cgi?id=44944#c1
Пока решил не игнорировать мнение авторов pyopenssl и добавил
аналогичную зависимость к пакету, чтобы требуемая версия cryptography всегда была в репозитории.
Начиная с
python3-module-openssl.git 23.2.0-alt2</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>