Blame python-trio.spec

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