diff options
| author | Val Neekman <un33kvu@gmail.com> | 2018-12-25 18:00:44 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-12-25 18:00:44 -0500 |
| commit | 76f4eabe323653555d11702c3e53b66ebf352683 (patch) | |
| tree | deebed86a83e9710786a4ffd706f7cd5f32e0559 /setup.py | |
| parent | f4462bb64278e091011e6612feac295bf46d1136 (diff) | |
| download | python-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-x | setup.py | 10 |
1 files changed, 6 insertions, 4 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', |
