4 from imp import load_source
5 from os.path import abspath, dirname, join
8 from setuptools import setup
11 from distutils.core import setup
16 kw['install_requires'] = ['SQLObject>=2.2.1', 'm_lib.defenc>=1.0']
17 if (sys.version_info[:2] == (2, 6)):
18 kw['install_requires'].append('argparse')
20 versionpath = join(abspath(dirname(__file__)), 'm_librarian', '__version__.py')
21 load_source('m_librarian_version', versionpath)
22 # Ignore: E402 module level import not at top of file
23 from m_librarian_version import __version__ # noqa
25 setup(name='m_librarian',
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/',
34 keywords=['books', 'library', 'Flibusta', 'LibRusEc', 'lib.rus.ec'],
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',
48 packages=['m_librarian'],
49 package_data={'m_librarian': [
50 'glst/*.txt', 'glst/genres_*.glst',
54 scripts=['scripts/ml-import.py', 'scripts/ml-initdb.py',
55 'scripts/ml-search.py'],