Blame SPECS/python-outcome.spec

7a6924
# what it's called on pypi
7a6924
%global srcname outcome
7a6924
# what it's imported as
7a6924
%global libname outcome
7a6924
# name of egg info directory
7a6924
%global eggname outcome
7a6924
# package name fragment
7a6924
%global pkgname outcome
7a6924
7a6924
%global _description \
7a6924
Outcome provides a function for capturing the outcome of a Python function\
7a6924
call, so that it can be passed around.
7a6924
7a6924
%bcond_without tests
7a6924
7a6924
7a6924
Name:           python-%{pkgname}
7a6924
Version:        1.1.0
7a6924
Release:        1%{?dist}
7a6924
Summary:        Capture the outcome of Python function calls
7a6924
License:        MIT or ASL 2.0
7a6924
URL:            https://github.com/python-trio/outcome
7a6924
Source0:        %pypi_source
7a6924
BuildArch:      noarch
7a6924
7a6924
7a6924
%description %{_description}
7a6924
7a6924
7a6924
%package -n python%{python3_pkgversion}-%{pkgname}
7a6924
Summary:        %{summary}
7a6924
BuildRequires:  python%{python3_pkgversion}-devel
7a6924
BuildRequires:  python%{python3_pkgversion}-setuptools
7a6924
%if %{with tests}
7a6924
BuildRequires:  python%{python3_pkgversion}-pytest
7a6924
BuildRequires:  python%{python3_pkgversion}-pytest-asyncio
7a6924
BuildRequires:  python%{python3_pkgversion}-async-generator
7a6924
BuildRequires:  python%{python3_pkgversion}-attrs
7a6924
%endif
7a6924
Requires:       python%{python3_pkgversion}-attrs
7a6924
%{?python_provide:%python_provide python%{python3_pkgversion}-%{pkgname}}
7a6924
7a6924
7a6924
%description -n python%{python3_pkgversion}-%{pkgname} %{_description}
7a6924
7a6924
7a6924
%prep
7a6924
%autosetup -n %{srcname}-%{version}
7a6924
7a6924
7a6924
%build
7a6924
%py3_build
7a6924
7a6924
7a6924
%install
7a6924
%py3_install
7a6924
7a6924
7a6924
%if %{with tests}
7a6924
%check
7a6924
PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version} --verbose
7a6924
%endif
7a6924
7a6924
7a6924
%files -n python%{python3_pkgversion}-%{pkgname}
7a6924
%license LICENSE LICENSE.MIT LICENSE.APACHE2
7a6924
%doc README.rst
7a6924
%{python3_sitelib}/%{libname}
7a6924
%{python3_sitelib}/%{eggname}-%{version}-py%{python3_version}.egg-info
7a6924
7a6924
7a6924
%changelog
7a6924
* Mon Feb 22 2021 Lumír Balhar <lbalhar@redhat.com> - 1.1.0-1
7a6924
- Update to 1.1.0
7a6924
Resolves: rhbz#1898627
7a6924
7a6924
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-2
7a6924
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
7a6924
7a6924
* Fri Jul 31 2020 Charalampos Stratakis <cstratak@redhat.com> - 1.0.1-1
7a6924
- Update to 1.0.1 (#1762713)
7a6924
7a6924
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-8
7a6924
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
7a6924
7a6924
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.0.0-7
7a6924
- Rebuilt for Python 3.9
7a6924
7a6924
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-6
7a6924
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
7a6924
7a6924
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.0.0-5
7a6924
- Rebuilt for Python 3.8.0rc1 (#1748018)
7a6924
7a6924
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.0.0-4
7a6924
- Rebuilt for Python 3.8
7a6924
7a6924
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-3
7a6924
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
7a6924
7a6924
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-2
7a6924
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
7a6924
7a6924
* Wed Sep 12 2018 Carl George <carl@george.computer> - 1.0.0-1
7a6924
- Initial package