-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
executable file
·100 lines (88 loc) · 2.77 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
import os
try:
from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
# pip install -e .[develop]
develop_requires = [
'WebTest',
'ScriptTest',
'coverage',
'docutils',
'minimock',
'nose',
]
cdir = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(cdir, 'readme.rst')).read()
CHANGELOG = open(os.path.join(cdir, 'changelog.rst')).read()
VERSION = open(os.path.join(cdir, 'blazeweb', 'version.txt')).read().strip()
required_packages = [
'Beaker>=1.5',
'BlazeUtils>0.3.7',
'Blinker>=1.0',
'decorator>=3.0.1',
'FormEncode>=1.2',
'html2text>=2.35',
'jinja2>=2.5',
'markdown2>=1.0.1',
'Paste>=1.7',
'PasteScript>=1.7',
'WebHelpers2',
'Werkzeug>=1.0.0',
]
try:
import json
del json
except ImportError:
required_packages.append('simplejson>=2.1.1')
setup(
name="BlazeWeb",
version=VERSION,
description="A light weight WSGI framework with a pluggable architecture",
long_description='\n\n'.join((README, CHANGELOG)),
author="Randy Syring",
author_email="randy.syring@level12.io",
url='http://pypi.python.org/pypi/BlazeWeb/',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Topic :: Internet :: WWW/HTTP'
],
license='BSD',
packages=find_packages(exclude=['tests']),
include_package_data=True,
install_requires=required_packages,
extras_require={'develop': develop_requires},
entry_points="""
[console_scripts]
bw = blazeweb.scripting:blazeweb_entry
[blazeweb.no_app_command]
help=paste.script.help:HelpCommand
project = blazeweb.commands:ProjectCommand
jinja-convert = blazeweb.commands:JinjaConvertCommand
[blazeweb.app_command]
serve = blazeweb.commands:ServeCommand
help = paste.script.help:HelpCommand
testrun = blazeweb.commands:TestRunCommand
tasks = blazeweb.commands:TasksCommand
shell = blazeweb.commands:ShellCommand
routes = blazeweb.commands:RoutesCommand
static-copy = blazeweb.commands:StaticCopyCommand
component-map = blazeweb.commands:ComponentMapCommand
[blazeweb.blazeweb_project_template]
minimal = blazeweb.paster_tpl:MinimalProjectTemplate
bwproject = blazeweb.paster_tpl:ProjectTemplate
[nose.plugins]
blazeweb_initapp = blazeweb.nose_plugin:InitAppPlugin
[pytest11]
blazeweb_initapp = blazeweb.pytest_plugin
""",
zip_safe=False
)