-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·64 lines (58 loc) · 1.98 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
#!/usr/bin/env python
#-*- coding: utf-8 -*-
import sys
sys.dont_write_bytecode = True
import os
import re
import posixpath
try:
from setuptools import setup, Extension
except ImportError:
from distutils.core import setup, Extension
def get_str(var_name):
src_py = open('litefs.py').read()
return re.search(
r"%s\s*=\s*['\"]([^'\"]+)['\"]" % var_name, src_py).group(1)
def get_long_str(var_name):
src_py = open('litefs.py').read()
return re.search(
r"%s\s*=\s*['\"]{3}([^'\"]+)['\"]{3}" % var_name, src_py).group(1)
setup(
name='litefs',
version=get_str('__version__'),
description='Build a web server framework using Python.',
long_description=get_long_str('__doc__'),
author=get_str('__author__'),
author_email='[email protected]',
url='https://github.com/leafcoder/litefs',
py_modules=['litefs'],
license=get_str('__license__'),
platforms='any',
package_data={
'': ['*.txt', '*.md', 'LICENSE', 'MANIFEST.in'],
'demo': ['demo/*', '*.py'],
'test': ['test/*', '*.py']
},
install_requires=open('requirements.txt').read().split('\n'),
entry_points={
'console_scripts': [
'litefs=litefs:test_server',
]
},
classifiers=[
'Development Status :: 4 - Beta',
"Operating System :: OS Independent",
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content :: CGI Tools/Libraries',
'Topic :: Internet :: WWW/HTTP :: HTTP Servers',
'Topic :: Software Development :: Libraries :: Application Frameworks',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
]
)