summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorVal Neekman <un33kvu@gmail.com>2018-12-25 18:00:44 -0500
committerGitHub <noreply@github.com>2018-12-25 18:00:44 -0500
commit76f4eabe323653555d11702c3e53b66ebf352683 (patch)
treedeebed86a83e9710786a4ffd706f7cd5f32e0559 /setup.py
parentf4462bb64278e091011e6612feac295bf46d1136 (diff)
downloadpython-slugify-2.0.0.tar.gz
Proper fallback to text-unidecode, favoring Unidecode, drop support for py 2.6, 3.3. (#63)2.0.0
* 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
Diffstat (limited to 'setup.py')
-rwxr-xr-xsetup.py10
1 files changed, 6 insertions, 4 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',