Blob Blame History Raw
# Tests are disabled by default. 😞
# Enable if /
# is resolved:
%bcond_with     tests

%global         srcname     fabric
%global         forgeurl{srcname}
Version:        2.7.1
%global         tag         %{version}

Name:           python-%{srcname}
Release:        %autorelease
Summary:        High level SSH command execution

License:        BSD
URL:            %forgeurl
Source0:        %forgesource
Patch0:         python-fabric-remove-pathlib2.patch

BuildArch:      noarch

BuildRequires:  python3-devel

%if %{with tests}
# Extra pytest (a superset of extra testing)
BuildRequires:  python3dist(pytest)
# Missing from (only in requirements-dev.txt), but still needed for
# testing:
BuildRequires:  python3dist(pytest-relaxed)

BuildRequires:  help2man

%global _description %{expand:
Fabric is a high level Python (2.7, 3.4+) library designed to execute shell
commands remotely over SSH, yielding useful Python objects in return. It builds
on top of Invoke (subprocess command execution and command-line features) and
Paramiko (SSH protocol implementation), extending their APIs to complement one
another and provide additional functionality.}

%description %{_description}

%package -n python3-%{srcname}
Summary:        %{summary}

%description -n python3-%{srcname} %{_description}

%forgeautosetup -p1



%pyproject_save_files fabric

%if %{with tests}

%files -n python3-%{srcname} -f %{pyproject_files}
%license LICENSE
%doc README.rst