!1 Init package python3-trio of version 0.14.0
From: @renliang16 Reviewed-by: @huangtianhua Signed-off-by: @huangtianhua
This commit is contained in:
commit
c30764dffe
106
python-trio.spec
Normal file
106
python-trio.spec
Normal file
@ -0,0 +1,106 @@
|
|||||||
|
%global _empty_manifest_terminate_build 0
|
||||||
|
Name: python-trio
|
||||||
|
Version: 0.14.0
|
||||||
|
Release: 1
|
||||||
|
Summary: A friendly Python library for async concurrency and I/O
|
||||||
|
License: Apache-2.0
|
||||||
|
URL: https://github.com/python-trio/trio
|
||||||
|
Source0: https://files.pythonhosted.org/packages/df/ec/2a46d1c309dac330fba362be808c75a7cd0ff1b6a69aa1b0eccf7abfd9db/trio-0.14.0.tar.gz
|
||||||
|
BuildArch: noarch
|
||||||
|
%description
|
||||||
|
The Trio project's goal is to produce a production-quality, permissively licensed,
|
||||||
|
async/await-native I/O library for Python. Like all async libraries,
|
||||||
|
its main purpose is to help you write programs that do multiple things at the same time
|
||||||
|
with parallelized I/O. A web spider that wants to fetch lots of pages in parallel,
|
||||||
|
a web server that needs to juggle lots of downloads and websocket connections
|
||||||
|
at the same time, a process supervisor monitoring multiple subprocesses...
|
||||||
|
that sort of thing. Compared to other libraries, Trio attempts to distinguish
|
||||||
|
itself with an obsessive focus on usability and correctness.
|
||||||
|
Concurrency is complicated; we try to make it easy to get things right.
|
||||||
|
|
||||||
|
%package -n python3-trio
|
||||||
|
Summary: A friendly Python library for async concurrency and I/O
|
||||||
|
Provides: python-trio
|
||||||
|
# Base build requires
|
||||||
|
BuildRequires: python3-devel
|
||||||
|
BuildRequires: python3-setuptools
|
||||||
|
BuildRequires: python3-pbr
|
||||||
|
BuildRequires: python3-pip
|
||||||
|
BuildRequires: python3-wheel
|
||||||
|
# General requires
|
||||||
|
BuildRequires: python3-attrs
|
||||||
|
BuildRequires: python3-sortedcontainers
|
||||||
|
BuildRequires: python3-async-generator
|
||||||
|
BuildRequires: python3-idna
|
||||||
|
BuildRequires: python3-outcome
|
||||||
|
BuildRequires: python3-sniffio
|
||||||
|
BuildRequires: python3-cffi
|
||||||
|
# General requires
|
||||||
|
Requires: python3-attrs
|
||||||
|
Requires: python3-sortedcontainers
|
||||||
|
Requires: python3-async-generator
|
||||||
|
Requires: python3-idna
|
||||||
|
Requires: python3-outcome
|
||||||
|
Requires: python3-sniffio
|
||||||
|
Requires: python3-cffi
|
||||||
|
%description -n python3-trio
|
||||||
|
|
||||||
|
%package help
|
||||||
|
Summary: A friendly Python library for async concurrency and I/O
|
||||||
|
Provides: python3-trio-doc
|
||||||
|
%description help
|
||||||
|
The Trio project's goal is to produce a production-quality, permissively licensed,
|
||||||
|
async/await-native I/O library for Python. Like all async libraries,
|
||||||
|
its main purpose is to help you write programs that do multiple things at the same time
|
||||||
|
with parallelized I/O. A web spider that wants to fetch lots of pages in parallel,
|
||||||
|
a web server that needs to juggle lots of downloads and websocket connections
|
||||||
|
at the same time, a process supervisor monitoring multiple subprocesses...
|
||||||
|
that sort of thing. Compared to other libraries, Trio attempts to distinguish
|
||||||
|
itself with an obsessive focus on usability and correctness.
|
||||||
|
Concurrency is complicated; we try to make it easy to get things right.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -n trio-%{version}
|
||||||
|
|
||||||
|
%build
|
||||||
|
%py3_build
|
||||||
|
|
||||||
|
%install
|
||||||
|
%py3_install
|
||||||
|
|
||||||
|
install -d -m755 %{buildroot}/%{_pkgdocdir}
|
||||||
|
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
|
||||||
|
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
|
||||||
|
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
|
||||||
|
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
|
||||||
|
pushd %{buildroot}
|
||||||
|
if [ -d usr/lib ]; then
|
||||||
|
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
|
||||||
|
fi
|
||||||
|
if [ -d usr/lib64 ]; then
|
||||||
|
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
|
||||||
|
fi
|
||||||
|
if [ -d usr/bin ]; then
|
||||||
|
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
|
||||||
|
fi
|
||||||
|
if [ -d usr/sbin ]; then
|
||||||
|
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
|
||||||
|
fi
|
||||||
|
touch doclist.lst
|
||||||
|
if [ -d usr/share/man ]; then
|
||||||
|
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
|
||||||
|
fi
|
||||||
|
popd
|
||||||
|
mv %{buildroot}/filelist.lst .
|
||||||
|
mv %{buildroot}/doclist.lst .
|
||||||
|
|
||||||
|
%files -n python3-trio -f filelist.lst
|
||||||
|
%dir %{python3_sitelib}/*
|
||||||
|
|
||||||
|
%files help -f doclist.lst
|
||||||
|
%{_docdir}/*
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Thu Jul 21 2022 renliang16 <renliang@uniontech.com> - 0.14.0-1
|
||||||
|
- Init package python3-trio of version 0.14.0
|
||||||
|
|
||||||
BIN
trio-0.14.0.tar.gz
Normal file
BIN
trio-0.14.0.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user