Accepting request 611992 from devel:languages:python:misc
A smart-quotes plugin OBS-URL: https://build.opensuse.org/request/show/611992 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-smartypants?expand=0&rev=1
This commit is contained in:
commit
1bf7bd35ce
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.osc
|
76
COPYING
Normal file
76
COPYING
Normal file
@ -0,0 +1,76 @@
|
|||||||
|
=========
|
||||||
|
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.
|
82
python-smartypants.changes
Normal file
82
python-smartypants.changes
Normal file
@ -0,0 +1,82 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu May 24 17:45:27 UTC 2018 - toddrme2178@gmail.com
|
||||||
|
|
||||||
|
- Update to 2.0.1
|
||||||
|
* use re.match instead of re.search to improve performance on large strings
|
||||||
|
- spec file cleanups
|
||||||
|
- Switch to wheel
|
||||||
|
- Add license
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun May 7 16:15:51 UTC 2017 - benoit.monin@gmx.fr
|
||||||
|
|
||||||
|
- convert the package to singlespec
|
||||||
|
- call fdupes to fix duplicated files
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Dec 29 14:45:52 UTC 2016 - benoit.monin@gmx.fr
|
||||||
|
|
||||||
|
- update to version 2.0.0
|
||||||
|
+ drop Pyblosxom support
|
||||||
|
+ drop str-type attr
|
||||||
|
+ drop fooBarXyz functions, such as smartyPants, educateQuotes,
|
||||||
|
and processEscapes
|
||||||
|
+ add Attr.u and Attr.h for Unicode characters and HTML named
|
||||||
|
entities outputs, respectively. The stupefy_entities has become
|
||||||
|
convert_entities to support all three types of conversions.(#6)
|
||||||
|
+ Makefile: do not build bdist_wininst --plat-name win32 per
|
||||||
|
:pep:527#bdist-dmg-bdist-msi-and-bdist-wininst
|
||||||
|
+ Makefile: test packages build in test_setup target
|
||||||
|
+ Makefile: rename target install_test to test_setup
|
||||||
|
- additional changes from version 1.8.6
|
||||||
|
+ Makefile: add LC_ALL=C test for locale setting on setup.py wrt
|
||||||
|
+ change virtualenv invocation method in install_test target
|
||||||
|
+ fix UnicodeDecodeError on opening smartypants.py, which
|
||||||
|
includes Unicode characters, when running setup.py with Python3
|
||||||
|
and specific locales
|
||||||
|
- update project url
|
||||||
|
- update source url to pythonhosted
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jul 17 19:28:18 UTC 2014 - benoit.monin@gmx.fr
|
||||||
|
|
||||||
|
- fix usage of update-alternatives
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jul 3 18:05:07 UTC 2014 - benoit.monin@gmx.fr
|
||||||
|
|
||||||
|
- update to version 1.8.5
|
||||||
|
+ fix requirement of Wheel, now optional
|
||||||
|
- remove BuildRequires python-wheel, now unneeded
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jul 2 18:50:55 UTC 2014 - benoit.monin@gmx.fr
|
||||||
|
|
||||||
|
- use update-alternatives for the smartypants binary
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jul 1 18:15:02 UTC 2014 - benoit.monin@gmx.fr
|
||||||
|
|
||||||
|
- update to version 1.8.4
|
||||||
|
+ add missing COPYING and CHANGES.rst to package
|
||||||
|
+ add bdist_wheel to the building process for Python Wheel format
|
||||||
|
+ add test_doc8 target
|
||||||
|
+ fix install_test on missing of Wheel package
|
||||||
|
+ fix argparse version option breaks CLI on Python 3
|
||||||
|
- add build dependencies python-setuptools and python-wheel
|
||||||
|
- drop chmod on README.rst, fixed upstream
|
||||||
|
- remove shebang and excutable bit on smartypants.py, not a script
|
||||||
|
- add COPYING and CHANGE.rst to package documentation
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Nov 19 16:20:12 UTC 2013 - p.drouand@gmail.com
|
||||||
|
|
||||||
|
- Update to version 1.8.3
|
||||||
|
+ No changelog available
|
||||||
|
- COPYING is not provided anymore by upstream
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jul 23 13:27:55 UTC 2012 - saschpe@suse.de
|
||||||
|
|
||||||
|
- Initial version
|
||||||
|
|
80
python-smartypants.spec
Normal file
80
python-smartypants.spec
Normal file
@ -0,0 +1,80 @@
|
|||||||
|
#
|
||||||
|
# spec file for package python-smartypants
|
||||||
|
#
|
||||||
|
# Copyright (c) 2018 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
|
||||||
|
# upon. The license for this file, and modifications and additions to the
|
||||||
|
# file, is the same license as for the pristine package itself (unless the
|
||||||
|
# license for the pristine package is not an Open Source License, in which
|
||||||
|
# case the license is the MIT License). An "Open Source License" is a
|
||||||
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
|
Name: python-smartypants
|
||||||
|
Version: 2.0.1
|
||||||
|
Release: 0
|
||||||
|
Summary: A smart-quotes plugin
|
||||||
|
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 devel}
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
|
BuildRequires: fdupes
|
||||||
|
BuildRequires: python-rpm-macros
|
||||||
|
Requires(post): update-alternatives
|
||||||
|
Requires(postun): update-alternatives
|
||||||
|
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/
|
||||||
|
|
||||||
|
The first two version numbers are Chad Miller's. The last two are
|
||||||
|
mine.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -T -c -n smartypants-%{version}
|
||||||
|
cp %{SOURCE10} .
|
||||||
|
|
||||||
|
%build
|
||||||
|
# Not needed
|
||||||
|
|
||||||
|
%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
|
||||||
|
%fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
}
|
||||||
|
|
||||||
|
%python_clone -a %{buildroot}%{_bindir}/smartypants
|
||||||
|
|
||||||
|
%post
|
||||||
|
%python_install_alternative smartypants
|
||||||
|
|
||||||
|
%postun
|
||||||
|
%python_uninstall_alternative smartypants
|
||||||
|
|
||||||
|
%check
|
||||||
|
# todo
|
||||||
|
|
||||||
|
%files %{python_files}
|
||||||
|
%license COPYING
|
||||||
|
%python_alternative %{_bindir}/smartypants
|
||||||
|
%{python_sitelib}/*
|
||||||
|
|
||||||
|
%changelog
|
3
smartypants-2.0.1-py2.py3-none-any.whl
Normal file
3
smartypants-2.0.1-py2.py3-none-any.whl
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:8db97f7cbdf08d15b158a86037cd9e116b4cf37703d24e0419a0d64ca5808f0d
|
||||||
|
size 9875
|
Loading…
x
Reference in New Issue
Block a user