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)
12 version=m_librarian_version.__version__,
13 description='m_Librarian for LibRusEc/Flibusta libraries',
14 long_description=open('README.rst', 'rU').read(),
15 long_description_content_type="text/x-rst",
16 author='Oleg Broytman',
17 author_email='phd@phdru.name',
18 url='https://phdru.name/Software/Python/m_librarian/',
20 'Homepage': 'https://phdru.name/Software/Python/m_librarian/',
21 'Download': 'https://pypi.org/project/m_librarian/%s/'
22 % m_librarian_version.__version__,
24 'https://phdru.name/Software/Python/m_librarian/docs/',
26 'https://phdru.name/Software/Python/m_librarian/docs/ru/',
27 'Git repo': 'https://git.phdru.name/m_librarian.git/',
28 'Github repo': 'https://github.com/phdru/m_librarian',
29 'Issue tracker': 'https://github.com/phdru/m_librarian/issues',
32 keywords=['books', 'library', 'Flibusta', 'LibRusEc', 'lib.rus.ec'],
35 'Development Status :: 2 - Pre-Alpha',
36 'Environment :: Console',
37 'Intended Audience :: End Users/Desktop',
38 'License :: OSI Approved :: GNU General Public License (GPL)',
39 'Natural Language :: English',
40 'Natural Language :: Russian',
41 'Operating System :: POSIX',
42 'Programming Language :: Python :: 2',
43 'Programming Language :: Python :: 2.7',
44 'Programming Language :: Python :: 3',
45 'Programming Language :: Python :: 3.4',
46 'Programming Language :: Python :: 3.5',
47 'Programming Language :: Python :: 3.6',
49 packages=['m_librarian', 'm_librarian.web'],
50 package_data={'m_librarian': [
51 'glst/*.txt', 'glst/genres_*.glst',
55 scripts=['scripts/ml-import.py', 'scripts/ml-initdb.py',
56 'scripts/ml-search.py', 'scripts/ml-web.py'],
57 python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*',
59 'SQLObject>=2.2.1; python_version=="2.7"',
60 'SQLObject>=3.0.0; python_version>="3.4"',
64 'pbar': ['m_lib>=3.1'],
65 'web': ['bottle', 'Cheetah3'],