]> git.phdru.name Git - m_librarian.git/blob - setup.py
Fix(scripts/ml-import.py): print "Ok"
[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     kw['install_requires'] = ['m_lib.defenc>=1.0']
17     kw['extras_require'] = {
18         'm_lib': ['m_lib>=3.1'],
19         'pbar': ['m_lib>=3.1'],
20     }
21
22 versionpath = join(abspath(dirname(__file__)), 'm_librarian', '__version__.py')
23 m_librarian_version = load_source('m_librarian_version', versionpath)
24
25 setup(name='m_librarian',
26       version=m_librarian_version.__version__,
27       description='m_Librarian for LibRusEc/Flibusta libraries',
28       long_description=open('README.txt', 'rtU').read(),
29       author='Oleg Broytman',
30       author_email='phd@phdru.name',
31       url='http://phdru.name/Software/Python/m_librarian/',
32       license='GPL',
33       keywords=['books', 'library', 'Flibusta', 'LibRusEc', 'lib.rus.ec'],
34       platforms="Any",
35       classifiers=[
36           'Development Status :: 2 - Pre-Alpha',
37           'Environment :: Console',
38           'Intended Audience :: End Users/Desktop',
39           'License :: OSI Approved :: GNU General Public License (GPL)',
40           'Natural Language :: English',
41           'Natural Language :: Russian',
42           'Operating System :: POSIX',
43           'Programming Language :: Python :: 2',
44           'Programming Language :: Python :: 2.7',
45           'Programming Language :: Python :: 3',
46           'Programming Language :: Python :: 3.4',
47           'Programming Language :: Python :: 3.5',
48           'Programming Language :: Python :: 3.6',
49       ],
50       packages=['m_librarian'],
51       package_data={'m_librarian': [
52           'glst/*.txt', 'glst/genres_*.glst',
53           'translations/*.mo'
54           ]
55       },
56       scripts=['scripts/ml-import.py', 'scripts/ml-initdb.py',
57                'scripts/ml-search.py'],
58       **kw
59       )