commit python-CommonMark for openSUSE:Factory

2020-05-08 Thread root
Hello community,

here is the log from the commit of package python-CommonMark for 
openSUSE:Factory checked in at 2020-05-08 23:02:40

Comparing /work/SRC/openSUSE:Factory/python-CommonMark (Old)
 and  /work/SRC/openSUSE:Factory/.python-CommonMark.new.2738 (New)


Package is "python-CommonMark"

Fri May  8 23:02:40 2020 rev:11 rq:800654 version:0.9.1

Changes:

--- /work/SRC/openSUSE:Factory/python-CommonMark/python-CommonMark.changes  
2020-03-27 00:25:32.704264331 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-CommonMark.new.2738/python-CommonMark.changes
2020-05-08 23:02:44.857543075 +0200
@@ -1,0 +2,5 @@
+Wed May  6 09:55:17 UTC 2020 - Matej Cepl 
+
+- Don't use %python3_only command, but properly use alternatives.
+
+---



Other differences:
--
++ python-CommonMark.spec ++
--- /var/tmp/diff_new_pack.LI7UYW/_old  2020-05-08 23:02:45.705544808 +0200
+++ /var/tmp/diff_new_pack.LI7UYW/_new  2020-05-08 23:02:45.709544815 +0200
@@ -30,6 +30,8 @@
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 Requires:   python-setuptools
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
 Provides:   python-commonmark = %{version}
 Obsoletes:  python-commonmark < %{version}
 BuildArch:  noarch
@@ -60,6 +62,7 @@
 
 %install
 %python_install
+%python_clone -a %{buildroot}%{_bindir}/cmark
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
@@ -68,10 +71,16 @@
 # On python2 we error out on unicode issues
 PYTHONPATH=%{buildroot}%{python3_sitelib} python3 setup.py test
 
+%post
+%python_install_alternative cmark
+
+%postun
+%python_uninstall_alternative cmark
+
 %files %{python_files}
 %license LICENSE
 %doc README.rst
 %{python_sitelib}/*
-%python3_only %{_bindir}/cmark
+%python_alternative %{_bindir}/cmark
 
 %changelog




commit python-CommonMark for openSUSE:Factory

2020-03-26 Thread root
Hello community,

here is the log from the commit of package python-CommonMark for 
openSUSE:Factory checked in at 2020-03-27 00:25:29

Comparing /work/SRC/openSUSE:Factory/python-CommonMark (Old)
 and  /work/SRC/openSUSE:Factory/.python-CommonMark.new.3160 (New)


Package is "python-CommonMark"

Fri Mar 27 00:25:29 2020 rev:10 rq:785567 version:0.9.1

Changes:

--- /work/SRC/openSUSE:Factory/python-CommonMark/python-CommonMark.changes  
2019-11-04 17:04:16.656124672 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-CommonMark.new.3160/python-CommonMark.changes
2020-03-27 00:25:32.704264331 +0100
@@ -1,0 +2,5 @@
+Mon Mar 16 10:26:20 UTC 2020 - Tomáš Chvátal 
+
+- Fix build without python2
+
+---



Other differences:
--
++ python-CommonMark.spec ++
--- /var/tmp/diff_new_pack.5sh2GV/_old  2020-03-27 00:25:33.520264744 +0100
+++ /var/tmp/diff_new_pack.5sh2GV/_new  2020-03-27 00:25:33.524264746 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-CommonMark
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,22 +18,24 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %define oldpython python
+%bcond_without python2
 Name:   python-CommonMark
 Version:0.9.1
 Release:0
 Summary:Python parser for the CommonMark Markdown spec
 License:BSD-3-Clause
-Group:  Development/Languages/Python
 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 >= 0.14.0
 BuildRequires:  python-rpm-macros
 Requires:   python-setuptools
 Provides:   python-commonmark = %{version}
 Obsoletes:  python-commonmark < %{version}
 BuildArch:  noarch
+%if %{with python2}
+BuildRequires:  python-future >= 0.14.0
+%endif
 %ifpython2
 Requires:   python-future >= 0.14.0
 Obsoletes:  %{oldpython}-commonmark < %{version}




commit python-CommonMark for openSUSE:Factory

2019-11-04 Thread root
Hello community,

here is the log from the commit of package python-CommonMark for 
openSUSE:Factory checked in at 2019-11-04 17:04:15

Comparing /work/SRC/openSUSE:Factory/python-CommonMark (Old)
 and  /work/SRC/openSUSE:Factory/.python-CommonMark.new.2990 (New)


Package is "python-CommonMark"

Mon Nov  4 17:04:15 2019 rev:9 rq:735863 version:0.9.1

Changes:

--- /work/SRC/openSUSE:Factory/python-CommonMark/python-CommonMark.changes  
2019-05-27 08:35:51.231130187 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-CommonMark.new.2990/python-CommonMark.changes
2019-11-04 17:04:16.656124672 +0100
@@ -1,0 +2,7 @@
+Mon Oct  7 13:31:14 UTC 2019 - Tomáš Chvátal 
+
+- Update to 0.9.1:
+  * Require newer future package
+  * minor fixes
+
+---

Old:

  commonmark-0.9.0.tar.gz

New:

  commonmark-0.9.1.tar.gz



Other differences:
--
++ python-CommonMark.spec ++
--- /var/tmp/diff_new_pack.894ikR/_old  2019-11-04 17:04:17.264125322 +0100
+++ /var/tmp/diff_new_pack.894ikR/_new  2019-11-04 17:04:17.276125335 +0100
@@ -19,7 +19,7 @@
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %define oldpython python
 Name:   python-CommonMark
-Version:0.9.0
+Version:0.9.1
 Release:0
 Summary:Python parser for the CommonMark Markdown spec
 License:BSD-3-Clause
@@ -28,14 +28,14 @@
 Source: 
https://files.pythonhosted.org/packages/source/c/commonmark/commonmark-%{version}.tar.gz
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
-BuildRequires:  python-future
+BuildRequires:  python-future >= 0.14.0
 BuildRequires:  python-rpm-macros
 Requires:   python-setuptools
 Provides:   python-commonmark = %{version}
 Obsoletes:  python-commonmark < %{version}
 BuildArch:  noarch
 %ifpython2
-Requires:   python-future
+Requires:   python-future >= 0.14.0
 Obsoletes:  %{oldpython}-commonmark < %{version}
 Provides:   %{oldpython}-commonmark = %{version}
 %endif

++ commonmark-0.9.0.tar.gz -> commonmark-0.9.1.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/commonmark-0.9.0/CHANGELOG.md 
new/commonmark-0.9.1/CHANGELOG.md
--- old/commonmark-0.9.0/CHANGELOG.md   1970-01-01 01:00:00.0 +0100
+++ new/commonmark-0.9.1/CHANGELOG.md   2019-10-04 17:35:41.0 +0200
@@ -0,0 +1,74 @@
+## x.y.z (unreleased)
+
+## 0.9.1 (2019-10-04)
+- commonmark.py now requires `future >= 0.14.0` on Python 2, for uniform 
`builtins` imports in Python 2/3
+- Added CHANGELOG.md to the manifest file.
+
+## 0.9.0 (2019-05-02)
+- The CommonMark spec has been updated to 0.29. Completed by @iamahuman.
+
+## 0.8.1 (2018-09-06)
+- Removed `CommonMark` symlink. So, as of this version, you need to replace 
all instances of `CommonMark` with `commonmark` in your code.
+
+## 0.8.0 (2018-09-03)
+- 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](https://github.com/rtfd/commonmark.py/issues/60)
+- Added testing on Python 3.7.
+
+## 0.7.5 (2018-03-13)
+- Fixed smart dashes bug in Python 3. (from @alvra)
+
+## 0.7.4 (2017-08-05)
+- The CommonMark spec has been updated to 0.28.
+
+## 0.7.3 (2017-01-05)
+- The CommonMark spec has been updated to 0.27.
+
+## 0.7.2 (2016-08-10)
+- Removed outdated files from distributed packages, reported by @hyperknot
+
+## 0.7.1 (2016-07-20)
+- 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
+
+## 0.7.0 (2016-06-07)
+- 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.
+
+## 0.6.4 (2016-05-09)
+- 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
+
+## 0.6.3 (2016-01-19)
+- commonmark.py now supports Python 2.6.
+- The CommonMark spec has been updated to 0.24.
+
+## 0.6.2 (2016-01-08)
+- 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
+
+## 0.6.1 (2016-01-05)
+- Fixed an IndexError exception that occurred when input string
+  was empty.
+
+## 0.6.0 (2016-01-04)

commit python-CommonMark for openSUSE:Factory

2019-05-26 Thread root
Hello community,

here is the log from the commit of package python-CommonMark for 
openSUSE:Factory checked in at 2019-05-27 08:35:51

Comparing /work/SRC/openSUSE:Factory/python-CommonMark (Old)
 and  /work/SRC/openSUSE:Factory/.python-CommonMark.new.5148 (New)


Package is "python-CommonMark"

Mon May 27 08:35:51 2019 rev:8 rq:704960 version:0.9.0

Changes:

--- /work/SRC/openSUSE:Factory/python-CommonMark/python-CommonMark.changes  
2019-03-07 10:50:11.713857412 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-CommonMark.new.5148/python-CommonMark.changes
2019-05-27 08:35:51.231130187 +0200
@@ -1,0 +2,6 @@
+Thu May 23 08:13:19 UTC 2019 - pgaj...@suse.com
+
+- version update to 0.9.0
+  * The CommonMark spec has been updated to 0.29. 
+
+---

Old:

  commonmark-0.8.1.tar.gz

New:

  commonmark-0.9.0.tar.gz



Other differences:
--
++ python-CommonMark.spec ++
--- /var/tmp/diff_new_pack.c7qjQ1/_old  2019-05-27 08:35:51.863129940 +0200
+++ /var/tmp/diff_new_pack.c7qjQ1/_new  2019-05-27 08:35:51.867129938 +0200
@@ -19,7 +19,7 @@
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %define oldpython python
 Name:   python-CommonMark
-Version:0.8.1
+Version:0.9.0
 Release:0
 Summary:Python parser for the CommonMark Markdown spec
 License:BSD-3-Clause

++ commonmark-0.8.1.tar.gz -> commonmark-0.9.0.tar.gz ++
 2064 lines of diff (skipped)




commit python-CommonMark for openSUSE:Factory

2019-03-07 Thread root
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 
+
+- 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 PYT

commit python-CommonMark for openSUSE:Factory

2018-12-13 Thread root
Hello community,

here is the log from the commit of package python-CommonMark for 
openSUSE:Factory checked in at 2018-12-13 19:41:38

Comparing /work/SRC/openSUSE:Factory/python-CommonMark (Old)
 and  /work/SRC/openSUSE:Factory/.python-CommonMark.new.28833 (New)


Package is "python-CommonMark"

Thu Dec 13 19:41:38 2018 rev:6 rq:653983 version:0.7.5

Changes:

--- /work/SRC/openSUSE:Factory/python-CommonMark/python-CommonMark.changes  
2018-04-11 13:57:05.473432054 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-CommonMark.new.28833/python-CommonMark.changes
   2018-12-13 19:41:41.069227075 +0100
@@ -1,0 +2,5 @@
+Tue Dec  4 12:46:47 UTC 2018 - Matej Cepl 
+
+- Remove superfluous devel dependency for noarch package
+
+---



Other differences:
--
++ python-CommonMark.spec ++
--- /var/tmp/diff_new_pack.aPvtuY/_old  2018-12-13 19:41:42.133225942 +0100
+++ /var/tmp/diff_new_pack.aPvtuY/_new  2018-12-13 19:41:42.137225938 +0100
@@ -12,7 +12,7 @@
 # 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/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
@@ -26,7 +26,6 @@
 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 devel}
 BuildRequires:  %{python_module future}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes




commit python-CommonMark for openSUSE:Factory

2018-04-11 Thread root
Hello community,

here is the log from the commit of package python-CommonMark for 
openSUSE:Factory checked in at 2018-04-11 13:56:59

Comparing /work/SRC/openSUSE:Factory/python-CommonMark (Old)
 and  /work/SRC/openSUSE:Factory/.python-CommonMark.new (New)


Package is "python-CommonMark"

Wed Apr 11 13:56:59 2018 rev:5 rq:594620 version:0.7.5

Changes:

--- /work/SRC/openSUSE:Factory/python-CommonMark/python-CommonMark.changes  
2017-10-31 15:43:46.122277185 +0100
+++ /work/SRC/openSUSE:Factory/.python-CommonMark.new/python-CommonMark.changes 
2018-04-11 13:57:05.473432054 +0200
@@ -1,0 +2,9 @@
+Sat Apr  7 21:30:12 UTC 2018 - a...@gmx.de
+
+- specfile:
+  * update copyright year
+
+- update to version 0.7.5:
+  * Fixed smart dashes bug in Python 3 (from @alvra)
+
+---

Old:

  CommonMark-0.7.4.tar.gz

New:

  CommonMark-0.7.5.tar.gz



Other differences:
--
++ python-CommonMark.spec ++
--- /var/tmp/diff_new_pack.kIqPfL/_old  2018-04-11 13:57:06.705387509 +0200
+++ /var/tmp/diff_new_pack.kIqPfL/_new  2018-04-11 13:57:06.709387364 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-CommonMark
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# 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
@@ -19,7 +19,7 @@
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %define oldpython python
 Name:   python-CommonMark
-Version:0.7.4
+Version:0.7.5
 Release:0
 Summary:Python parser for the CommonMark Markdown spec
 License:BSD-3-Clause
@@ -32,7 +32,6 @@
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 Requires:   python-future
-BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 BuildArch:  noarch
 %ifpython2
 Obsoletes:  %{oldpython}-commonmark < %{version}
@@ -42,7 +41,6 @@
 Provides:   python3-commonmark = %{version}
 Obsoletes:  python3-commonmark < %{version}
 %endif
-
 %python_subpackages
 
 %description
@@ -94,18 +92,18 @@
 # python setup.py test
 
 %files %{python_files}
-%defattr(-,root,root,-)
-%doc README.rst LICENSE
+%license LICENSE
+%doc README.rst
 %{python_sitelib}/CommonMark/
 %{python_sitelib}/CommonMark-%{version}-py*.egg-info
 
 %files -n %{name}-doc
-%defattr(-,root,root,-)
-%doc spec.txt LICENSE
+%license LICENSE
+%doc spec.txt
 
 %files -n cmark-python
-%defattr(-,root,root,-)
-%doc spec.txt LICENSE
+%license LICENSE
+%doc spec.txt
 %{_bindir}/cmark
 
 %changelog

++ CommonMark-0.7.4.tar.gz -> CommonMark-0.7.5.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/CommonMark-0.7.4/CommonMark/inlines.py 
new/CommonMark-0.7.5/CommonMark/inlines.py
--- old/CommonMark-0.7.4/CommonMark/inlines.py  2017-08-05 19:23:13.0 
+0200
+++ new/CommonMark-0.7.5/CommonMark/inlines.py  2018-03-13 18:29:11.0 
+0100
@@ -1,4 +1,4 @@
-from __future__ import absolute_import, unicode_literals
+from __future__ import absolute_import, unicode_literals, division
 
 import re
 import sys
@@ -105,19 +105,19 @@
 em_count = 0
 if len(chars) % 3 == 0:
 # If divisible by 3, use all em dashes
-em_count = len(chars) / 3
+em_count = len(chars) // 3
 elif len(chars) % 2 == 0:
 # If divisble by 2, use all en dashes
-en_count = len(chars) / 2
+en_count = len(chars) // 2
 elif len(chars) % 3 == 2:
 # if 2 extra dashes, use en dashfor last 2;
 # em dashes for rest
 en_count = 1
-em_count = (len(chars) - 2) / 3
+em_count = (len(chars) - 2) // 3
 else:
 # Use en dashes for last 4 hyphens; em dashes for rest
 en_count = 2
-em_count = (len(chars) - 4) / 3
+em_count = (len(chars) - 4) // 3
 return ('\u2014' * em_count) + ('\u2013' * en_count)
 
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/CommonMark-0.7.4/CommonMark/main.py 
new/CommonMark-0.7.5/CommonMark/main.py
--- old/CommonMark-0.7.4/CommonMark/main.py 2017-08-05 18:33:33.0 
+0200
+++ new/CommonMark-0.7.5/CommonMark/main.py 2018-03-13 18:29:11.0 
+0100
@@ -1,5 +1,5 @@
 # 2014 - Bibek Kafle & Roland Shoemaker
-# 2015-2016 - Nik Nyby
+# 2015-2017 - Nik Nyby
 # Port of @jgm's commonmark.js implementation of the CommonMark spec.
 
 # Basic usage:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/CommonMark-0.7.4/CommonMark/tests/unit_tests.py 
new/CommonMark-0

commit python-CommonMark for openSUSE:Factory

2017-10-31 Thread root
Hello community,

here is the log from the commit of package python-CommonMark for 
openSUSE:Factory checked in at 2017-10-31 15:43:45

Comparing /work/SRC/openSUSE:Factory/python-CommonMark (Old)
 and  /work/SRC/openSUSE:Factory/.python-CommonMark.new (New)


Package is "python-CommonMark"

Tue Oct 31 15:43:45 2017 rev:4 rq:537519 version:0.7.4

Changes:

--- /work/SRC/openSUSE:Factory/python-CommonMark/python-CommonMark.changes  
2017-06-24 08:35:02.267438470 +0200
+++ /work/SRC/openSUSE:Factory/.python-CommonMark.new/python-CommonMark.changes 
2017-10-31 15:43:46.122277185 +0100
@@ -1,0 +2,6 @@
+Mon Oct 30 01:51:43 UTC 2017 - a...@gmx.de
+
+- update to version 0.7.4:
+  * The CommonMark spec has been updated to 0.28.
+
+---

Old:

  CommonMark-0.7.3.tar.gz

New:

  CommonMark-0.7.4.tar.gz



Other differences:
--
++ python-CommonMark.spec ++
--- /var/tmp/diff_new_pack.PVmQys/_old  2017-10-31 15:43:46.654257901 +0100
+++ /var/tmp/diff_new_pack.PVmQys/_new  2017-10-31 15:43:46.654257901 +0100
@@ -19,7 +19,7 @@
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %define oldpython python
 Name:   python-CommonMark
-Version:0.7.3
+Version:0.7.4
 Release:0
 Summary:Python parser for the CommonMark Markdown spec
 License:BSD-3-Clause

++ CommonMark-0.7.3.tar.gz -> CommonMark-0.7.4.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/CommonMark-0.7.3/.gitignore 
new/CommonMark-0.7.4/.gitignore
--- old/CommonMark-0.7.3/.gitignore 2016-04-29 20:33:44.0 +0200
+++ new/CommonMark-0.7.4/.gitignore 2017-08-05 19:28:59.0 +0200
@@ -78,6 +78,7 @@
 .env
 
 # virtualenv
+ve/
 venv/
 ENV/
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/CommonMark-0.7.3/CommonMark/__init__.py 
new/CommonMark-0.7.4/CommonMark/__init__.py
--- old/CommonMark-0.7.3/CommonMark/__init__.py 2016-08-04 15:18:10.0 
+0200
+++ new/CommonMark-0.7.4/CommonMark/__init__.py 2017-08-05 18:33:33.0 
+0200
@@ -5,3 +5,4 @@
 from CommonMark.dump import dumpAST, dumpJSON
 from CommonMark.blocks import Parser
 from CommonMark.render.html import HtmlRenderer
+from CommonMark.render.rst import ReStructuredTextRenderer
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/CommonMark-0.7.3/CommonMark/blocks.py 
new/CommonMark-0.7.4/CommonMark/blocks.py
--- old/CommonMark-0.7.3/CommonMark/blocks.py   2017-01-05 19:42:33.0 
+0100
+++ new/CommonMark-0.7.4/CommonMark/blocks.py   2017-08-05 19:23:13.0 
+0200
@@ -94,8 +94,8 @@
 'padding': None,
 'marker_offset': parser.indent,
 }
-m = re.match(reBulletListMarker, rest)
-m2 = re.match(reOrderedListMarker, rest)
+m = re.search(reBulletListMarker, rest)
+m2 = re.search(reOrderedListMarker, rest)
 if m:
 data['type'] = 'bullet'
 data['bullet_char'] = m.group()[0]
@@ -320,7 +320,7 @@
 match = indent <= 3 and \
 len(ln) >= parser.next_nonspace + 1 and \
 ln[parser.next_nonspace] == container.fence_char and \
-re.match(reClosingCodeFence, ln[parser.next_nonspace:])
+re.search(reClosingCodeFence, ln[parser.next_nonspace:])
 if match and len(match.group()) >= container.fence_length:
 # closing fence - we're at end of line, so we can return
 parser.finalize(container, parser.line_number)
@@ -448,8 +448,8 @@
 @staticmethod
 def atx_heading(parser, container=None):
 if not parser.indented:
-m = re.match(reATXHeadingMarker,
- parser.current_line[parser.next_nonspace:])
+m = re.search(reATXHeadingMarker,
+  parser.current_line[parser.next_nonspace:])
 if m:
 parser.advance_next_nonspace()
 parser.advance_offset(len(m.group()), False)
@@ -459,8 +459,10 @@
 container.level = len(m.group().strip())
 # remove trailing ###s:
 container.string_content = re.sub(
-r' +#+ *$', '', re.sub(
-r'^ *#+ *$', '', parser.current_line[parser.offset:]))
+r'[ \t]+#+[ \t]*$', '', re.sub(
+r'^[ \t]*#+[ \t]*$',
+'',
+parser.current_line[parser.offset:]))
 parser.advance_offset(
 len(parser.current_line) - parser.offset, False)
 return 2
@@

commit python-CommonMark for openSUSE:Factory

2017-06-23 Thread root
Hello community,

here is the log from the commit of package python-CommonMark for 
openSUSE:Factory checked in at 2017-06-24 08:34:46

Comparing /work/SRC/openSUSE:Factory/python-CommonMark (Old)
 and  /work/SRC/openSUSE:Factory/.python-CommonMark.new (New)


Package is "python-CommonMark"

Sat Jun 24 08:34:46 2017 rev:3 rq:505951 version:0.7.3

Changes:

--- /work/SRC/openSUSE:Factory/python-CommonMark/python-CommonMark.changes  
2017-05-06 18:31:14.661741282 +0200
+++ /work/SRC/openSUSE:Factory/.python-CommonMark.new/python-CommonMark.changes 
2017-06-24 08:35:02.267438470 +0200
@@ -1,0 +2,11 @@
+Wed Jun 21 22:11:08 UTC 2017 - dims...@opensuse.org
+
+- Fix typo in Requires (pyython3 -> python3).
+
+---
+Fri Jun  9 13:22:57 UTC 2017 - jeng...@inai.de
+
+- A roadmap does not belong into the description.
+- Resolve typographicly wrong apostrophe.
+
+---



Other differences:
--
++ python-CommonMark.spec ++
--- /var/tmp/diff_new_pack.90kQbQ/_old  2017-06-24 08:35:02.739371738 +0200
+++ /var/tmp/diff_new_pack.90kQbQ/_new  2017-06-24 08:35:02.743371172 +0200
@@ -26,11 +26,11 @@
 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 future}
 BuildRequires:  %{python_module setuptools}
+BuildRequires:  fdupes
+BuildRequires:  python-rpm-macros
 Requires:   python-future
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 BuildArch:  noarch
@@ -46,41 +46,27 @@
 %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).
+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
+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
-Requires:   pyython3-CommonMark = %{version}
+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. 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).
+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.
@@ -101,14 +87,12 @@
 
 %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
 
-
 %files %{python_files}
 %defattr(-,root,root,-)
 %doc README.rst LICENSE




commit python-CommonMark for openSUSE:Factory

2017-05-06 Thread root
Hello community,

here is the log from the commit of package python-CommonMark for 
openSUSE:Factory checked in at 2017-05-06 18:31:13

Comparing /work/SRC/openSUSE:Factory/python-CommonMark (Old)
 and  /work/SRC/openSUSE:Factory/.python-CommonMark.new (New)


Package is "python-CommonMark"

Sat May  6 18:31:13 2017 rev:2 rq:493129 version:0.7.3

Changes:

--- /work/SRC/openSUSE:Factory/python-CommonMark/python-CommonMark.changes  
2017-04-28 09:12:48.770232411 +0200
+++ /work/SRC/openSUSE:Factory/.python-CommonMark.new/python-CommonMark.changes 
2017-05-06 18:31:14.661741282 +0200
@@ -1,0 +2,5 @@
+Sat May  6 03:31:54 UTC 2017 - toddrme2...@gmail.com
+
+- Fix Provides/Obsoletes.
+
+---



Other differences:
--
++ python-CommonMark.spec ++
--- /var/tmp/diff_new_pack.HaX8tw/_old  2017-05-06 18:31:15.429632929 +0200
+++ /var/tmp/diff_new_pack.HaX8tw/_new  2017-05-06 18:31:15.433632364 +0200
@@ -17,6 +17,7 @@
 
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
+%define oldpython python
 Name:   python-CommonMark
 Version:0.7.3
 Release:0
@@ -33,8 +34,14 @@
 Requires:   python-future
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 BuildArch:  noarch
-Provides:   python-commonmark = %{version}
-Obsoletes:  python-commonmark < %{version}
+%ifpython2
+Obsoletes:  %{oldpython}-commonmark < %{version}
+Provides:   %{oldpython}-commonmark = %{version}
+%endif
+%ifpython3
+Provides:   python3-commonmark = %{version}
+Obsoletes:  python3-commonmark < %{version}
+%endif
 
 %python_subpackages