1500266
%global modname   Pykka
1500266
%global srcurl    https://github.com/jodal/%{name}
1500266
Jonathan Dieter 69274ce
Name:             pykka
f14efcd
Version:          2.0.2
f14efcd
Release:          1%{?dist}
Jonathan Dieter 69274ce
Summary:          Python library that provides concurrency using actor model
Jonathan Dieter 69274ce
License:          ASL 2.0
1500266
URL:              http://www.%{name}.org/
1500266
Source0:          %{srcurl}/tarball/v%{version}/%{name}-%{version}.tar.gz
Jonathan Dieter 301a98f
BuildRequires:    python3-devel
eb3ff00
BuildRequires:    python3-sphinx
f14efcd
BuildRequires:    python3-pytest
f14efcd
BuildRequires:    python3-pytest-mock
f14efcd
BuildRequires:    python3-gevent
f14efcd
BuildRequires:    python3-eventlet
Jonathan Dieter 69274ce
BuildArch:        noarch
Jonathan Dieter c700495
1500266
%global _description \
1500266
The goal of %{modname} is to provide easy to use concurrency abstractions for Python\
1500266
by using the actor model.\
1500266
\
1500266
%{modname} provides an actor API with two different implementations:\
1500266
\
1500266
 * ThreadingActor is built on the Python Standard Library’s threading and Queue\
1500266
   modules, and has no dependencies outside Python itself. It plays well\
1500266
   together with non-actor threads.\
1500266
 * GeventActor is built on the gevent library. gevent is a coroutine-based\
1500266
   Python networking library that uses greenlet to provide a high-level\
1500266
   synchronous API on top of libevent event loop. It is generally faster, but\
1500266
   doesn't like playing with other threads.\
1500266
\
1500266
Much of the naming in %{modname} is inspired by the Akka project which implements\
1500266
actors on the JVM. Though, %{modname} does not aim to be a Python port of Akka.
Jonathan Dieter c700495
1500266
%description
1500266
%_description
Jonathan Dieter c700495
1500266
%package -n python3-%{modname}
Jonathan Dieter 301a98f
Summary:        Python library that provides concurrency using actor model
1500266
%{?python_provide:%python_provide python3-%{modname}}
Jonathan Dieter 301a98f
1500266
%description -n python3-%{modname}
1500266
%_description
Jonathan Dieter 301a98f
1500266
This package provides %{modname}'s Python 3 libraries
Jonathan Dieter 301a98f
Jonathan Dieter 69274ce
%package docs
Jonathan Dieter 69274ce
Summary:        Documentation for %{name}
Jonathan Dieter 69274ce
BuildArch:      noarch
Jonathan Dieter 69274ce
Requires:       devhelp
Jonathan Dieter 69274ce
Jonathan Dieter 69274ce
%description docs
Jonathan Dieter 69274ce
This package provides the documentation for %{name}, e.g. the API as
Jonathan Dieter 69274ce
devhelp docs, and examples.
Jonathan Dieter 69274ce
Jonathan Dieter 69274ce
Jonathan Dieter c700495
%prep
f14efcd
%autosetup -p1
f14efcd
# disable 1 failing test (already removed from pykka 2.0.3)
f14efcd
sed -i '/def test_upgrade_internal_message/i@pytest.mark.skip()' tests/test_messages.py
Jonathan Dieter c700495
Jonathan Dieter c700495
%build
Jonathan Dieter 301a98f
%py3_build
1500266
pushd docs
1500266
SPHINXBUILD='sphinx-build-3 %{_smp_mflags}' make %{_smp_mflags} devhelp
Jonathan Dieter c700495
Jonathan Dieter c700495
%install
Jonathan Dieter 301a98f
%py3_install
1500266
mkdir -p $RPM_BUILD_ROOT%{_datarootdir}/devhelp/%{modname}
1500266
cp -rp docs/_build/devhelp $RPM_BUILD_ROOT%{_datarootdir}/devhelp/%{modname}
Jonathan Dieter 69274ce
ddd0ce7
%check
f14efcd
%{__python3} -m pytest
ddd0ce7
1500266
1500266
%files -n python3-%{modname}
b51b199
%license LICENSE
b51b199
%doc README.rst
f14efcd
%{python3_sitelib}/%{modname}-*-py*.egg-info
1500266
%{python3_sitelib}/%{name}/
Jonathan Dieter c700495
Jonathan Dieter 69274ce
%files docs
b51b199
%license LICENSE
Jonathan Dieter 69274ce
%doc examples/
b51b199
%{_datarootdir}/devhelp/%{modname}/
b51b199
%exclude %{_datarootdir}/devhelp/%{modname}/.*
Jonathan Dieter 69274ce
Jonathan Dieter 69274ce
Jonathan Dieter c700495
%changelog
f14efcd
* Sun Dec 22 2019 Tobias Girstmair <t-fedora@girst.at> - 2.0.2-1
f14efcd
- update to 2.0.2 (#1785943)
f14efcd
- test with pytest instead of nose
f14efcd
5930608
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.3-0.7.20181208git
5930608
- Rebuilt for Python 3.8.0rc1 (#1748018)
5930608
4733181
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.3-0.6.20181208git
4733181
- Rebuilt for Python 3.8
4733181
d3951ef
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-0.5.20181208git
d3951ef
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
d3951ef
6c2fc7f
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-0.4.20181208git
6c2fc7f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
6c2fc7f
ddd0ce7
* Thu Dec 13 2018 Raphael Groner <projects.rg@smart.ms> - 1.3-0.3.20181208git
ddd0ce7
- execute tests
ddd0ce7
b51b199
* Thu Dec 13 2018 Raphael Groner <projects.rg@smart.ms> - 1.3-0.2.20181208git
b51b199
- use license macro, exclude build files
b51b199
1500266
* Thu Dec 13 2018 Raphael Groner <projects.rg@smart.ms> - 1.3-0.1.20181208git
1500266
- provide new snapshot from latest github (25%)
1500266
- modernize
1500266
eb3ff00
* Sun Oct 07 2018 My Karlsson <mk@acc.umu.se> - 1.2.1-13
eb3ff00
- Remove python2 subpackage (rhbz#1627414)
eb3ff00
0e5197c
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-12
0e5197c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
0e5197c
24ed8db
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.2.1-11
24ed8db
- Rebuilt for Python 3.7
24ed8db
63fc65a
* Wed Feb 21 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.2.1-10
63fc65a
- Update Python 2 dependency declarations to new packaging standards
63fc65a
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
63fc65a
b6bb833
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-9
b6bb833
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
b6bb833
45cba1a
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-8
45cba1a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
45cba1a
88ed530
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-7
88ed530
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
88ed530
2e683a6
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.2.1-6
2e683a6
- Rebuild for Python 3.6
2e683a6
0368d5b
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.1-5
0368d5b
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
0368d5b
bcc88fa
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-4
bcc88fa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
bcc88fa
88537d7
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.1-3
88537d7
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
88537d7
Jonathan Dieter 0ba0fb0
* Tue Aug 18 2015 Jonathan Dieter <jdieter@lesbg.com> - 1.2.1-2
Jonathan Dieter 301a98f
- Update to 1.2.1
Jonathan Dieter 301a98f
- Build Python 3 library (with limited functionality)
Jonathan Dieter 301a98f
099287c
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-4
099287c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
099287c
c5bf0d7
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-3
c5bf0d7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
c5bf0d7
4f1a6e6
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-2
4f1a6e6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
4f1a6e6
Jonathan Dieter 507705c
* Tue Apr 16 2013 Jonathan Dieter <jdieter@lesbg.com> - 1.1.0-1
Jonathan Dieter 507705c
- Update to latest release
Jonathan Dieter 507705c
07d9003
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.15-4
07d9003
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
07d9003
Jonathan Dieter 69274ce
* Thu Jan 10 2013 Matěj Cepl <mcepl@redhat.com> - 0.15-3
Jonathan Dieter 69274ce
- Add documentation and examples.
Jonathan Dieter 69274ce
Jonathan Dieter c700495
* Mon Aug 27 2012 Jonathan Dieter <jdieter@lesbg.com> - 0.15-2
Jonathan Dieter c700495
- Update to latest version
Jonathan Dieter c700495
- Remove unneeded sections
Jonathan Dieter c700495
- Remove trailing .0 as it's not part of the original versioning
Jonathan Dieter c700495
- Remove buildroot tag
Jonathan Dieter c700495
Jonathan Dieter c700495
* Wed Jan  4 2012 Jonathan Dieter <jdieter@lesbg.com> - 0.13.0-1
Jonathan Dieter c700495
- Initial release