diff --git a/.gitignore b/.gitignore index 3866fd3..a0db5ee 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /pykka-1.1.0.tar.gz /pykka-1.2.1.tar.gz /pykka-9c22e020876383683b32e08aa5bb45eade6201f8.tar.gz +/pykka-2.0.2.tar.gz diff --git a/pykka.spec b/pykka.spec index dac6570..49288b7 100644 --- a/pykka.spec +++ b/pykka.spec @@ -1,23 +1,19 @@ %global modname Pykka %global srcurl https://github.com/jodal/%{name} -%global commit0 9c22e020876383683b32e08aa5bb45eade6201f8 -%global date0 20181208 - Name: pykka -Version: 1.3 -Release: 0.7.%{date0}git%{?dist} +Version: 2.0.2 +Release: 1%{?dist} Summary: Python library that provides concurrency using actor model License: ASL 2.0 URL: http://www.%{name}.org/ -%if 0%{?date0} -Source0: %{srcurl}/archive/%{commit0}.tar.gz#/%{name}-%{commit0}.tar.gz -%else Source0: %{srcurl}/tarball/v%{version}/%{name}-%{version}.tar.gz -%endif BuildRequires: python3-devel BuildRequires: python3-sphinx -BuildRequires: python3-nose +BuildRequires: python3-pytest +BuildRequires: python3-pytest-mock +BuildRequires: python3-gevent +BuildRequires: python3-eventlet BuildArch: noarch %global _description \ @@ -60,7 +56,9 @@ devhelp docs, and examples. %prep -%setup -q -n%{name}-%{commit0} +%autosetup -p1 +# disable 1 failing test (already removed from pykka 2.0.3) +sed -i '/def test_upgrade_internal_message/i@pytest.mark.skip()' tests/test_messages.py %build %py3_build @@ -73,14 +71,13 @@ mkdir -p $RPM_BUILD_ROOT%{_datarootdir}/devhelp/%{modname} cp -rp docs/_build/devhelp $RPM_BUILD_ROOT%{_datarootdir}/devhelp/%{modname} %check -# pytest hangs, use nose instead -nosetests-3 -v tests +%{__python3} -m pytest %files -n python3-%{modname} %license LICENSE %doc README.rst -%{python3_sitelib}/%{modname}-*-py3.?.egg-info +%{python3_sitelib}/%{modname}-*-py*.egg-info %{python3_sitelib}/%{name}/ %files docs @@ -91,6 +88,10 @@ nosetests-3 -v tests %changelog +* Sun Dec 22 2019 Tobias Girstmair - 2.0.2-1 +- update to 2.0.2 (#1785943) +- test with pytest instead of nose + * Thu Oct 03 2019 Miro HronĨok - 1.3-0.7.20181208git - Rebuilt for Python 3.8.0rc1 (#1748018) diff --git a/sources b/sources index af22d31..533c376 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (pykka-9c22e020876383683b32e08aa5bb45eade6201f8.tar.gz) = 95ca013f4857bc2466c09e37ef00bf65a9ffa523e734fdfc2f642a2fd032feb5e754c18f8923065154e1892305a1b15362358859e6ad5c31b4e3455b1630a6d2 +SHA512 (pykka-2.0.2.tar.gz) = 94274025daa88c98863aea36629cf1c8f9cdb7a71044a3ea085ba6ac26b5de752e21d78cc02e66991f4c1660d5bb7a8b9717446f0aef171f42df41af00098baf