From 39ff996ca9a6c140b57535b048c2e84b1d221aa0a54828c7cf802b8b56716b96 Mon Sep 17 00:00:00 2001 From: Yuchen Lin Date: Fri, 14 Apr 2017 11:34:24 +0000 Subject: [PATCH] Accepting request 483880 from devel:languages:python 1 OBS-URL: https://build.opensuse.org/request/show/483880 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-ipython_genutils?expand=0&rev=2 --- ipython_genutils-0.1.0.tar.gz | 3 --- ipython_genutils-0.2.0.tar.gz | 3 +++ python-ipython_genutils.changes | 8 ++++++++ python-ipython_genutils.spec | 32 +++++++++++++++++--------------- 4 files changed, 28 insertions(+), 18 deletions(-) delete mode 100644 ipython_genutils-0.1.0.tar.gz create mode 100644 ipython_genutils-0.2.0.tar.gz diff --git a/ipython_genutils-0.1.0.tar.gz b/ipython_genutils-0.1.0.tar.gz deleted file mode 100644 index 8f2d70e..0000000 --- a/ipython_genutils-0.1.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3a0624a251a26463c9dfa0ffa635ec51c4265380980d9a50d65611c3c2bd82a6 -size 22255 diff --git a/ipython_genutils-0.2.0.tar.gz b/ipython_genutils-0.2.0.tar.gz new file mode 100644 index 0000000..c39c73e --- /dev/null +++ b/ipython_genutils-0.2.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:eb2e116e75ecef9d4d228fdc66af54269afa26ab4463042e33785b887c628ba8 +size 22208 diff --git a/python-ipython_genutils.changes b/python-ipython_genutils.changes index deadd2d..b59bc99 100644 --- a/python-ipython_genutils.changes +++ b/python-ipython_genutils.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Thu Mar 30 17:53:28 UTC 2017 - toddrme2178@gmail.com + +- Implement single-spec +- Update to 0.2.0 + * treat strings under ironpthon 2.7 as unicode, like 3.x + * Omit missing directories from MANIFEST + ------------------------------------------------------------------- Fri Aug 21 11:19:50 UTC 2015 - toddrme2178@gmail.com diff --git a/python-ipython_genutils.spec b/python-ipython_genutils.spec index 935ac10..01f7796 100644 --- a/python-ipython_genutils.spec +++ b/python-ipython_genutils.spec @@ -1,7 +1,7 @@ # # spec file for package python-ipython_genutils # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,24 +16,25 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-ipython_genutils -Version: 0.1.0 +Version: 0.2.0 Release: 0 Summary: Vestigial utilities from IPython License: BSD-3-Clause Group: Development/Languages/Python Url: http://ipython.org -Source: https://pypi.python.org/packages/source/i/ipython_genutils/ipython_genutils-%{version}.tar.gz -BuildRequires: python-devel >= 2.7 -BuildRequires: python-nose -BuildRequires: python-setuptools -Requires: python >= 2.7 +Source: https://files.pythonhosted.org/packages/source/i/ipython_genutils/ipython_genutils-%{version}.tar.gz +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildRequires: %{python_module devel} +BuildRequires: %{python_module nose} +BuildRequires: %{python_module setuptools} +Requires: python BuildRoot: %{_tmppath}/%{name}-%{version}-build -%if 0%{?suse_version} && 0%{?suse_version} <= 1110 -%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%else BuildArch: noarch -%endif + +%python_subpackages %description This contains some common utilities shared by Jupyter and IPython projects @@ -47,16 +48,17 @@ whatever packages need it %setup -q -n ipython_genutils-%{version} %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} %check export LC_ALL=en_US.utf8 -nosetests +%python_expand nosetests-%{$python_bin_suffix} -%files +%files %{python_files} %defattr(-,root,root,-) %doc CONTRIBUTING.md COPYING.md README.md %{python_sitelib}/*