]> git.phdru.name Git - m_librarian.git/blob - setup.py
Docs: Add Github URLs
[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.txt', 'rU').read(),
15     long_description_content_type="text/plain",
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':
22             'http://phdru.name/Software/Python/m_librarian/'
23             'm_librarian-%s.tar.bz2' % m_librarian_version.__version__,
24         'Documentation':
25             'http://phdru.name/Software/Python/m_librarian/docs/',
26         'Russian docs':
27             'http://phdru.name/Software/Python/m_librarian/docs/ru/',
28         'Git repo': 'http://git.phdru.name/m_librarian.git/',
29         'Github repo': 'https://github.com/phdru/m_librarian',
30         'Issue tracker': 'https://github.com/phdru/m_librarian/issues',
31     },
32     license='GPL',
33     keywords=['books', 'library', 'Flibusta', 'LibRusEc', 'lib.rus.ec'],
34     platforms="Any",
35     classifiers=[
36         'Development Status :: 2 - Pre-Alpha',
37         'Environment :: Console',
38         'Intended Audience :: End Users/Desktop',
39         'License :: OSI Approved :: GNU General Public License (GPL)',
40         'Natural Language :: English',
41         'Natural Language :: Russian',
42         'Operating System :: POSIX',
43         'Programming Language :: Python :: 2',
44         'Programming Language :: Python :: 2.7',
45         'Programming Language :: Python :: 3',
46         'Programming Language :: Python :: 3.4',
47         'Programming Language :: Python :: 3.5',
48         'Programming Language :: Python :: 3.6',
49     ],
50     packages=['m_librarian', 'm_librarian.web'],
51     package_data={'m_librarian': [
52         'glst/*.txt', 'glst/genres_*.glst',
53         'translations/*.mo'
54         ]
55     },
56     scripts=['scripts/ml-import.py', 'scripts/ml-initdb.py',
57              'scripts/ml-search.py', 'scripts/ml-web.py'],
58     python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*',
59     install_requires=[
60         'SQLObject>=2.2.1; python_version=="2.7"',
61         'SQLObject>=3.0.0; python_version>="3.4"',
62         'm_lib.defenc>=1.0',
63     ],
64     extras_require={
65         'pbar': ['m_lib>=3.1'],
66         'web': ['bottle', 'Cheetah3'],
67     },
68 )