]> git.phdru.name Git - m_librarian.git/blob - setup.py
Version 0.1.1
[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(
11     name='m_librarian',
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='http://phdru.name/Software/Python/m_librarian/',
19     project_urls={
20         'Homepage': 'http://phdru.name/Software/Python/m_librarian/',
21         'Download': 'https://pypi.org/project/m_librarian/%s/'
22         % 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         'Github repo': 'https://github.com/phdru/m_librarian',
29         'Issue tracker': 'https://github.com/phdru/m_librarian/issues',
30     },
31     license='GPL',
32     keywords=['books', 'library', 'Flibusta', 'LibRusEc', 'lib.rus.ec'],
33     platforms="Any",
34     classifiers=[
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',
48     ],
49     packages=['m_librarian', 'm_librarian.web'],
50     package_data={'m_librarian': [
51         'glst/*.txt', 'glst/genres_*.glst',
52         'translations/*.mo'
53         ]
54     },
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.*',
58     install_requires=[
59         'SQLObject>=2.2.1; python_version=="2.7"',
60         'SQLObject>=3.0.0; python_version>="3.4"',
61         'm_lib.defenc>=1.0',
62     ],
63     extras_require={
64         'pbar': ['m_lib>=3.1'],
65         'web': ['bottle', 'Cheetah3'],
66     },
67 )