4a3184
%global pypi_name backcall
4a3184
4a3184
Name:           python-%{pypi_name}
4a3184
Version:        0.1.0
538a9f
Release:        11%{?dist}
4a3184
Summary:        Specifications for callback functions passed in to an API
4a3184
4a3184
License:        BSD
4a3184
URL:            https://github.com/takluyver/backcall
4a3184
Source0:        https://files.pythonhosted.org/packages/source/b/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
4a3184
Source1:        https://raw.githubusercontent.com/takluyver/backcall/8eb45a77a40edad74b33086d05fd4d99d43d80b0/LICENSE
4a3184
BuildArch:      noarch
4a3184
 
4a3184
BuildRequires:  python3-devel
4a3184
BuildRequires:  python3dist(pytest)
4a3184
BuildRequires:  python3dist(setuptools)
4a3184
4a3184
%?python_enable_dependency_generator
4a3184
4a3184
%description
4a3184
Specifications for callback functions passed in to an API.
4a3184
4a3184
If your code lets other people supply callback functions, it's important to
4a3184
specify the function signature you expect, and check that functions support
4a3184
that. Adding extra parameters later would break other peoples code unless
4a3184
you're careful. Backcall helps with that.
4a3184
4a3184
%package -n     python3-%{pypi_name}
4a3184
Summary:        %{summary}
4a3184
%{?python_provide:%python_provide python3-%{pypi_name}}
4a3184
4a3184
%description -n python3-%{pypi_name}
4a3184
Specifications for callback functions passed in to an API.
4a3184
4a3184
If your code lets other people supply callback functions, it's important to
4a3184
specify the function signature you expect, and check that functions support
4a3184
that. Adding extra parameters later would break other peoples code unless
4a3184
you're careful. Backcall helps with that.
4a3184
4a3184
4a3184
%prep
4a3184
%autosetup -n %{pypi_name}-%{version}
4a3184
cp -p %{SOURCE1} .
4a3184
4a3184
%build
4a3184
%py3_build
4a3184
4a3184
%install
4a3184
%py3_install
4a3184
4a3184
%check
4a3184
%{__python3} -m pytest -vv tests
4a3184
4a3184
%files -n python3-%{pypi_name}
4a3184
%license LICENSE
4a3184
%doc README.rst
4a3184
%{python3_sitelib}/%{pypi_name}
874b20
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
4a3184
4a3184
%changelog
538a9f
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.0-11
538a9f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
538a9f
e6f510
* Sun May 24 2020 Miro Hrončok <mhroncok@redhat.com> - 0.1.0-10
e6f510
- Rebuilt for Python 3.9
e6f510
84d4bd
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.0-9
84d4bd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
84d4bd
9aa6f1
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.1.0-8
9aa6f1
- Rebuilt for Python 3.8.0rc1 (#1748018)
9aa6f1
01d633
* Sun Aug 18 2019 Miro Hrončok <mhroncok@redhat.com> - 0.1.0-7
01d633
- Rebuilt for Python 3.8
01d633
a18454
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.0-6
a18454
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
a18454
063f42
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.0-5
063f42
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
063f42
248193
* Sat Jul 28 2018 Miro Hrončok <mhroncok@redhat.com> - 0.1.0-4
248193
- Rebuilt to drop unversioned python(abi) dependency (#1609492)
248193
4e4af7
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.0-3
4e4af7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
4e4af7
69ee3e
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.1.0-2
69ee3e
- Rebuilt for Python 3.7
69ee3e
4a3184
* Tue Apr 10 2018 Miro Hrončok <mhroncok@redhat.com> - 0.1.0-1
4a3184
- Initial package