1#!/usr/bin/env python 2# -*- coding: utf-8 -*- 3 4use_setuptools = True 5if use_setuptools: 6 try: 7 from setuptools import setup 8 except ImportError: 9 print("Cannot load setuptool, revert to distutils") 10 use_setuptools = False 11 from distutils.core import setup 12else: 13 from distutils.core import setup 14 15version = "0.3" 16 17setup_data = { 18 'name': 'pytils', 19 'version': version, 20 'author': 'Yury Yurevich', 21 'author_email': 'yyurevich@jellycrystal.com', 22 'url': 'https://github.com/j2a/pytils/', 23 'description': 'Russian-specific string utils', 24 'long_description': """Simple tools for processing strings in russian 25(choose proper form for plurals, in-words representation of numerals, 26dates in russian without locales, transliteration, etc)""", 27 'packages': ['pytils', 'pytils.templatetags', 'pytils.test', 'pytils.test.templatetags', 'pytils.third'], 28 'license': "MIT", 29 'platforms': "All", 30 'classifiers': [ 31 'Topic :: Software Development :: Libraries :: Python Modules', 32 'Topic :: Text Processing :: Linguistic', 33 'License :: OSI Approved :: MIT License', 34 'Operating System :: OS Independent', 35 'Programming Language :: Python', 36 'Natural Language :: Russian', 37 'Development Status :: 4 - Beta', 38 'Intended Audience :: Developers', 39 ], 40 } 41setuptools_extensions = { 42 'zip_safe': True, 43 'test_suite': 'pytils.test.get_suite', 44 'include_package_data': True, 45 } 46 47if use_setuptools: 48 setup_data.update(setuptools_extensions) 49 50args = () 51kwargs = setup_data 52setup(*args, **kwargs) 53