Skip to content

Commit

Permalink
Refs #273 - Replaced vendored markup lib by dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
claudep committed Oct 3, 2019
1 parent a7c40a0 commit 8cc024e
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 979 deletions.
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1 +1 @@
include HISTORY.md README.md LICENSE AUTHORS NOTICE test_tablib.py
include HISTORY.md README.md LICENSE AUTHORS test_tablib.py
6 changes: 0 additions & 6 deletions NOTICE

This file was deleted.

1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
backports.csv; python_version < '3.0'
MarkupPy
odfpy
openpyxl>=2.4.0
pandas
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
'odfpy',
'openpyxl>=2.4.0',
'backports.csv;python_version<"3.0"',
'markuppy'
'xlrd',
'xlwt',
'pyyaml',
Expand Down
4 changes: 2 additions & 2 deletions tablib/compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
if is_py3:
from io import BytesIO
from io import StringIO
from tablib.packages import markup3 as markup
from statistics import median
from itertools import zip_longest as izip_longest
import csv
Expand All @@ -28,11 +27,12 @@
else:
from cStringIO import StringIO as BytesIO
from StringIO import StringIO
from tablib.packages import markup
from tablib.packages.statistics import median
from itertools import izip_longest
from backports import csv
import tablib.packages.dbfpy as dbfpy

unicode = unicode
xrange = xrange

from MarkupPy import markup # Kept temporarily to avoid breaking existing imports
5 changes: 2 additions & 3 deletions tablib/formats/_html.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,13 @@

if sys.version_info[0] > 2:
from io import BytesIO as StringIO
from tablib.packages import markup3 as markup
else:
from cStringIO import StringIO
from tablib.packages import markup

import codecs
from MarkupPy import markup
import tablib
from tablib.compat import unicode
import codecs

BOOK_ENDINGS = 'h3'

Expand Down
Loading

0 comments on commit 8cc024e

Please sign in to comment.