4a31846
%global pypi_name backcall
4a31846
4a31846
Name:           python-%{pypi_name}
4a31846
Version:        0.1.0
2227a59
Release:        %autorelease
4a31846
Summary:        Specifications for callback functions passed in to an API
4a31846
4a31846
License:        BSD
4a31846
URL:            https://github.com/takluyver/backcall
4a31846
Source0:        https://files.pythonhosted.org/packages/source/b/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
4a31846
Source1:        https://raw.githubusercontent.com/takluyver/backcall/8eb45a77a40edad74b33086d05fd4d99d43d80b0/LICENSE
4a31846
BuildArch:      noarch
4a31846
 
4a31846
BuildRequires:  python3-devel
4a31846
BuildRequires:  python3dist(pytest)
4a31846
BuildRequires:  python3dist(setuptools)
4a31846
4a31846
%?python_enable_dependency_generator
4a31846
4a31846
%description
4a31846
Specifications for callback functions passed in to an API.
4a31846
4a31846
If your code lets other people supply callback functions, it's important to
4a31846
specify the function signature you expect, and check that functions support
4a31846
that. Adding extra parameters later would break other peoples code unless
4a31846
you're careful. Backcall helps with that.
4a31846
4a31846
%package -n     python3-%{pypi_name}
4a31846
Summary:        %{summary}
4a31846
%{?python_provide:%python_provide python3-%{pypi_name}}
4a31846
4a31846
%description -n python3-%{pypi_name}
4a31846
Specifications for callback functions passed in to an API.
4a31846
4a31846
If your code lets other people supply callback functions, it's important to
4a31846
specify the function signature you expect, and check that functions support
4a31846
that. Adding extra parameters later would break other peoples code unless
4a31846
you're careful. Backcall helps with that.
4a31846
4a31846
4a31846
%prep
4a31846
%autosetup -n %{pypi_name}-%{version}
4a31846
cp -p %{SOURCE1} .
4a31846
4a31846
%build
4a31846
%py3_build
4a31846
4a31846
%install
4a31846
%py3_install
4a31846
4a31846
%check
4a31846
%{__python3} -m pytest -vv tests
4a31846
4a31846
%files -n python3-%{pypi_name}
4a31846
%license LICENSE
4a31846
%doc README.rst
4a31846
%{python3_sitelib}/%{pypi_name}
874b201
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
4a31846
4a31846
%changelog
2227a59
%autochangelog