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