]> git.phdru.name Git - m_librarian.git/blob - setup.py
Docs: Recode README.rus.txt to utf-8
[m_librarian.git] / setup.py
1 #!/usr/bin/env python
2
3 from imp import load_source
4 from os.path import abspath, dirname, join
5
6 try:
7     from setuptools import setup
8     is_setuptools = True
9 except ImportError:
10     from distutils.core import setup
11     is_setuptools = False
12
13 kw = {}
14 if is_setuptools:
15     kw['python_requires'] = '>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*'
16
17 versionpath = join(abspath(dirname(__file__)), 'm_librarian', '__version__.py')
18 m_librarian_version = load_source('m_librarian_version', versionpath)
19
20 setup(name='m_librarian',
21       version=m_librarian_version.__version__,
22       description='m_Librarian for LibRusEc/Flibusta libraries',
23       long_description=open('README.txt', 'rtU').read(),
24       author='Oleg Broytman',
25       author_email='phd@phdru.name',
26       url='http://phdru.name/Software/Python/m_librarian/',
27       license='GPL',
28       keywords=['books', 'library', 'Flibusta', 'LibRusEc', 'lib.rus.ec'],
29       platforms="Any",
30       classifiers=[
31           'Development Status :: 2 - Pre-Alpha',
32           'Environment :: Console',
33           'Intended Audience :: End Users/Desktop',
34           'License :: OSI Approved :: GNU General Public License (GPL)',
35           'Natural Language :: English',
36           'Natural Language :: Russian',
37           'Operating System :: POSIX',
38           'Programming Language :: Python :: 2',
39           'Programming Language :: Python :: 2.7',
40           'Programming Language :: Python :: 3',
41           'Programming Language :: Python :: 3.4',
42           'Programming Language :: Python :: 3.5',
43           'Programming Language :: Python :: 3.6',
44       ],
45       packages=['m_librarian'],
46       package_data={'m_librarian': [
47           'glst/*.txt', 'glst/genres_*.glst',
48           'translations/*.mo'
49           ]
50       },
51       scripts=['scripts/ml-import.py', 'scripts/ml-initdb.py',
52                'scripts/ml-search.py'],
53       **kw
54       )