Hello community, here is the log from the commit of package python-CommonMark for openSUSE:Factory checked in at 2019-03-07 10:49:33 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-CommonMark (Old) and /work/SRC/openSUSE:Factory/.python-CommonMark.new.28833 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-CommonMark" Thu Mar 7 10:49:33 2019 rev:7 rq:681781 version:0.8.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-CommonMark/python-CommonMark.changes 2018-12-13 19:41:41.069227075 +0100 +++ /work/SRC/openSUSE:Factory/.python-CommonMark.new.28833/python-CommonMark.changes 2019-03-07 10:50:11.713857412 +0100 @@ -1,0 +2,11 @@ +Tue Mar 5 14:36:25 UTC 2019 - Tomáš Chvátal <[email protected]> + +- Update to 0.8.1: + * Added the Node.normalize() method. (from @lez) + * Renamed package name to commonmark for PEP8 compliance. You can now do import commonmark as well as import CommonMark. Closes #60 + * Added testing on Python 3.7. + * Removed CommonMark symlink. So, as of this version, you need to replace all instances of CommonMark with commonmark in your code. +- Remove the not-needed subpackages +- Run the tests + +------------------------------------------------------------------- Old: ---- CommonMark-0.7.5.tar.gz New: ---- commonmark-0.8.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-CommonMark.spec ++++++ --- /var/tmp/diff_new_pack.bpBkSV/_old 2019-03-07 10:50:13.409856961 +0100 +++ /var/tmp/diff_new_pack.bpBkSV/_new 2019-03-07 10:50:13.413856960 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-CommonMark # -# 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 @@ -19,26 +19,30 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define oldpython python Name: python-CommonMark -Version: 0.7.5 +Version: 0.8.1 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: %{python_module future} +URL: https://github.com/rtfd/CommonMark-py +Source: https://files.pythonhosted.org/packages/source/c/commonmark/commonmark-%{version}.tar.gz BuildRequires: %{python_module setuptools} BuildRequires: fdupes +BuildRequires: python-future BuildRequires: python-rpm-macros -Requires: python-future +Requires: python-setuptools +Provides: python-commonmark = %{version} +Obsoletes: python-commonmark < %{version} BuildArch: noarch %ifpython2 +Requires: python-future Obsoletes: %{oldpython}-commonmark < %{version} Provides: %{oldpython}-commonmark = %{version} %endif %ifpython3 -Provides: python3-commonmark = %{version} -Obsoletes: python3-commonmark < %{version} +Conflicts: cmark +Provides: cmark-python +Obsoletes: cmark-python %endif %python_subpackages @@ -46,63 +50,26 @@ Pure Python port of jgm's stmd.js, a Markdown parser and renderer for the CommonMark specification, using only native modules. -%package -n %{name}-doc -Summary: Documentation for CommonMark -Group: Documentation/HTML -Provides: %{python_module 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. - -%package -n cmark-python -Summary: CommonMark parsing and rendering program in python -Group: Development/Languages/Python -Requires: python3-CommonMark = %{version} -Conflicts: cmark - -%description -n cmark-python -Pure Python port of jgm's stmd.js, a Markdown parser and renderer for the -CommonMark specification, using only native modules. - -This package provides the "cmark" executable, to avoid conflicts with other -implementations. - %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}' +%setup -q -n commonmark-%{version} %build %python_build %install %python_install - %python_expand %fdupes %{buildroot}%{$python_sitelib} -# Test broken due to encoding issue -# %check -# export LANG=en_US.UTF-8 -# export PYTHONPATH=%{buildroot}%{python_sitelib} -# python setup.py test +%check +export LANG=en_US.UTF-8 +%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} $python commonmark/tests/unit_tests.py +# On python2 we error out on unicode issues +PYTHONPATH=%{buildroot}%{python3_sitelib} python3 setup.py test %files %{python_files} %license LICENSE %doc README.rst -%{python_sitelib}/CommonMark/ -%{python_sitelib}/CommonMark-%{version}-py*.egg-info - -%files -n %{name}-doc -%license LICENSE -%doc spec.txt - -%files -n cmark-python -%license LICENSE -%doc spec.txt -%{_bindir}/cmark +%{python_sitelib}/* +%python3_only %{_bindir}/cmark %changelog
