diff options
| author | bolkedebruin <bolkedebruin@users.noreply.github.com> | 2018-03-25 03:48:47 +0200 |
|---|---|---|
| committer | Val Neekman <un33kvu@gmail.com> | 2018-03-24 21:48:47 -0400 |
| commit | 874fe140aa68ee1065e2170385f8c4ace5ac644a (patch) | |
| tree | 955640a1612c32b7c45673f3f011191c2e3ed307 /setup.py | |
| parent | e14bde218d794869eba8d23949bf0a9de8611a46 (diff) | |
| download | python-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-x | setup.py | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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', |
