diff options
| author | Val Neekman <val@neekware.com> | 2018-12-25 16:57:21 -0500 |
|---|---|---|
| committer | Val Neekman <val@neekware.com> | 2018-12-25 16:57:21 -0500 |
| commit | 9bd06cd6fe5e744a935a0c6faf45900961832cc8 (patch) | |
| tree | 8e7a1720bd5ff4eb48aae7b486358ad78816d2f8 | |
| parent | 3ec9f9722d8cfaf6b0000028df2170845a7adc78 (diff) | |
| download | python-slugify-9bd06cd6fe5e744a935a0c6faf45900961832cc8.tar.gz | |
conditional text_unidecode install
| -rwxr-xr-x | setup.py | 10 | ||||
| -rw-r--r-- | slugify/__init__.py | 2 |
2 files changed, 7 insertions, 5 deletions
@@ -7,6 +7,11 @@ import os import sys import codecs +install_requires = [] +try: + import text_unidecode +except ImportError: + install_requires.append('Unidecode>=0.04.16') name = 'python-slugify' package = 'slugify' @@ -15,10 +20,7 @@ url = 'https://github.com/un33k/python-slugify' author = 'Val Neekman' author_email = 'info@neekware.com' license = 'MIT' -if "SLUGIFY_USES_TEXT_UNIDECODE" in os.environ: - install_requires = ['text-unidecode>=1.2'] -else: - install_requires = ['Unidecode>=0.04.16'] + classifiers = [ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', diff --git a/slugify/__init__.py b/slugify/__init__.py index 1a02a3e..81849b9 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__ = '1.2.6' +__version__ = '2.0.0' |
