public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-asyncssh] rawhide: spec cleanup and modernization
@ 2026-11-30 17:37 Filipe Rosset
  0 siblings, 0 replies; only message in thread
From: Filipe Rosset @ 2026-11-30 17:37 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/python-asyncssh
            Branch : rawhide
            Commit : eafeaf68625266a05bb33d8bffac5595b908c94e
            Author : Filipe Rosset <rosset.filipe@gmail.com>
            Date   : 2026-11-30T12:23:33-03:00
            Stats  : +7/-13 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/python-asyncssh/c/eafeaf68625266a05bb33d8bffac5595b908c94e?branch=rawhide

            Log:
            spec cleanup and modernization

Signed-off-by: Filipe Rosset <rosset.filipe@gmail.com>

---
diff --git a/python-asyncssh.spec b/python-asyncssh.spec
index 195b8fc..e947082 100644
--- a/python-asyncssh.spec
+++ b/python-asyncssh.spec
@@ -9,24 +9,21 @@ Version:        2.24.2
 Release:        %autorelease
 Summary:        Asynchronous SSH for Python
 
-# Automatically converted from old format: EPL-2.0 or GPLv2+ - review is highly recommended.
 License:        EPL-2.0 OR GPL-2.0-or-later
 URL:            https://github.com/ronf/asyncssh
 Source0:        %pypi_source
+
 # OpenSSL 4.0 (and 3.x without the legacy provider) no longer supports
 # SHA1 for RSA signing, so skip the ssh-rsa / rsa1024-sha1 signature
 # algorithms in the test when the backend cannot do them.
 Patch0:         openssl4-sha1.diff
-
 BuildArch:      noarch
 
-
 # required by unittests
 BuildRequires:  openssh-clients
 BuildRequires:  openssl
 BuildRequires:  python3-gssapi
 
-
 # for OpenSSH private key encryption
 Suggests:       python3-bcrypt
 # for GSSAPI key exchange/authentication
@@ -38,7 +35,6 @@ Suggests:       python3-pyOpenSSL
 Suggests:       python3-fido2
 %endif
 
-
 %description
 %{desc}
 
@@ -53,11 +49,12 @@ Summary:        %{summary}
 %autosetup -p1 -n %{srcname}-%{version}
 
 # remove superfluous build dependencies
-sed -E '/(pytest-cov|coverage_conditional_plugin|\<coverage\>)/d' tox.ini -i  # coverage not desired
-sed -E '/(uvloop|python-pkcs11)/d' tox.ini -i  # not available, tests skipped when missing
-# sometimes upstream is too eager to bump this dependency,
-# e.g. due to 'Vulnerable OpenSSL included in cryptography wheels'
-sed "s/cryptography >= [^']\+/cryptography/" pyproject.toml -i
+%pyproject_patch_dependency coverage:ignore
+%pyproject_patch_dependency coverage_conditional_plugin:ignore
+%pyproject_patch_dependency pytest-cov:ignore
+%pyproject_patch_dependency uvloop:ignore
+%pyproject_patch_dependency python-pkcs11:ignore
+%pyproject_patch_dependency cryptography:drop_upper
 
 # disable optional fido2 dependency on epel,
 # since it is currently (?) not available on epel/rhel
@@ -69,12 +66,10 @@ sed 's@^ *\(fido2\)@# not available on epel/rhel # \1@' pyproject.toml tox.ini -
 %generate_buildrequires
 %pyproject_buildrequires -t
 
-
 %build
 sed -i '1,1s@^#!.*$@#!%{__python3}@' examples/*.py
 %pyproject_wheel
 
-
 %install
 %pyproject_install
 %pyproject_save_files -l %{srcname}
@@ -86,6 +81,5 @@ sed -i '1,1s@^#!.*$@#!%{__python3}@' examples/*.py
 %license LICENSE COPYRIGHT
 %doc README.rst examples
 
-
 %changelog
 %autochangelog

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-30 17:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-30 17:37 [rpms/python-asyncssh] rawhide: spec cleanup and modernization Filipe Rosset

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox