3 from os.path import abspath, dirname, join
4 from setuptools import setup
7 versionpath = join(abspath(dirname(__file__)), 'm_librarian', '__version__.py')
8 m_librarian_version = {}
10 if sys.version_info[:2] == (2, 7):
11 execfile(versionpath, m_librarian_version) # noqa: F821 'execfile' Py3
13 elif sys.version_info >= (3, 4):
14 exec(open(versionpath, 'r').read(), m_librarian_version)
17 raise ImportError("m_librarian requires Python 2.7 or 3.4+")
21 version=m_librarian_version['__version__'],
22 description='m_Librarian for LibRusEc/Flibusta libraries',
23 long_description=open('README.rst', 'r').read(),
24 long_description_content_type="text/x-rst",
25 author='Oleg Broytman',
26 author_email='phd@phdru.name',
27 url='https://phdru.name/Software/Python/m_librarian/',
29 'Homepage': 'https://phdru.name/Software/Python/m_librarian/',
30 'Download': 'https://pypi.org/project/m_librarian/%s/'
31 % m_librarian_version['__version__'],
33 'https://phdru.name/Software/Python/m_librarian/docs/',
35 'https://phdru.name/Software/Python/m_librarian/docs/ru/',
36 'Git repo': 'https://git.phdru.name/m_librarian.git/',
37 'Github repo': 'https://github.com/phdru/m_librarian',
38 'Issue tracker': 'https://github.com/phdru/m_librarian/issues',
41 keywords=['books', 'library', 'Flibusta', 'LibRusEc', 'lib.rus.ec'],
44 'Development Status :: 2 - Pre-Alpha',
45 'Environment :: Console',
46 'Intended Audience :: End Users/Desktop',
47 'License :: OSI Approved :: GNU General Public License (GPL)',
48 'Natural Language :: English',
49 'Natural Language :: Russian',
50 'Operating System :: POSIX',
51 'Programming Language :: Python :: 2',
52 'Programming Language :: Python :: 2.7',
53 'Programming Language :: Python :: 3',
54 'Programming Language :: Python :: 3.4',
55 'Programming Language :: Python :: 3.5',
56 'Programming Language :: Python :: 3.6',
57 'Programming Language :: Python :: 3.7',
58 'Programming Language :: Python :: 3.8',
59 'Programming Language :: Python :: 3.9',
60 'Programming Language :: Python :: 3.10',
61 'Programming Language :: Python :: 3.11',
62 'Programming Language :: Python :: 3.12',
64 packages=['m_librarian', 'm_librarian.web'],
65 package_data={'m_librarian': [
66 'glst/*.txt', 'glst/genres_*.glst',
67 'translations_dir/*.mo', 'translations_dir/*.po',
68 'web/static/style.css', 'web/views/*.py', 'web/views/*.tmpl',
71 scripts=['scripts/ml-import.py', 'scripts/ml-initdb.py',
72 'scripts/ml-search.py', 'scripts/ml-web.py'],
73 python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*',
75 'SQLObject>=2.2.1; python_version=="2.7"',
76 'SQLObject>=3.0.0; python_version>="3.4"',
80 'pbar': ['m_lib>=3.1'],
81 'web': ['bottle', 'CT3'],