Skip to content

Commit bce3557

Browse files
authored
Merge pull request #2183 from nexB/revert-ftfy
Revert to another version of ftfy that runs Py2 and 3
2 parents 57dab7d + cd73d58 commit bce3557

7 files changed

Lines changed: 31 additions & 21 deletions

setup.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def read(*names, **kwargs):
137137
# cluecode
138138
# Some nltk version ranges are buggy
139139
'nltk >= 3.2, < 4.0',
140-
'py2_ipaddress >= 2.0, <3.5; python_version<"3"',
140+
'py2_ipaddress >= 2.0, <3.5; python_version < "3"',
141141
'urlpy',
142142
'publicsuffix2',
143143
'fingerprints >= 0.6.0, < 1.0.0',
@@ -146,12 +146,12 @@ def read(*names, **kwargs):
146146
'patch >= 1.15, < 1.20 ',
147147
# to work around bug http://bugs.python.org/issue19839
148148
# on multistream bzip2 files: this can removed in Python 3.
149-
'bz2file >= 0.98; python_version<"3"',
149+
'bz2file >= 0.98; python_version < "3"',
150150
'extractcode_libarchive',
151151
'extractcode_7z',
152152

153153
# commoncode
154-
'backports.os == 0.1.1; python_version<"3"',
154+
'backports.os == 0.1.1; python_version < "3"',
155155
'future >= 0.16.0',
156156
'text_unidecode >= 1.0, < 2.0',
157157
'saneyaml',
@@ -192,8 +192,8 @@ def read(*names, **kwargs):
192192
'dparse >= 0.4.1',
193193

194194
# used to fix mojibake in Windows PE
195-
'ftfy < 5.0.0; python_version == "2.7"',
196-
'ftfy>= 5.0.0; python_version > "3"',
195+
# for now we use the evrsion that works on both Python 2 and 3
196+
'ftfy < 5.0.0',
197197

198198
# scancode
199199
'click >= 6.0.0, < 7.0.0',
@@ -210,8 +210,8 @@ def read(*names, **kwargs):
210210

211211
# ScanCode caching and locking
212212
'yg.lockfile >= 2.3, < 3.0.0',
213-
# used by yg.lockfile
214-
'contextlib2', 'pytz', 'tempora', 'jaraco.functools',
213+
# used by yg.lockfile
214+
'contextlib2', 'pytz', 'tempora', 'jaraco.functools',
215215
'zc.lockfile >= 2.0.0, < 3.0.0',
216216
],
217217

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: ftfy
2+
version: 4.4.3
3+
about_resource: ftfy-4.4.3-py2-none-any.whl
4+
download_url: https://files.pythonhosted.org/packages/21/5d/9385540977b00df1f3a0c0f07b7e6c15b5e7a3109d7f6ae78a0a764dab22/ftfy-4.4.3.tar.gz
5+
license_expression: mit
6+
copyright: Copyright (c) Rob Speer (rob@luminoso.com)
7+
attribute: yes
8+
package_url: pkg:pypi/ftfy@4.4.3
9+
licenses:
10+
- key: mit
11+
name: MIT License
12+
file: mit.LICENSE
40.1 KB
Binary file not shown.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: ftfy
2+
version: 4.4.3
3+
about_resource: ftfy-4.4.3-py3-none-any.whl
4+
download_url: https://files.pythonhosted.org/packages/21/5d/9385540977b00df1f3a0c0f07b7e6c15b5e7a3109d7f6ae78a0a764dab22/ftfy-4.4.3.tar.gz
5+
license_expression: mit
6+
copyright: Copyright (c) Rob Speer (rob@luminoso.com)
7+
attribute: yes
8+
package_url: pkg:pypi/ftfy@4.4.3
9+
licenses:
10+
- key: mit
11+
name: MIT License
12+
file: mit.LICENSE

thirdparty/ftfy-4.4.3.tar.gz

49.3 KB
Binary file not shown.
-42.9 KB
Binary file not shown.

thirdparty/ftfy-5.5.1-py3-none-any.whl.ABOUT

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)