0db1c43
%global pypi_name txaio
0db1c43
0db1c43
Name:           python-%{pypi_name}
9bf301d
Version:        20.4.1
f6f9f81
Release:        2%{?dist}
0db1c43
Summary:        Compatibility API between asyncio/Twisted/Trollius
0db1c43
0db1c43
License:        MIT
0db1c43
URL:            https://pypi.python.org/pypi/%{pypi_name}
c649fb2
Source0:        https://files.pythonhosted.org/packages/source/t/txaio/txaio-%{version}.tar.gz
8236c05
Patch0:         python-txaio-skip-packaging-tests.patch
Marcel Plch c056d42
# The test_utils module can no longer be imported from asyncio
Marcel Plch c056d42
# and is undocumented intentionaly because it's private.
Marcel Plch c056d42
# This is a hack that calls stop on the loop soon after calling run_forever().
Marcel Plch c056d42
Patch2:         run_once.patch
0db1c43
76b3aa5
BuildArch:      noarch
6e6aadb
76b3aa5
76b3aa5
%description
76b3aa5
Helper library for writing code that runs unmodified on both Twisted and
76b3aa5
asyncio.
76b3aa5
76b3aa5
0db1c43
%package -n     python3-%{pypi_name}
0db1c43
Summary:        Compatibility API between asyncio/Twisted/Trollius
76b3aa5
BuildArch:      noarch
0db1c43
BuildRequires:  python3-devel
0db1c43
BuildRequires:  python3-pytest
0db1c43
BuildRequires:  python3-pytest-cov
0db1c43
BuildRequires:  python3-mock
0db1c43
BuildRequires:  python3-sphinx
6e6aadb
BuildRequires:  python3-sphinx_rtd_theme
0db1c43
BuildRequires:  python3-six
a9fb576
BuildRequires:  python3-test
6e6aadb
BuildRequires:  python3-enchant >= 1.6.6
0db1c43
Requires:       python3-six
76b3aa5
%{?python_provide:%python_provide python3-%{pypi_name}}
0db1c43
0db1c43
%description -n python3-%{pypi_name}
0db1c43
Helper library for writing code that runs unmodified on both Twisted and
0db1c43
asyncio.
0db1c43
0db1c43
0db1c43
%package doc
0db1c43
Summary: Documentation for txaio
0db1c43
Requires: js-jquery
0db1c43
0db1c43
%description doc
0db1c43
Helper library for writing code that runs unmodified on both Twisted and
0db1c43
asyncio. Documentation in html format.
0db1c43
0db1c43
0db1c43
%prep
0db1c43
%setup -qn %{pypi_name}-%{version}
0db1c43
%patch0
Marcel Plch c056d42
%patch2 -p1
0db1c43
0db1c43
# Remove upstream's egg-info
0db1c43
rm -rf %{pypi_name}.egg-info
0db1c43
00a198a
# README is just a symlink to index.rst. Using this file as README
6e6aadb
rm docs/index.rst
6e6aadb
cp -a README.rst docs/index.rst
0db1c43
0db1c43
0db1c43
%build
00a198a
%py3_build
0db1c43
0db1c43
# Build documentation
5115389
cd docs && make html
0db1c43
0db1c43
# Remove buildinfo
0db1c43
rm -rf _build/html/.buildinfo
0db1c43
0db1c43
# Unbundle jquery
0db1c43
rm -f  _build/html/_static/jquery.js
0db1c43
ln -s /usr/share/javascript/jquery/latest/jquery.min.js _build/html/_static/jquery.js
0db1c43
0db1c43
0db1c43
%install
00a198a
%py3_install
0db1c43
0db1c43
0db1c43
%check
a9fb576
PYTHONPATH=$PYTHONPATH:$(pwd):$(pwd)/test %{__python3} -mcoverage run -p --source=txaio /usr/bin/py.test-%{python3_version} -s
0db1c43
0db1c43
0db1c43
%files -n python3-%{pypi_name}
0db1c43
%license LICENSE
0db1c43
%doc README.rst
0db1c43
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/
0db1c43
%{python3_sitelib}/%{pypi_name}/
0db1c43
0db1c43
0db1c43
%files doc
0db1c43
%license LICENSE
5115389
%doc docs/_build/html
0db1c43
0db1c43
0db1c43
%changelog
f6f9f81
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 20.4.1-2
f6f9f81
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
f6f9f81
9bf301d
* Sat Jul 18 2020 Julien Enselme <jujens@jujens.eu> - 20.4.1-1
9bf301d
- Update to 20.4.1
9bf301d
ecdff84
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 18.8.1-9
ecdff84
- Rebuilt for Python 3.9
ecdff84
9f7a086
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 18.8.1-8
9f7a086
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
9f7a086
a9fb576
* Sat Oct 12 2019 Orion Poplawski <orion@nwra.com> - 18.8.1-7
a9fb576
- Drop BR on python3-pep8
a9fb576
- Use EL8 compatible coverage execution
a9fb576
- Add BR python3-test for EL8 compatibility
a9fb576
0dcfd08
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 18.8.1-6
0dcfd08
- Rebuilt for Python 3.8.0rc1 (#1748018)
0dcfd08
41f84ae
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 18.8.1-5
41f84ae
- Rebuilt for Python 3.8
41f84ae
0e7639d
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 18.8.1-4
0e7639d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
0e7639d
cde0735
* Sat Jul 13 2019 Julien Enselme <jujens@jujens.eu> - 18.8.1-3
cde0735
- Fix tests after pytest update.
cde0735
aa01e91
* Sat Mar 23 2019 Julien Enselme <jujens@jujens.eu> - 18.8.1-2
aa01e91
- Remove Python 2 subpackage.
aa01e91
c649fb2
* Wed Feb 20 2019 Yatin Karel <ykarel@redhat.com> - 18.8.1-1
c649fb2
- Update to 18.8.1
c649fb2
f19fadb
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 18.7.1-2
f19fadb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
f19fadb
80ccfc4
* Wed Aug 01 2018 Julien Enselme <jujens@jujens.eu> - 18.7.1-1
80ccfc4
- Update to 18.7.1
80ccfc4
Marcel Plch c056d42
* Wed Aug 01 2018 Marcel Plch <mplch@redhat.com> - 2.10.0-5
Marcel Plch c056d42
- Patch for Python 3.7
Marcel Plch c056d42
5c58eea
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.10.0-4
5c58eea
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
5c58eea
584c07c
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 2.10.0-3
584c07c
- Rebuilt for Python 3.7
584c07c
26bf423
* Tue May 08 2018 Miro Hrončok <mhroncok@redhat.com> - 2.10.0-2
26bf423
- Remove unused build dependency on tox
26bf423
84f167c
* Sun Apr 15 2018 Julien Enselme <jujens@jujens.eu> - 2.10.0-1
84f167c
- Update to 2.10.0
84f167c
6e80dd8
* Tue Mar 06 2018 Julien Enselme <jujens@jujens.eu> - 2.9.0-1
6e80dd8
- Update to 2.9.0
6e80dd8
9959713
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.8.2-3
9959713
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
9959713
23505bc
* Wed Jan 31 2018 Iryna Shcherbina <ishcherb@redhat.com> - 2.8.2-2
23505bc
- Update Python 2 dependency declarations to new packaging standards
23505bc
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
23505bc
1a0a84b
* Wed Sep 06 2017 Julien Enselme <jujens@jujens.eu> - 2.8.2-1
1a0a84b
- Update to 2.8.2
1a0a84b
3293eb6
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.8.1-2
3293eb6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
3293eb6
01abd46
* Sun Jul 23 2017 Julien Enselme <jujens@jujens.eu> - 2.8.1-1
01abd46
- Update to 2.8.1
01abd46
9c0d0ba
* Sat Jun 10 2017 Julien Enselme <jujens@jujens.eu> - 2.8.0-1
9c0d0ba
- Update to 2.8.0
9c0d0ba
9647ad6
* Sun May 07 2017 Julien Enselme <jujens@jujens.eu> - 2.7.1-1
9647ad6
- Update to 2.7.1
9647ad6
e26efa1
* Tue Apr 18 2017 Julien Enselme <jujens@jujens.eu> - 2.7.0-1
e26efa1
- Update to 2.7.0
e26efa1
e298b6e
* Wed Apr 05 2017 Julien Enselme <jujens@jujens.eu> - 2.6.2-1
e298b6e
- Update to 2.6.2
e298b6e
6ccf6b4
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.2-2
6ccf6b4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
6ccf6b4
8236c05
* Mon Dec 26 2016 Julien Enselme <jujens@jujens.eu> - 2.5.2-1
8236c05
- Update to 2.5.2
8236c05
- Skip failing tests on Python 3.6
8236c05
9b0c4f4
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 2.5.1-3
9b0c4f4
- Rebuild for Python 3.6
9b0c4f4
e5272b0
* Sat Oct 01 2016 Julien Enselme <jujens@jujens.eu> - 2.5.1-2
e5272b0
- Fix tests for pytest3
e5272b0
- Correct build of documentation with sphinx 1.4.8
e5272b0
34c3ef8
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5.1-2
34c3ef8
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
34c3ef8
e36b82a
* Mon May 16 2016 Julien Enselme <jujens@jujens.eu> - 2.5.1-1
e36b82a
- Update to 2.5.1
e36b82a
6e6aadb
* Sat Feb 27 2016 Julien Enselme <jujens@jujens.eu> - 2.2.1-1
6e6aadb
- Update to 2.2.1
6e6aadb
984c95c
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.4-3
984c95c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
984c95c
94378f6
* Fri Nov 6 2015 Julien Enselme <jujens@jujens.eu> - 2.0.4-2
94378f6
- Rebuilt for python 3.5
94378f6
5115389
* Sat Oct 17 2015 Julien Enselme <jujens@jujens.eu> - 2.0.4-1
5115389
- Update 2.0.4
5115389
651da25
* Mon Sep 28 2015 Julien Enselme <jujens@jujens.eu> - 2.0.2-1
651da25
- Update to 2.0.2
651da25
76b3aa5
* Sat Aug 15 2015 Julien Enselme <jujens@jujens.eu> - 1.0.3-2
76b3aa5
- Move python2 package in its own subpackage
76b3aa5
84ee5d4
* Sat Aug 15 2015 Julien Enselme <jujens@jujens.eu> - 1.0.3-1
84ee5d4
- Update to 1.0.3
84ee5d4
00a198a
* Sat Aug 8 2015 Julien Enselme <jujens@jujens.eu> - 1.0.2-1
00a198a
- Update to 1.0.2
00a198a
- Use %%py2_build, %%py3_build, %%py2_install and %%py2_install
00a198a
7da9ea1
* Tue Aug 4 2015 Julien Enselme <jujens@jujens.eu> - 1.0.0-4
7da9ea1
- Correct sphinx theme name in BuildRequires
7da9ea1
0db1c43
* Thu Jul 30 2015 Julien Enselme <jujens@jujens.eu> - 1.0.0-3
0db1c43
- Add provides for python2-txaio
0db1c43
- Remove usage of python2 and python3 dirs
0db1c43
- Unbundle jquery
0db1c43
- Don't remove _sources of documentation
0db1c43
0db1c43
* Fri Jul 24 2015 Julien Enselme <jujens@jujens.eu> - 1.0.0-2
0db1c43
- Remove %%py3dir macro
0db1c43
- Add CFLAGS in %%build
0db1c43
0db1c43
* Sat Jul 18 2015 Julien Enselme <jujens@jujens.eu> - 1.0.0-1
0db1c43
- Initial packaging