Blame SPECS/python-trio.spec

7667d1
# what it's called on pypi
7667d1
%global srcname trio
7667d1
# what it's imported as
7667d1
%global libname %{srcname}
7667d1
# name of egg info directory
7667d1
%global eggname %{srcname}
7667d1
# package name fragment
7667d1
%global pkgname %{srcname}
7667d1
7667d1
%global common_description %{expand:
7667d1
The Trio project's goal is to produce a production-quality, permissively
7667d1
licensed, async/await-native I/O library for Python.  Like all async libraries,
7667d1
its main purpose is to help you write programs that do multiple things at the
7667d1
same time with parallelized I/O.  A web spider that wants to fetch lots of
7667d1
pages in parallel, a web server that needs to juggle lots of downloads and
7667d1
websocket connections at the same time, a process supervisor monitoring
7667d1
multiple subprocesses... that sort of thing.  Compared to other libraries, Trio
7667d1
attempts to distinguish itself with an obsessive focus on usability and
7667d1
correctness.  Concurrency is complicated; we try to make it easy to get things
7667d1
right.}
7667d1
7667d1
%bcond_without  tests
7667d1
7667d1
7667d1
Name:           python-%{pkgname}
7667d1
Version:        0.18.0
7667d1
Release:        1%{?dist}
7667d1
Summary:        A friendly Python library for async concurrency and I/O
7667d1
License:        MIT or ASL 2.0
7667d1
URL:            https://github.com/python-trio/trio
7667d1
Source0:        %pypi_source
7667d1
Patch0001:      0001-Skip-tests-failing-with-pytest-6.2.2.patch
7667d1
BuildArch:      noarch
7667d1
7667d1
7667d1
%description %{common_description}
7667d1
7667d1
7667d1
%package -n python3-%{pkgname}
7667d1
Summary:        %{summary}
7667d1
BuildRequires:  python3-devel
7667d1
BuildRequires:  %{py3_dist setuptools}
7667d1
%if %{with tests}
7667d1
BuildRequires:  %{py3_dist pytest pyopenssl trustme}
7667d1
BuildRequires:  %{py3_dist attrs sortedcontainers async-generator idna outcome sniffio}
7667d1
%endif
7667d1
%{?python_provide:%python_provide python3-%{pkgname}}
7667d1
7667d1
7667d1
%description -n python3-%{pkgname} %{common_description}
7667d1
7667d1
7667d1
%prep
7667d1
%autosetup -n %{srcname}-%{version} -p1
7667d1
rm -rf %{eggname}.egg-info
7667d1
7667d1
7667d1
%build
7667d1
%py3_build
7667d1
7667d1
7667d1
%install
7667d1
%py3_install
7667d1
7667d1
7667d1
%if %{with tests}
7667d1
%check
7667d1
%pytest --verbose trio/_core/tests
7667d1
%endif
7667d1
7667d1
7667d1
%files -n python3-%{pkgname}
7667d1
%license LICENSE LICENSE.MIT LICENSE.APACHE2
7667d1
%doc README.rst
7667d1
%{python3_sitelib}/%{libname}
7667d1
%{python3_sitelib}/%{eggname}-%{version}-py%{python3_version}.egg-info
7667d1
7667d1
7667d1
%changelog
7667d1
* Tue Feb 09 2021 Joel Capitao <jcapitao@redhat.com> - 0.18.0-1
7667d1
- Latest upstream rhbz#1879061
7667d1
7667d1
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.16.0-2
7667d1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
7667d1
7667d1
* Sun Sep 06 2020 Carl George <carl@george.computer> - 0.16.0-1
7667d1
- Latest upstream
7667d1
7667d1
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.1-2
7667d1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
7667d1
7667d1
* Thu Jun 04 2020 Carl George <carl@george.computer> - 0.15.1-1
7667d1
- Latest upstream rhbz#1828266
7667d1
7667d1
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.13.0-3
7667d1
- Rebuilt for Python 3.9
7667d1
7667d1
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.13.0-2
7667d1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
7667d1
7667d1
* Thu Jan 02 2020 Carl George <carl@george.computer> - 0.13.0-1
7667d1
- Latest upstream rhbz#1742425
7667d1
7667d1
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.11.0-4
7667d1
- Rebuilt for Python 3.8.0rc1 (#1748018)
7667d1
7667d1
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.11.0-3
7667d1
- Rebuilt for Python 3.8
7667d1
7667d1
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.11.0-2
7667d1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
7667d1
7667d1
* Thu Feb 28 2019 Carl George <carl@george.computer> - 0.11.0-1
7667d1
- Latest upstream
7667d1
7667d1
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-2
7667d1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
7667d1
7667d1
* Thu Sep 20 2018 Carl George <carl@george.computer> - 0.7.0-1
7667d1
- Initial package