public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Major Hayden <major@mhtx.net>
To: git-commits@fedoraproject.org
Subject: [rpms/python-sshtunnel] paramiko-dss: Update to 0.4.0
Date: Sun, 07 Jun 2026 05:25:29 GMT [thread overview]
Message-ID: <178080992935.1.18301414291745861817.rpms-python-sshtunnel-55bfe5e1a660@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/python-sshtunnel
Branch : paramiko-dss
Commit : 55bfe5e1a660ab23b103e0a03bd3d3ba014d4ab1
Author : Major Hayden <major@mhtx.net>
Date : 2021-06-14T10:04:05-05:00
Stats : +41/-19 in 3 file(s)
URL : https://src.fedoraproject.org/rpms/python-sshtunnel/c/55bfe5e1a660ab23b103e0a03bd3d3ba014d4ab1?branch=paramiko-dss
Log:
Update to 0.4.0
---
diff --git a/.gitignore b/.gitignore
index b7b7cd0..bd127ab 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
/sshtunnel-0.1.5.tar.gz
+/sshtunnel-0.4.0.tar.gz
diff --git a/python-sshtunnel.spec b/python-sshtunnel.spec
index d1138a1..b2bf373 100644
--- a/python-sshtunnel.spec
+++ b/python-sshtunnel.spec
@@ -1,8 +1,11 @@
%global pypi_name sshtunnel
+# tests are enabled by default
+%bcond_without tests
+
Name: python-%{pypi_name}
-Version: 0.1.5
-Release: 5%{?dist}
+Version: 0.4.0
+Release: 1%{?dist}
Summary: Pure python SSH tunnels
License: MIT
@@ -10,21 +13,20 @@ URL: https://github.com/pahaz/sshtunnel
Source0: %{pypi_source}
BuildArch: noarch
+BuildRequires: pyproject-rpm-macros
BuildRequires: python3-devel
-BuildRequires: python3dist(check-manifest)
-BuildRequires: python3dist(paramiko) >= 1.15.2
-BuildRequires: python3dist(setuptools)
-BuildRequires: python3dist(tox) >= 1.8.1
+
+%if %{with tests}
+BuildRequires: openssh-clients
+BuildRequires: python3-pytest
+%endif
+
%description
Pure python SSH tunnels
%package -n python3-%{pypi_name}
Summary: %{summary}
-%{?python_provide:%python_provide python3-%{pypi_name}}
-Requires: python3dist(paramiko) >= 1.15.2
-Requires: python3dist(setuptools)
-Requires: python3dist(tox) >= 1.8.1
%description -n python3-%{pypi_name}
Pure python SSH tunnels
@@ -32,24 +34,43 @@ Pure python SSH tunnels
%prep
%autosetup -n %{pypi_name}-%{version}
-# Remove bundled egg-info
-rm -rf %{pypi_name}.egg-info
+
+# Remove the python shebang from non-executable files.
+sed -i '1{\@^#!/usr/bin/env python@d}' sshtunnel.py
+
+# Update tests to import the built-in mock.
+sed -i 's/^import mock/from unittest import mock/' tests/*.py
+
%build
-%py3_build
+%pyproject_wheel
+
+
+%generate_buildrequires
+%pyproject_buildrequires -r
+
%install
-%py3_install
+%pyproject_install
+%pyproject_save_files sshtunnel
+
+
+%if %{with tests}
+%check
+%pytest
+%endif
-%files -n python3-%{pypi_name}
+
+%files -n python3-%{pypi_name} -f %{pyproject_files}
%license LICENSE
%doc README.rst
%{_bindir}/sshtunnel
-%{python3_sitelib}/__pycache__/*
-%{python3_sitelib}/%{pypi_name}.py
-%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
+
%changelog
+* Mon Jun 14 2021 Major Hayden <major@mhtx.net> - 0.4.0-1
+- New version 0.4.0.
+
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.1.5-5
- Rebuilt for Python 3.10
diff --git a/sources b/sources
index 1f58044..af7a32c 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (sshtunnel-0.1.5.tar.gz) = ae804865a83bae8443cff1a73b168ffb8aac0c5c4fa6c7a5e142f4f95b4eef34bc7674588fa8797fa35b2685016828bcb137f4102e84ea15089671cf64503d17
+SHA512 (sshtunnel-0.4.0.tar.gz) = c0e1fd9838369f3679cdf71f59994cdf658358bdbbb745cf4e765b4b82edfada966b131220c56e4b3bb88229607b17f2ce520bf3204d5aae8084dd4035024366
reply other threads:[~2026-06-07 5:25 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178080992935.1.18301414291745861817.rpms-python-sshtunnel-55bfe5e1a660@fedoraproject.org \
--to=major@mhtx.net \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox