forked from pool/python-CommonMark
Accepting request 486210 from home:TheBlackCat:branches:devel:languages:python
Needed by recent versions of the jupyter suite. OBS-URL: https://build.opensuse.org/request/show/486210 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-CommonMark?expand=0&rev=1
This commit is contained in:
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
|
||||
3
CommonMark-0.7.3.tar.gz
Normal file
3
CommonMark-0.7.3.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:5f20ebd91614c8d339d4cded314894feb5d9a54c3b52c1ff9883794557149ea8
|
||||
size 85177
|
||||
60
python-CommonMark.changes
Normal file
60
python-CommonMark.changes
Normal file
@@ -0,0 +1,60 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Apr 3 14:56:45 UTC 2017 - toddrme2178@gmail.com
|
||||
|
||||
- Update to 0.7.3
|
||||
* The CommonMark spec has been updated to 0.27.
|
||||
- Update to 0.7.2
|
||||
* Removed outdated files from distributed packages, reported by @hyperknot
|
||||
- Update to 0.7.1
|
||||
* Updated CommonMark spec to 0.26.
|
||||
* Fixed JSON output invoked by `cmark -aj somefile.md`, reported by @rplCloud
|
||||
* Fixed a bug with `dumpAST()` on ordered lists, from @rflynn
|
||||
- Update to 0.7.0
|
||||
* The `cmark.py` script is now just called `cmark`.
|
||||
* Fixed a bug where the `cmark.py` script contained a bogus path, reported
|
||||
by @yuhui-lin.
|
||||
* Fixed a bug where a TypeError could occur, reported by @civalin.
|
||||
- Update to 0.6.4
|
||||
* The CommonMark spec has been updated to 0.25.
|
||||
* The HtmlRenderer has been refactored based on upstream changes in commonmark.js.
|
||||
* Python 2 fixes from @eric-wieser
|
||||
* Contributions from @funkybob and @hyperknot
|
||||
- Update to 0.6.3
|
||||
* CommonMark-py now supports Python 2.6.
|
||||
* The CommonMark spec has been updated to 0.24.
|
||||
- Update to 0.6.2
|
||||
* Fixed a UnicodeEncodeError when parsing unicode entities on
|
||||
Python 2. As a result, CommonMark-py now relies on the "future"
|
||||
module in Python 2, as documented in setup.py. This can be found on
|
||||
pypi: https://pypi.python.org/pypi/future
|
||||
- Update to 0.6.1
|
||||
* Fixed an IndexError exception that occurred when input string
|
||||
was empty.
|
||||
- Update to 0.6.0
|
||||
* CommonMark-py now complies to the 0.23 CommonMark spec
|
||||
http://spec.commonmark.org/0.23/
|
||||
* The ExtensionBlock has been removed in this release, since
|
||||
the parser has been rewritten.
|
||||
* Added a compatibility fix for Python 2.6, but this version
|
||||
of Python still isn't really supported.
|
||||
* `HTMLRenderer` has been renamed to `HtmlRenderer`.
|
||||
* `DocParser` has been renamed to `Parser`.
|
||||
- Update to 0.5.5
|
||||
* Random bug fixes
|
||||
* Internal code structure changes
|
||||
* Compatibility fixes for Python 3
|
||||
- Initial singlespec version
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun May 8 07:15:15 UTC 2016 - arun@gmx.de
|
||||
|
||||
- specfile:
|
||||
* changed to https for source url
|
||||
* updated source url to files.pythonhosted.org
|
||||
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Dec 9 18:26:59 UTC 2015 - bruno@ioda-net.ch
|
||||
|
||||
- Initial packaging on obs
|
||||
|
||||
109
python-CommonMark.spec
Normal file
109
python-CommonMark.spec
Normal file
@@ -0,0 +1,109 @@
|
||||
#
|
||||
# spec file for package python-CommonMark
|
||||
#
|
||||
# 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
|
||||
# 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-CommonMark
|
||||
Version: 0.7.3
|
||||
Release: 0
|
||||
Summary: Python parser for the CommonMark Markdown spec
|
||||
License: BSD-3-Clause
|
||||
Group: Development/Languages/Python
|
||||
Url: https://pypi.python.org/pypi/CommonMark
|
||||
Source: https://files.pythonhosted.org/packages/source/C/CommonMark/CommonMark-%{version}.tar.gz
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: %{python_module future}
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
Requires: python-future
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildArch: noarch
|
||||
Provides: python-commonmark = %{version}
|
||||
Obsoletes: python-commonmark < %{version}
|
||||
Requires(post): update-alternatives
|
||||
Requires(preun): update-alternatives
|
||||
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
Pure Python port of jgm’s stmd.js, a Markdown parser and renderer for the
|
||||
CommonMark specification, using only native modules. Once both this project and
|
||||
the CommonMark specification are stable we will release the first 1.0 version
|
||||
and attempt to keep up to date with changes in stmd.js.
|
||||
|
||||
We are currently at the same development stage (actually a bit ahead because we
|
||||
have implemented HTML entity conversion and href URL escaping) as stmd.js. Since
|
||||
Python versions pre-3.4 use outdated (i.e. not HTML5 spec) entity conversion,
|
||||
I’ve converted the 3.4 implementation into a single file, entitytrans.py which
|
||||
so far seems to work (all tests pass on 2.7, 3.3, and 3.4).
|
||||
|
||||
%package -n %{name}-doc
|
||||
Summary: Documentation for CommonMark
|
||||
Provides: python2-CommonMark-doc = %{version}
|
||||
Provides: python3-CommonMark-doc = %{version}
|
||||
|
||||
%description -n %{name}-doc
|
||||
Documentation for Pure Python port of jgm’s stmd.js, a Markdown parser and
|
||||
renderer for the CommonMark specification, using only native modules.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n CommonMark-%{version}
|
||||
chmod -x LICENSE
|
||||
chmod -x README.rst
|
||||
sed -i "s/\r//g" LICENSE
|
||||
# find and remove unneeded shebangs
|
||||
find CommonMark -name "*.py" | xargs sed -i '1 {/^#!/ d}'
|
||||
|
||||
%build
|
||||
%python_build
|
||||
|
||||
%install
|
||||
%python_install
|
||||
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%python_clone -a %{buildroot}%{_bindir}/cmark
|
||||
|
||||
|
||||
# Test broken due to encoding issue
|
||||
# %check
|
||||
# export LANG=en_US.UTF-8
|
||||
# export PYTHONPATH=%{buildroot}%{python_sitelib}
|
||||
# python setup.py test
|
||||
|
||||
|
||||
%post
|
||||
%python_install_alternative cmark
|
||||
|
||||
%preun
|
||||
%python_uninstall_alternative cmark
|
||||
|
||||
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root,-)
|
||||
%doc README.rst LICENSE
|
||||
%python_alternative %{_bindir}/cmark
|
||||
%{python_sitelib}/CommonMark/
|
||||
%{python_sitelib}/CommonMark-%{version}-py*.egg-info
|
||||
|
||||
%files -n %{name}-doc
|
||||
%defattr(-,root,root,-)
|
||||
%doc spec.txt LICENSE
|
||||
|
||||
%changelog
|
||||
Reference in New Issue
Block a user