d669b2
%global pypi_name Pykka
150026
Jonathan Dieter 69274c
Name:             pykka
d669b2
Version:          2.0.2
05e17e
Release:          3%{?dist}
Jonathan Dieter 69274c
Summary:          Python library that provides concurrency using actor model
d669b2
Jonathan Dieter 69274c
License:          ASL 2.0
d669b2
URL:              https://www.pykka.org/
d669b2
Source0:          https://github.com/jodal/pykka/archive/v%{version}/%{name}-%{version}.tar.gz
Jonathan Dieter 69274c
BuildArch:        noarch
Jonathan Dieter c70049
150026
%description
d669b2
Pykka is a Python implementation of the actor model. The actor
d669b2
model introduces some simple rules to control the sharing of state
d669b2
and cooperation between execution units, which makes it easier to
d669b2
build concurrent applications.
Jonathan Dieter c70049
d669b2
%package -n python3-%{pypi_name}
Jonathan Dieter 301a98
Summary:        Python library that provides concurrency using actor model
Jonathan Dieter 301a98
d669b2
BuildRequires:    python3-devel
d669b2
BuildRequires:    python3-pytest
4ff050
BuildRequires:    python3-pytest-mock
6475c9
BuildRequires:    python3-gevent
6475c9
BuildRequires:    python3-eventlet
d669b2
%{?python_provide:%python_provide python3-%{pypi_name}}
d669b2
d669b2
%description -n python3-%{pypi_name}
d669b2
Pykka is a Python implementation of the actor model. The actor
d669b2
model introduces some simple rules to control the sharing of state
d669b2
and cooperation between execution units, which makes it easier to
d669b2
build concurrent applications.
Jonathan Dieter 301a98
6475c9
%package docs
cb87eb
Summary:        Documentation for %{name}
Jonathan Dieter 301a98
cb87eb
BuildRequires:  python3-sphinx
cb87eb
BuildRequires:  python3-sphinx_rtd_theme
cb87eb
cb87eb
Requires:       devhelp
Jonathan Dieter 69274c
6475c9
%description docs
Jonathan Dieter 69274c
This package provides the documentation for %{name}, e.g. the API as
Jonathan Dieter 69274c
devhelp docs, and examples.
Jonathan Dieter 69274c
Jonathan Dieter c70049
%prep
d669b2
%autosetup
6475c9
# disable 1 failing test (already removed from pykka 2.0.3)
6475c9
sed -i '/def test_upgrade_internal_message/i@pytest.mark.skip()' tests/test_messages.py
Jonathan Dieter c70049
Jonathan Dieter c70049
%build
Jonathan Dieter 301a98
%py3_build
150026
pushd docs
150026
SPHINXBUILD='sphinx-build-3 %{_smp_mflags}' make %{_smp_mflags} devhelp
d669b2
rm -rf html/.{doctrees,buildinfo}
Jonathan Dieter c70049
Jonathan Dieter c70049
%install
Jonathan Dieter 301a98
%py3_install
d669b2
mkdir -p %{buildroot}%{_datarootdir}/devhelp/%{pypi_name}
d669b2
cp -rp docs/_build/devhelp %{buildroot}%{_datarootdir}/devhelp/%{pypi_name}
Jonathan Dieter 69274c
ddd0ce
%check
d669b2
PYTHONPATH=%{buildroot}%{python3_sitelib} pytest-%{python3_version} -v tests
ddd0ce
d669b2
%files -n python3-%{pypi_name}
b51b19
%license LICENSE
b51b19
%doc README.rst
d669b2
%{python3_sitelib}/%{pypi_name}-*-py*.egg-info
150026
%{python3_sitelib}/%{name}/
Jonathan Dieter c70049
6475c9
%files docs
b51b19
%license LICENSE
Jonathan Dieter 69274c
%doc examples/
d669b2
%{_datarootdir}/devhelp/%{pypi_name}/
d669b2
%exclude %{_datarootdir}/devhelp/%{pypi_name}/.*
Jonathan Dieter 69274c
Jonathan Dieter c70049
%changelog
05e17e
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.2-3
05e17e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
05e17e
6475c9
* Fri Jan 10 2020 Tobias Girstmair <t-fedora@girst.at> - 2.0.2-2
6475c9
- Further improvements of the spec file incl. tests
6475c9
d669b2
* Fri Jan 10 2020 Fabian Affolter <mail@fabian-affolter.ch> - 2.0.2-1
d669b2
- Fix tests
d669b2
- Remove pointless variables
6475c9
- Update to latest upstream release 2.0.2 (rhbz#1785943)
d669b2
593060
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.3-0.7.20181208git
593060
- Rebuilt for Python 3.8.0rc1 (#1748018)
593060
473318
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.3-0.6.20181208git
473318
- Rebuilt for Python 3.8
473318
d3951e
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-0.5.20181208git
d3951e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
d3951e
6c2fc7
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-0.4.20181208git
6c2fc7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
6c2fc7
ddd0ce
* Thu Dec 13 2018 Raphael Groner <projects.rg@smart.ms> - 1.3-0.3.20181208git
ddd0ce
- execute tests
ddd0ce
b51b19
* Thu Dec 13 2018 Raphael Groner <projects.rg@smart.ms> - 1.3-0.2.20181208git
b51b19
- use license macro, exclude build files
b51b19
150026
* Thu Dec 13 2018 Raphael Groner <projects.rg@smart.ms> - 1.3-0.1.20181208git
150026
- provide new snapshot from latest github (25%)
150026
- modernize
150026
eb3ff0
* Sun Oct 07 2018 My Karlsson <mk@acc.umu.se> - 1.2.1-13
eb3ff0
- Remove python2 subpackage (rhbz#1627414)
eb3ff0
0e5197
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-12
0e5197
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
0e5197
24ed8d
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.2.1-11
24ed8d
- Rebuilt for Python 3.7
24ed8d
63fc65
* Wed Feb 21 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.2.1-10
63fc65
- Update Python 2 dependency declarations to new packaging standards
63fc65
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
63fc65
b6bb83
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-9
b6bb83
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
b6bb83
45cba1
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-8
45cba1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
45cba1
88ed53
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-7
88ed53
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
88ed53
2e683a
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.2.1-6
2e683a
- Rebuild for Python 3.6
2e683a
0368d5
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.1-5
0368d5
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
0368d5
bcc88f
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-4
bcc88f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
bcc88f
88537d
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.1-3
88537d
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
88537d
Jonathan Dieter 0ba0fb
* Tue Aug 18 2015 Jonathan Dieter <jdieter@lesbg.com> - 1.2.1-2
Jonathan Dieter 301a98
- Update to 1.2.1
Jonathan Dieter 301a98
- Build Python 3 library (with limited functionality)
Jonathan Dieter 301a98
099287
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-4
099287
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
099287
c5bf0d
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-3
c5bf0d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
c5bf0d
4f1a6e
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-2
4f1a6e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
4f1a6e
Jonathan Dieter 507705
* Tue Apr 16 2013 Jonathan Dieter <jdieter@lesbg.com> - 1.1.0-1
Jonathan Dieter 507705
- Update to latest release
Jonathan Dieter 507705
07d900
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.15-4
07d900
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
07d900
Jonathan Dieter 69274c
* Thu Jan 10 2013 Matěj Cepl <mcepl@redhat.com> - 0.15-3
Jonathan Dieter 69274c
- Add documentation and examples.
Jonathan Dieter 69274c
Jonathan Dieter c70049
* Mon Aug 27 2012 Jonathan Dieter <jdieter@lesbg.com> - 0.15-2
Jonathan Dieter c70049
- Update to latest version
Jonathan Dieter c70049
- Remove unneeded sections
Jonathan Dieter c70049
- Remove trailing .0 as it's not part of the original versioning
Jonathan Dieter c70049
- Remove buildroot tag
Jonathan Dieter c70049
Jonathan Dieter c70049
* Wed Jan  4 2012 Jonathan Dieter <jdieter@lesbg.com> - 0.13.0-1
Jonathan Dieter c70049
- Initial release