summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorbolkedebruin <bolkedebruin@users.noreply.github.com>2018-03-25 03:48:47 +0200
committerVal Neekman <un33kvu@gmail.com>2018-03-24 21:48:47 -0400
commit874fe140aa68ee1065e2170385f8c4ace5ac644a (patch)
tree955640a1612c32b7c45673f3f011191c2e3ed307 /setup.py
parente14bde218d794869eba8d23949bf0a9de8611a46 (diff)
downloadpython-slugify-874fe140aa68ee1065e2170385f8c4ace5ac644a.tar.gz
Use unidecode as an API and allow alternatives (#53)
This PR allows specifying WITH_TEXTUNIDECODE when installing python-slugify. This allows using text-unidecode instead of unidecode. It will default to using unidecode. Closes: #51
Diffstat (limited to 'setup.py')
-rwxr-xr-xsetup.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/setup.py b/setup.py
index abfaa3f..dcf21df 100755
--- a/setup.py
+++ b/setup.py
@@ -15,7 +15,10 @@ url = 'https://github.com/un33k/python-slugify'
author = 'Val Neekman'
author_email = 'info@neekware.com'
license = 'MIT'
-install_requires = ['Unidecode>=0.04.16']
+if "WITH_TEXTUNIDECODE" 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',