-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
65 lines (56 loc) · 2.08 KB
/
Copy pathsetup.py
File metadata and controls
65 lines (56 loc) · 2.08 KB
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
import os
import sys
import codecs
from distutils.core import setup
def readme(fname):
return codecs.open(os.path.join(os.path.dirname(__file__), fname), 'r', 'utf-8').read()
'''
ref:http://www.scotttorborg.com/python-packaging/index.html
'''
PACKAGE = 'web3'
NAME = 'web3'
DESCRIPTION = 'web3 is a microframework for Python3 based on WSGI2'
AUTHOR = 'crown.hg'
AUTHOR_EMAIL = 'crown.hg@gmail.com'
URL = 'http://github.com/huanguan1978/web3'
DOWNLOAD_URL = 'http://github.com/huanguan1978/web3/archive/master.zip'
VERSION = __import__(PACKAGE).__version__
KEYWORDS = ['wsgi', 'wsgi2']
setup(
name=NAME,
version=VERSION,
author=AUTHOR,
author_email=AUTHOR_EMAIL,
url=URL,
description=DESCRIPTION,
long_description=readme('README.rst'),
classifiers=[
"Development Status :: 4 - Beta",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Framework :: Web3",
"Natural Language :: English",
"Natural Language :: Chinese (Simplified)",
"Natural Language :: Chinese (Traditional)",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: WSGI",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Middleware",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Server",
"Topic :: Software Development :: Libraries :: Application Frameworks",
"Topic :: Software Development :: Libraries :: Python Modules",
],
download_url = DOWNLOAD_URL,
keywords = KEYWORDS,
license='BSD',
packages = ['web3', 'web3.lib', 'web3.middleware'],
package_dir={'web3':'web3', 'web3.lib':'web3/lib', 'web3.middleware':'web3/middleware'},
package_data = {'web3':['tmpl/*', 'test/middleware/*.py', 'test/*.py']},
scripts = ['scripts/web3rejslib.py', 'scripts/web3tree.py'],
include_package_data=True,
zip_safe=False
)