-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup.py
More file actions
95 lines (78 loc) · 2.32 KB
/
setup.py
File metadata and controls
95 lines (78 loc) · 2.32 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
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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
httphq
~~~~~~~~
HTTP Request & Response service
:copyright: (c) 2011 - 2013 by Alexandr Lispython (alex@obout.ru).
:license: BSD, see LICENSE for more details.
"""
import sys
import os
from setuptools import setup, find_packages
try:
readme_content = open(os.path.join(os.path.abspath(
os.path.dirname(__file__)), "README.rst")).read()
except Exception:
exc = sys.exc_info()[1]
# Current exception is 'exc'
print(exc)
readme_content = __doc__
VERSION = "0.0.6"
def run_tests():
from tests import suite
return suite()
py_ver = sys.version_info
#: Python 2.x?
is_py2 = (py_ver[0] == 2)
#: Python 3.x?
is_py3 = (py_ver[0] == 3)
tests_require = [
'nose',
'mock==1.0.1']
install_requires = [
"tornado==2.4.1",
"commandor==0.1.5"]
if not (is_py3 or (is_py2 and py_ver[1] >= 7)):
install_requires.append("importlib==1.0.2")
PACKAGE_DATA = []
PROJECT = 'httphq'
for folder in ['static', 'templates']:
for root, dirs, files in os.walk(os.path.join(PROJECT, folder)):
for filename in files:
PACKAGE_DATA.append("%s/%s" % (root[len(PROJECT) + 1:], filename))
setup(
name="httphq",
version=VERSION,
description="HTTP Request & Response service",
long_description=readme_content,
author="Alex Lispython",
author_email="alex@obout.ru",
maintainer="Alexandr Lispython",
maintainer_email="alex@obout.ru",
url="https://github.com/Lispython/httphq",
packages=find_packages(),
package_data={'': PACKAGE_DATA},
entry_points={
'console_scripts': [
'httphq = httphq.manage:main',
]},
install_requires=install_requires,
tests_require=tests_require,
license="BSD",
platforms = ['Linux', 'Mac'],
classifiers=[
"Environment :: Web Environment",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.2",
"Programming Language :: Python :: 3.3",
"Operating System :: MacOS :: MacOS X",
"Operating System :: POSIX",
"Topic :: Internet",
"Topic :: Software Development :: Libraries",
],
test_suite = '__main__.run_tests'
)