From b8be7d69119dcceb9a3e0ce64a509415737190ac Mon Sep 17 00:00:00 2001 From: Val Neekman Date: Sun, 3 Mar 2019 12:40:56 -0500 Subject: Promote text-unidecode to primary decoding api (#73) * enable raw re pattern * conditional text_unidecode install * update readme, changelog, manifest * update ci * readme * drop test for py 2.6 and 3.3 * clean up readme * readme * add support user-specific replacements (#66) thx * clean up, up version * add text-unidecode option as extra * Upgrade Unidecode, add text-unidecode as extra option (#71) * Add replacements option (#67) * add text-unidecode option as extra * remove req.txt files * Optional Extra Requirements (#72) * Add replacements option (#67) * Upgrade Unidecode, add text-unidecode as extra option (#71) * Add replacements option (#67) * add text-unidecode option as extra * remove req.txt files * use text-unidecode as primary decoding package * add dev reqs --- slugify/__init__.py | 2 +- slugify/slugify.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'slugify') diff --git a/slugify/__init__.py b/slugify/__init__.py index 7358b99..c2e205b 100644 --- a/slugify/__init__.py +++ b/slugify/__init__.py @@ -3,4 +3,4 @@ from .slugify import * __author__ = 'Val Neekman @ Neekware Inc. [@vneekman]' __description__ = 'A Python slugify application that also handles Unicode' -__version__ = '2.0.1' +__version__ = '3.0.0' diff --git a/slugify/slugify.py b/slugify/slugify.py index 59e9672..fcd1d22 100644 --- a/slugify/slugify.py +++ b/slugify/slugify.py @@ -14,9 +14,9 @@ except ImportError: unichr = chr try: - import unidecode -except ImportError: import text_unidecode as unidecode +except ImportError: + import unidecode __all__ = ['slugify', 'smart_truncate'] -- cgit v1.2.1