From 058cff90b9d6bf2eda8abd822590c293a766daee Mon Sep 17 00:00:00 2001 From: Slavek Kabrda Date: Dec 11 2015 13:32:10 +0000 Subject: Update to 0.10.0 --- diff --git a/.gitignore b/.gitignore index 9b2af35..19cb305 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ /flexmock-0.9.6.tar.gz /python-flexmock-0.9.6-tests.tgz /flexmock-0.9.7.tar.gz +/flexmock-0.10.0.tar.gz diff --git a/python-flexmock.spec b/python-flexmock.spec index 339fb2b..c951651 100644 --- a/python-flexmock.spec +++ b/python-flexmock.spec @@ -1,21 +1,30 @@ %global with_python3 1 Name: python-flexmock -Version: 0.9.7 -Release: 3%{?dist} +Version: 0.10.0 +Release: 1%{?dist} Summary: Testing library that makes it easy to create mocks, stubs and fakes License: BSD -URL: https://github.com/has207/flexmock -Source0: http://pypi.python.org/packages/source/f/flexmock/flexmock-%{version}.tar.gz +URL: https://flexmock.readthedocs.org +Source0: https://pypi.python.org/packages/source/f/flexmock/flexmock-%{version}.tar.gz BuildArch: noarch BuildRequires: python2-devel BuildRequires: python-setuptools +# for testing with various runners (twisted contains trial) +BuildRequires: python-nose +BuildRequires: python-pytest +BuildRequires: python-twisted + %if 0%{with_python3} BuildRequires: python3-devel BuildRequires: python3-setuptools + +# for testing with various runners (no twisted on py3 yet) +BuildRequires: python3-nose +BuildRequires: python3-pytest %endif @@ -51,6 +60,8 @@ find %{py3dir} -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|' %build +# export lang so that python3 can properly decode readme +export LANG=en_US.utf8 %{__python} setup.py build %if 0%{?with_python3} @@ -61,6 +72,7 @@ popd %install +export LANG=en_US.utf8 %if 0%{?with_python3} pushd %{py3dir} %{__python3} setup.py install --skip-build --root %{buildroot} @@ -71,24 +83,28 @@ popd %check -PYTHONPATH="." %{__python} tests/flexmock_unittest_test.py +PYEXECS=%{__python2} ./tests/run_tests.sh %if 0%{?with_python3} -PYTHONPATH="." %{__python3} tests/flexmock_unittest_test.py +PYEXECS=%{__python3} ./tests/run_tests.sh %endif %files -%doc LICENSE README.md CHANGELOG +%doc LICENSE README.md CHANGELOG docs/ %{python_sitelib}/* %if 0%{?with_python3} + %files -n python3-flexmock -%doc LICENSE README.md CHANGELOG +%doc LICENSE README.md CHANGELOG docs/ %{python3_sitelib}/* %endif %changelog +* Fri Dec 11 2015 Slavek Kabrda - 0.10.0-1 +- Update to 0.10.0 + * Tue Nov 10 2015 Fedora Release Engineering - 0.9.7-3 - Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 diff --git a/sources b/sources index 3182af2..1a91d69 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -7fce05eaf846d565b91b9900330c61e0 flexmock-0.9.7.tar.gz +92ff94c9b7e70521abc404f0c9b610fd flexmock-0.10.0.tar.gz