15
0
Files
python-html2text/remove_unittest2.patch
Matej Cepl c5b6b6eb96 - Upgrade to 2018.1.9:
Fix #188: Non-ASCII in title attribute causes encode error.
    Feature #194: Add support for the <kbd> tag.
    Feature #193: Add support for the <q> tag.
    Fix #157: Fix images link with div wrap
    Fix #55: Fix error when empty title tags
    Fix #160: The html2text tests are failing on Windows and on
        Cygwin due to differences in eol handling between
        Windows/*nix
    Feature #164: Housekeeping: Add flake8 to the travis build,
        cleanup existing flake8 violations, add py3.6 and pypy3
        to the travis build
    Fix #109: Fix for unexpanded &lt; &gt; &amp;
    Fix #143: Fix line wrapping for the lines starting with bold
        Adds support for numeric bold text indication in font-weight,
        as used by Google (and presumably others.)
    Fix #173 and #142: Stripping whitespace in crucial markdown
        and adding whitespace as necessary
        Don't drop any cell data on tables uneven row lengths
        (e.g. colspan in use)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-html2text?expand=0&rev=26
2018-08-13 11:48:24 +00:00

65 lines
1.6 KiB
Diff

--- a/setup.py
+++ b/setup.py
@@ -18,14 +18,7 @@ try:
except ImportError:
read_md = read_md_open
-requires_list = []
-try:
- import unittest2 as unittest
-except ImportError:
- import unittest
-else:
- if sys.version_info <= (2, 6):
- requires_list.append("unittest2")
+import unittest
class RunTests(Command):
@@ -68,9 +61,6 @@ setup(
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
- 'Programming Language :: Python :: 2.4',
- 'Programming Language :: Python :: 2.5',
- 'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.0',
@@ -85,7 +75,6 @@ setup(
html2text=html2text.cli:main
""",
license='GNU GPL 3',
- requires=requires_list,
packages=find_packages(exclude=['test']),
include_package_data=True,
zip_safe=False,
--- a/test/test_html2text.py
+++ b/test/test_html2text.py
@@ -7,10 +7,7 @@ import re
import subprocess
import sys
-if sys.version_info[:2] < (2, 7):
- import unittest2 as unittest
-else:
- import unittest
+import unittest
logging.basicConfig(format='%(levelname)s:%(funcName)s:%(message)s',
--- a/test/test_memleak.py
+++ b/test/test_memleak.py
@@ -1,10 +1,7 @@
import html2text
import logging
import sys
-if sys.version_info[:2] < (2, 7):
- import unittest2 as unittest
-else:
- import unittest
+import unittest
logging.basicConfig(format='%(levelname)s:%(funcName)s:%(message)s',