]> git.phdru.name Git - m_librarian.git/blob - setup.py
Version 0.1.0: Web-interface
[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 from setuptools import setup
6
7 versionpath = join(abspath(dirname(__file__)), 'm_librarian', '__version__.py')
8 m_librarian_version = load_source('m_librarian_version', versionpath)
9
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       long_description_content_type="text/plain",
15       author='Oleg Broytman',
16       author_email='phd@phdru.name',
17       url='http://phdru.name/Software/Python/m_librarian/',
18       project_urls={
19           'Homepage': 'http://phdru.name/Software/Python/m_librarian/',
20           'Download':
21               'http://phdru.name/Software/Python/m_librarian/'
22               'm_librarian-%s.tar.bz2' % m_librarian_version.__version__,
23           'Documentation':
24               'http://phdru.name/Software/Python/m_librarian/docs/',
25           'Russian docs':
26               'http://phdru.name/Software/Python/m_librarian/docs/ru/',
27           'Git repo': 'http://git.phdru.name/m_librarian.git/',
28       },
29       license='GPL',
30       keywords=['books', 'library', 'Flibusta', 'LibRusEc', 'lib.rus.ec'],
31       platforms="Any",
32       classifiers=[
33           'Development Status :: 2 - Pre-Alpha',
34           'Environment :: Console',
35           'Intended Audience :: End Users/Desktop',
36           'License :: OSI Approved :: GNU General Public License (GPL)',
37           'Natural Language :: English',
38           'Natural Language :: Russian',
39           'Operating System :: POSIX',
40           'Programming Language :: Python :: 2',
41           'Programming Language :: Python :: 2.7',
42           'Programming Language :: Python :: 3',
43           'Programming Language :: Python :: 3.4',
44           'Programming Language :: Python :: 3.5',
45           'Programming Language :: Python :: 3.6',
46       ],
47       packages=['m_librarian', 'm_librarian.web'],
48       package_data={'m_librarian': [
49           'glst/*.txt', 'glst/genres_*.glst',
50           'translations/*.mo'
51           ]
52       },
53       scripts=['scripts/ml-import.py', 'scripts/ml-initdb.py',
54                'scripts/ml-search.py', 'scripts/ml-web.py'],
55       python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*',
56       install_requires=[
57           'SQLObject>=2.2.1; python_version=="2.7"',
58           'SQLObject>=3.0.0; python_version>="3.4"',
59           'm_lib.defenc>=1.0',
60       ],
61       extras_require={
62           'pbar': ['m_lib>=3.1'],
63           'web': ['bottle', 'Cheetah3'],
64       },
65       )