From f40297aae75f57047d4773448e9bd274447f18d18e31a68d027c0779613045f6 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Tue, 17 Jun 2025 04:20:56 +0000 Subject: [PATCH] - Switch to pyproject macros. - Run the testsuite. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ftputil?expand=0&rev=13 --- python-ftputil.changes | 7 +++++++ python-ftputil.spec | 14 ++++++++++---- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/python-ftputil.changes b/python-ftputil.changes index 7d59a33..fd9f8c4 100644 --- a/python-ftputil.changes +++ b/python-ftputil.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Tue Jun 17 04:17:16 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. +- Run the testsuite. + +------------------------------------------------------------------- Wed Apr 16 14:05:01 UTC 2025 - Felix Stegmeier - Update to 5.1.0 diff --git a/python-ftputil.spec b/python-ftputil.spec index 3507247..06f237d 100644 --- a/python-ftputil.spec +++ b/python-ftputil.spec @@ -22,14 +22,16 @@ Version: 5.1.0 Release: 0 Summary: High-level FTP client library (virtual file system and more) for Python License: BSD-3-Clause -Group: Development/Languages/Python URL: http://ftputil.sschwarzer.net/ Source: https://files.pythonhosted.org/packages/source/f/ftputil/ftputil-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros # SECTION test requirements BuildRequires: %{python_module pytest} +BuildRequires: %{python_module freezegun} # /SECTION BuildArch: noarch @@ -48,16 +50,20 @@ servers in different timezones. %setup -q -n ftputil-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} +%check +# Requires network +%pytest --ignore test/test_real_ftp.py -k 'not (test_upload or test_servers)' + %files %{python_files} %license LICENSE %doc README.md %{python_sitelib}/ftputil -%{python_sitelib}/ftputil-%{version}*.egg-info +%{python_sitelib}/ftputil-%{version}.dist-info %changelog