-
Notifications
You must be signed in to change notification settings - Fork 339
/
setup.py
57 lines (53 loc) · 1.46 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
import os
import re
from setuptools import find_packages, setup
cur_dir = os.path.dirname(__file__)
readme = os.path.join(cur_dir, 'README.md')
if os.path.exists(readme):
with open(readme) as fh:
long_description = fh.read()
else:
long_description = ''
with open(os.path.join(cur_dir, 'sqlite_web/sqlite_web.py')) as fh:
try:
v, = [re.search(r'= \'([\d\.]+)\'', l).groups()[0]
for l in fh.read().strip().splitlines()
if l.startswith('__version__ = ')]
except:
v = '0.0.0'
setup(
name='sqlite-web',
version=v,
description='Web-based SQLite database browser.',
long_description='Web-based SQLite database browser.',
author='Charles Leifer',
author_email='[email protected]',
url='https://github.com/coleifer/sqlite-web',
license='MIT',
install_requires=[
'flask',
'peewee>=3.0.0',
'pygments',
],
include_package_data=True,
packages=find_packages(),
package_data={
'sqlite_web': [
'static/*/*',
'templates/*'
],
},
entry_points={
'console_scripts': [
'sqlite_web = sqlite_web.sqlite_web:main'
],
},
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
],
zip_safe=False,
)