d669b21
%global pypi_name Pykka
1500266
Jonathan Dieter 69274ce
Name:             pykka
d669b21
Version:          2.0.2
96783f9
Release:          2%{?dist}
Jonathan Dieter 69274ce
Summary:          Python library that provides concurrency using actor model
d669b21
Jonathan Dieter 69274ce
License:          ASL 2.0
d669b21
URL:              https://www.pykka.org/
d669b21
Source0:          https://github.com/jodal/pykka/archive/v%{version}/%{name}-%{version}.tar.gz
Jonathan Dieter 69274ce
BuildArch:        noarch
Jonathan Dieter c700495
1500266
%description
d669b21
Pykka is a Python implementation of the actor model. The actor
d669b21
model introduces some simple rules to control the sharing of state
d669b21
and cooperation between execution units, which makes it easier to
d669b21
build concurrent applications.
Jonathan Dieter c700495
d669b21
%package -n python3-%{pypi_name}
Jonathan Dieter 301a98f
Summary:        Python library that provides concurrency using actor model
Jonathan Dieter 301a98f
d669b21
BuildRequires:    python3-devel
d669b21
BuildRequires:    python3-pytest
4ff050c
BuildRequires:    python3-pytest-mock
6475c97
BuildRequires:    python3-gevent
6475c97
BuildRequires:    python3-eventlet
d669b21
%{?python_provide:%python_provide python3-%{pypi_name}}
d669b21
d669b21
%description -n python3-%{pypi_name}
d669b21
Pykka is a Python implementation of the actor model. The actor
d669b21
model introduces some simple rules to control the sharing of state
d669b21
and cooperation between execution units, which makes it easier to
d669b21
build concurrent applications.
Jonathan Dieter 301a98f
6475c97
%package docs
cb87ebd
Summary:        Documentation for %{name}
Jonathan Dieter 301a98f
cb87ebd
BuildRequires:  python3-sphinx
cb87ebd
BuildRequires:  python3-sphinx_rtd_theme
cb87ebd
cb87ebd
Requires:       devhelp
Jonathan Dieter 69274ce
6475c97
%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 c700495
%prep
d669b21
%autosetup
6475c97
# disable 1 failing test (already removed from pykka 2.0.3)
6475c97
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
d669b21
rm -rf html/.{doctrees,buildinfo}
Jonathan Dieter c700495
Jonathan Dieter c700495
%install
Jonathan Dieter 301a98f
%py3_install
d669b21
mkdir -p %{buildroot}%{_datarootdir}/devhelp/%{pypi_name}
d669b21
cp -rp docs/_build/devhelp %{buildroot}%{_datarootdir}/devhelp/%{pypi_name}
Jonathan Dieter 69274ce
ddd0ce7
%check
d669b21
PYTHONPATH=%{buildroot}%{python3_sitelib} pytest-%{python3_version} -v tests
ddd0ce7
d669b21
%files -n python3-%{pypi_name}
b51b199
%license LICENSE
b51b199
%doc README.rst
d669b21
%{python3_sitelib}/%{pypi_name}-*-py*.egg-info
1500266
%{python3_sitelib}/%{name}/
Jonathan Dieter c700495
6475c97
%files docs
b51b199
%license LICENSE
Jonathan Dieter 69274ce
%doc examples/
d669b21
%{_datarootdir}/devhelp/%{pypi_name}/
d669b21
%exclude %{_datarootdir}/devhelp/%{pypi_name}/.*
Jonathan Dieter 69274ce
Jonathan Dieter c700495
%changelog
6475c97
* Fri Jan 10 2020 Tobias Girstmair <t-fedora@girst.at> - 2.0.2-2
6475c97
- Further improvements of the spec file incl. tests
6475c97
d669b21
* Fri Jan 10 2020 Fabian Affolter <mail@fabian-affolter.ch> - 2.0.2-1
d669b21
- Fix tests
d669b21
- Remove pointless variables
6475c97
- Update to latest upstream release 2.0.2 (rhbz#1785943)
d669b21
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