summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVal Neekman <val@neekware.com>2018-12-25 16:57:21 -0500
committerVal Neekman <val@neekware.com>2018-12-25 16:57:21 -0500
commit9bd06cd6fe5e744a935a0c6faf45900961832cc8 (patch)
tree8e7a1720bd5ff4eb48aae7b486358ad78816d2f8
parent3ec9f9722d8cfaf6b0000028df2170845a7adc78 (diff)
downloadpython-slugify-9bd06cd6fe5e744a935a0c6faf45900961832cc8.tar.gz
conditional text_unidecode install
-rwxr-xr-xsetup.py10
-rw-r--r--slugify/__init__.py2
2 files changed, 7 insertions, 5 deletions
diff --git a/setup.py b/setup.py
index 3e2a490..ab59194 100755
--- a/setup.py
+++ b/setup.py
@@ -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'