From d2788f1689ad6f8ca5011c380966beb5ab197da1a25818acb3f16f29ecaa525e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Wed, 8 May 2019 10:06:58 +0000 Subject: [PATCH] Accepting request 701354 from home:jayvdb:py-wheels - Activate test suite - Update Summary and Description - Add %doc OBS-URL: https://build.opensuse.org/request/show/701354 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-smartypants?expand=0&rev=9 --- COPYING | 76 -------------------------- python-smartypants.changes | 7 +++ python-smartypants.spec | 34 +++++------- smartypants-2.0.1-py2.py3-none-any.whl | 3 - smartypants-2.0.1.tar.gz | 3 + 5 files changed, 25 insertions(+), 98 deletions(-) delete mode 100644 COPYING delete mode 100644 smartypants-2.0.1-py2.py3-none-any.whl create mode 100644 smartypants-2.0.1.tar.gz diff --git a/COPYING b/COPYING deleted file mode 100644 index 0fbfe19..0000000 --- a/COPYING +++ /dev/null @@ -1,76 +0,0 @@ -========= -Copyright -========= - -SmartyPants -=========== - -:: - - Copyright (c) 2003 John Gruber - (http://daringfireball.net/) - All rights reserved. - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are - met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in - the documentation and/or other materials provided with the - distribution. - - * Neither the name "SmartyPants" nor the names of its contributors - may be used to endorse or promote products derived from this - software without specific prior written permission. - - This software is provided by the copyright holders and contributors "as - is" and any express or implied warranties, including, but not limited - to, the implied warranties of merchantability and fitness for a - particular purpose are disclaimed. In no event shall the copyright - owner or contributors be liable for any direct, indirect, incidental, - special, exemplary, or consequential damages (including, but not - limited to, procurement of substitute goods or services; loss of use, - data, or profits; or business interruption) however caused and on any - theory of liability, whether in contract, strict liability, or tort - (including negligence or otherwise) arising in any way out of the use - of this software, even if advised of the possibility of such damage. - - -smartypants -=========== - -:: - - smartypants is a derivative work of SmartyPants. - - Copyright (c) 2017, Leo Hemsted - Copyright (c) 2013, 2014, 2015, 2016 Yu-Jie Lin - Copyright (c) 2004, 2005, 2007, 2013 Chad Miller - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are - met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in - the documentation and/or other materials provided with the - distribution. - - This software is provided by the copyright holders and contributors "as - is" and any express or implied warranties, including, but not limited - to, the implied warranties of merchantability and fitness for a - particular purpose are disclaimed. In no event shall the copyright - owner or contributors be liable for any direct, indirect, incidental, - special, exemplary, or consequential damages (including, but not - limited to, procurement of substitute goods or services; loss of use, - data, or profits; or business interruption) however caused and on any - theory of liability, whether in contract, strict liability, or tort - (including negligence or otherwise) arising in any way out of the use - of this software, even if advised of the possibility of such damage. diff --git a/python-smartypants.changes b/python-smartypants.changes index babfb41..e79a6d2 100644 --- a/python-smartypants.changes +++ b/python-smartypants.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Tue May 7 15:40:36 UTC 2019 - John Vandenberg + +- Activate test suite +- Update Summary and Description +- Add %doc + ------------------------------------------------------------------- Tue Dec 4 12:54:22 UTC 2018 - Matej Cepl diff --git a/python-smartypants.spec b/python-smartypants.spec index ed451c3..39b256f 100644 --- a/python-smartypants.spec +++ b/python-smartypants.spec @@ -1,7 +1,7 @@ # # spec file for package python-smartypants # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 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 @@ -20,13 +20,14 @@ Name: python-smartypants Version: 2.0.1 Release: 0 -Summary: A smart-quotes plugin for SmartyPants +Summary: Python fork of perl SmartyPants License: BSD-3-Clause Group: Development/Languages/Python Url: https://github.com/leohemsted/smartypants.py -Source0: https://files.pythonhosted.org/packages/py2.py3/s/smartypants/smartypants-%{version}-py2.py3-none-any.whl -Source10: https://raw.githubusercontent.com/leohemsted/smartypants.py/v%{version}/COPYING -BuildRequires: %{python_module pip} +Source: https://github.com/leohemsted/smartypants.py/archive/v%{version}.tar.gz#/smartypants-%{version}.tar.gz +BuildRequires: %{python_module docutils} +BuildRequires: %{python_module pygments} +BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires(post): update-alternatives @@ -36,27 +37,21 @@ BuildArch: noarch %python_subpackages %description -This module encapsulates Chad Miller's SmartyPants module so that -it's available on PyPI. For more information, consult - -* http://web.chad.org/projects/smartypants.py/ -* http://daringfireball.net/projects/smartypants/ +smartypants is a Python implementation of the perl SmartyPants, +which translates plain ASCII punctuation characters into smart +typographic punctuation HTML entities. %prep -%setup -T -c -n smartypants-%{version} -cp %{SOURCE10} . +%setup -q -n smartypants.py-%{version} %build -# Not needed +%python_build %install -%{python_expand pip%{$python_bin_suffix} install --root %{buildroot} %{SOURCE0} -sed -i -e '/^#!\//, 1d' %{buildroot}%{$python_sitelib}/smartypants.py -$python -m compileall -d %{$python_sitelib} %{buildroot}%{$python_sitelib}/smartypants.py -$python -O -m compileall -d %{$python_sitelib} %{buildroot}%{$python_sitelib}/smartypants.py +%python_install +%{python_expand sed -i '1{/^#!/d}' %{buildroot}%{$python_sitelib}/smartypants.py %fdupes %{buildroot}%{$python_sitelib} } - %python_clone -a %{buildroot}%{_bindir}/smartypants %post @@ -66,10 +61,11 @@ $python -O -m compileall -d %{$python_sitelib} %{buildroot}%{$python_sitelib}/sm %python_uninstall_alternative smartypants %check -# todo +%python_exec setup.py test %files %{python_files} %license COPYING +%doc README.rst docs/*.rst %python_alternative %{_bindir}/smartypants %{python_sitelib}/* diff --git a/smartypants-2.0.1-py2.py3-none-any.whl b/smartypants-2.0.1-py2.py3-none-any.whl deleted file mode 100644 index 020c477..0000000 --- a/smartypants-2.0.1-py2.py3-none-any.whl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8db97f7cbdf08d15b158a86037cd9e116b4cf37703d24e0419a0d64ca5808f0d -size 9875 diff --git a/smartypants-2.0.1.tar.gz b/smartypants-2.0.1.tar.gz new file mode 100644 index 0000000..af24088 --- /dev/null +++ b/smartypants-2.0.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b98191911ff3b4144ef8ad53e776a2d0ad24bd508a905c6ce523597c40022773 +size 24152