[python-scripttest] Update to 1.3.0

Matej Stuchlik mstuchli at fedoraproject.org
Wed Jul 2 09:13:17 UTC 2014


commit ce9b63485421a71ddc2ef5a35000d350e6b3acce
Author: Matej Stuchlik <mstuchli at redhat.com>
Date:   Wed Jul 2 11:10:48 2014 +0200

    Update to 1.3.0

 .gitignore                                  |    2 +
 python-scripttest-1.0.4-files_updated.patch |   12 -------
 python-scripttest.spec                      |   44 +++++++++-----------------
 sources                                     |    2 +-
 4 files changed, 18 insertions(+), 42 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index d3f8d0d..6059a2e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,3 @@
 ScriptTest-1.0.4.tar.gz
+/scripttest-1.3.tar.gz
+/1.3.0.tar.gz
diff --git a/python-scripttest.spec b/python-scripttest.spec
index aff8579..f262a63 100644
--- a/python-scripttest.spec
+++ b/python-scripttest.spec
@@ -1,26 +1,20 @@
-%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5)
-%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
-%endif
-
 Name:           python-scripttest
-Version:        1.0.4
-Release:        10%{?dist}
+Version:        1.3.0
+Release:        1%{?dist}
 Summary:        Helper to test command-line scripts
 
 Group:          Development/Languages
 License:        MIT
 URL:            http://pypi.python.org/pypi/ScriptTest/
-Source0:        http://pypi.python.org/packages/source/S/ScriptTest/ScriptTest-%{version}.tar.gz
-# Issue preventing build and usage on ext4.
-# Patch sent to upstream http://bitbucket.org/ianb/scripttest/issue/8
-Patch0:         python-scripttest-1.0.4-files_updated.patch
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+Source0:        https://github.com/pypa/scripttest/archive/1.3.0.tar.gz
+
 BuildArch:      noarch
 
 BuildRequires: python-devel
 BuildRequires: python-setuptools
 BuildRequires: python-sphinx
 BuildRequires: python-nose
+BuildRequires: pytest
 
 %description
 ScriptTest is a library to help you test your interactive 
@@ -30,43 +24,35 @@ With it you can easily run the command (in a subprocess) and see
 the output (stdout, stderr) and any file modifications.
 
 %prep
-%setup -q -n ScriptTest-%{version}
-%patch0 -p1 -b .files_updated
-
+%setup -q -n scripttest-%{version}
 
 %build
 %{__python} setup.py build
 
-# generate docs
-PYTHONPATH=./build/lib:$PYTHONPATH ./regen-docs
-rm docs/_build/objects.inv
-rm -rf docs/_build/.doctrees 
-rm docs/_build/.buildinfo 
-mv docs/_build docs/html
-
+sphinx-build -b html docs/ docs/html
 
 %install
 rm -rf %{buildroot}
 %{__python} setup.py install --skip-build --root %{buildroot}
 
-
 %clean
 rm -rf %{buildroot}
 
-
 %check
-./test
-
+%{__python} setup.py test
 
 %files
-%defattr(-,root,root,-)
 %doc docs/html
-%doc docs/license.txt
-%{python_sitelib}/scripttest/
-%{python_sitelib}/ScriptTest*.egg-info
+%doc docs/license.rst
+%{python_sitelib}/scripttest.py
+%{python_sitelib}/scripttest.py[co]
+%{python_sitelib}/scripttest*.egg-info
 
 
 %changelog
+* Wed Jul 02 2014 Matej Stuchlik <mstuchli at redhat.com> - 1.3.0-1
+- Update to 1.3.0
+
 * Mon Jun 30 2014 Toshio Kuratomi <toshio at fedoraproject.org> - 1.0.4-10
 - Replace python-setuptools-devel BR with python-setuptools
 
diff --git a/sources b/sources
index 5c4c576..850a93e 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-d15077d4100419f2b7e6d7a9532dad38  ScriptTest-1.0.4.tar.gz
+6b8856fa6559d758ee0cf47c750712b0  1.3.0.tar.gz


More information about the scm-commits mailing list