3 from imp import load_source
4 from os.path import abspath, dirname, join
5 from setuptools import setup
7 versionpath = join(abspath(dirname(__file__)), 'm_librarian', '__version__.py')
8 m_librarian_version = load_source('m_librarian_version', versionpath)
10 setup(name='m_librarian',
11 version=m_librarian_version.__version__,
12 description='m_Librarian for LibRusEc/Flibusta libraries',
13 long_description=open('README.txt', 'rtU').read(),
14 author='Oleg Broytman',
15 author_email='phd@phdru.name',
16 url='http://phdru.name/Software/Python/m_librarian/',
18 keywords=['books', 'library', 'Flibusta', 'LibRusEc', 'lib.rus.ec'],
21 'Development Status :: 2 - Pre-Alpha',
22 'Environment :: Console',
23 'Intended Audience :: End Users/Desktop',
24 'License :: OSI Approved :: GNU General Public License (GPL)',
25 'Natural Language :: English',
26 'Natural Language :: Russian',
27 'Operating System :: POSIX',
28 'Programming Language :: Python :: 2',
29 'Programming Language :: Python :: 2.7',
30 'Programming Language :: Python :: 3',
31 'Programming Language :: Python :: 3.4',
32 'Programming Language :: Python :: 3.5',
33 'Programming Language :: Python :: 3.6',
35 packages=['m_librarian'],
36 package_data={'m_librarian': [
37 'glst/*.txt', 'glst/genres_*.glst',
41 scripts=['scripts/ml-import.py', 'scripts/ml-initdb.py',
42 'scripts/ml-search.py'],
43 python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*',
44 install_requires=['m_lib.defenc>=1.0'],
46 'm_lib': ['m_lib>=3.1'],
47 'pbar': ['m_lib>=3.1'],