Blame python-fabric.spec

4bbc54a
# Tests are disabled by default. 😞
4bbc54a
# Enable if https://bugzilla.redhat.com/show_bug.cgi?id=1949502 /
4bbc54a
# https://github.com/bitprophet/pytest-relaxed/issues/12 is resolved:
4bbc54a
%bcond_with     tests
4bbc54a
7369c88
%global         srcname     fabric
7369c88
%global         forgeurl    https://github.com/fabric/%{srcname}
7369c88
Version:        2.7.0
7369c88
%global         tag         %{version}
7369c88
%forgemeta
7369c88
4bbc54a
Name:           python-%{srcname}
7369c88
Release:        %autorelease
4bbc54a
Summary:        High level SSH command execution
7369c88
4bbc54a
License:        BSD
4bbc54a
URL:            %forgeurl
4bbc54a
Source0:        %forgesource
7369c88
Patch0:         python-fabric-remove-pathlib2.patch
4bbc54a
4bbc54a
BuildArch:      noarch
4bbc54a
4bbc54a
BuildRequires:  python3-devel
4bbc54a
4bbc54a
4bbc54a
%if %{with tests}
4bbc54a
# Extra pytest (a superset of extra testing)
7369c88
BuildRequires:  python3dist(pytest)
4bbc54a
# Missing from setup.py (only in requirements-dev.txt), but still needed for
4bbc54a
# testing:
7369c88
BuildRequires:  python3dist(pytest-relaxed)
4bbc54a
%endif
4bbc54a
4bbc54a
BuildRequires:  help2man
4bbc54a
4bbc54a
%global _description %{expand:
4bbc54a
Fabric is a high level Python (2.7, 3.4+) library designed to execute shell
4bbc54a
commands remotely over SSH, yielding useful Python objects in return. It builds
4bbc54a
on top of Invoke (subprocess command execution and command-line features) and
4bbc54a
Paramiko (SSH protocol implementation), extending their APIs to complement one
4bbc54a
another and provide additional functionality.}
4bbc54a
4bbc54a
%description %{_description}
4bbc54a
4bbc54a
4bbc54a
%package -n python3-%{srcname}
4bbc54a
Summary:        %{summary}
4bbc54a
4bbc54a
%description -n python3-%{srcname} %{_description}
4bbc54a
4bbc54a
4bbc54a
%prep
7369c88
%forgeautosetup -p1
4bbc54a
4bbc54a
7369c88
%generate_buildrequires
7369c88
%pyproject_buildrequires -r
4bbc54a
4bbc54a
7369c88
%build
7369c88
%pyproject_wheel
4bbc54a
4bbc54a
4bbc54a
%install
7369c88
%pyproject_install
7369c88
%pyproject_save_files fabric
4bbc54a
4bbc54a
4bbc54a
%check
4bbc54a
%if %{with tests}
4bbc54a
%pytest
4bbc54a
%endif
4bbc54a
4bbc54a
7369c88
%files -n python3-%{srcname} -f %{pyproject_files}
4bbc54a
%license LICENSE
4bbc54a
%doc README.rst
4bbc54a
%{_bindir}/fab
4bbc54a
4bbc54a
4bbc54a
%changelog
7369c88
%autochangelog