-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
90 lines (65 loc) · 2.18 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
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
from codecs import open
from os import path
import sys
here = path.abspath(path.dirname(__file__))
def read(relpath):
with open(path.join(here, relpath), encoding="utf-8") as f:
return f.read()
requires = ["server-reloader", "tblib", "pyjwt>=1.0.1", "dill"]
if sys.version_info < (2, 7):
requires.append("argparse")
requires.append("importlib")
if (3, ) <= sys.version_info < (3, 2):
requires.append("argparse")
if (3, ) <= sys.version_info < (3, 1):
requires.append("importlib")
setup(
name='ohoh',
version="0.1.0",
description='A debug server for WSGI apps.',
long_description=read("README.rst"),
url='https://github.com/te-je/ohoh',
author='Te-je Rodgers',
author_email='[email protected]',
license='MIT',
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.0',
'Programming Language :: Python :: 3.1',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Topic :: Internet :: WWW/HTTP :: WSGI :: Middleware',
'Topic :: Internet :: WWW/HTTP :: WSGI :: Server',
],
keywords='findig wsgi debug server',
setup_requires=['setuptools_scm'],
use_scm_version={"write_to": "ohoh/VERSION.txt"},
packages=find_packages(exclude=['tests']),
install_requires=requires,
extras_require={
'httpie_plugin': ['httpie', 'pygments', 'requests'],
'client_tools': ['requests'],
},
package_data={
'ohoh': ['VERSION.txt'],
},
entry_points={
'console_scripts': [
"ohoh=ohoh:main",
],
'httpie.plugins.formatter.v1': [
"ohoh=ohoh.clients.httpie:Formatter"
],
},
use_2to3=True,
)