]> git.phdru.name Git - m_librarian.git/blob - setup.py
Build(setup.py): Use python_requires keyword
[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
6 try:
7     from setuptools import setup
8     is_setuptools = True
9 except ImportError:
10     from distutils.core import setup
11     is_setuptools = False
12
13 kw = {}
14 if is_setuptools:
15     kw['python_requires'] = '>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*'
16
17 versionpath = join(abspath(dirname(__file__)), 'm_librarian', '__version__.py')
18 load_source('m_librarian_version', versionpath)
19 # Ignore: E402 module level import not at top of file
20 from m_librarian_version import __version__  # noqa
21
22 setup(name='m_librarian',
23       version=__version__,
24       description='m_Librarian for LibRusEc/Flibusta libraries',
25       long_description=open('README.txt', 'rtU').read(),
26       author='Oleg Broytman',
27       author_email='phd@phdru.name',
28       url='http://phdru.name/Software/Python/m_librarian/',
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'],
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'],
55       **kw
56       )