This repository has been archived by the owner on Dec 1, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
/
setup.py
66 lines (53 loc) · 1.72 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
"""
Flask-WhooshAlchemy
-------------
Whoosh extension to Flask/SQLAlchemy
"""
import os
from setuptools import setup
SRC_PATH = os.path.dirname(__file__)
def get_version():
with open(os.path.join(SRC_PATH, 'flask_whooshalchemyplus.py')) as f:
for l in f.readlines():
if l.startswith('__version__'):
exec (l)
return locals().get('__version__')
def get_requirements():
with open(os.path.join(SRC_PATH, 'requirements.txt')) as f:
return [x.strip() for x in f.readlines()]
def get_readme():
with open(os.path.join(SRC_PATH, 'README.rst')) as f:
return f.read()
VERSION = get_version()
REQUIRES = get_requirements()
README = get_readme()
setup(
name='Flask-WhooshAlchemyPlus',
version=VERSION,
url='https://github.com/revolution1/Flask-WhooshAlchemyPlus',
license='BSD',
author='Revolution1',
author_email='[email protected]',
maintainer='Revolution1',
maintainer_email='[email protected]',
description='Whoosh extension to Flask/SQLAlchemy',
long_description=README,
py_modules=['flask_whooshalchemyplus'],
provides=['flask_whooshalchemyplus'],
zip_safe=False,
include_package_data=True,
platforms='any',
install_requires=REQUIRES,
requires=REQUIRES,
tests_require=['Flask-Testing'],
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules'
],
test_suite='test.test_all',
)