-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.py
102 lines (85 loc) · 2.93 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
101
102
#! /usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
import sys
import platform
from imp import load_source
# Required test dependencies.
test_dependencies = [
# Test runner.
'pytest',
# Ensure PEP8 conformance.
'pytest-pep8',
# Ensure test coverage.
'pytest-cov',
# Benchmarking.
'pytest-bench',
# Installs a WSGI application that intercepts requests made to a hostname
# and port combination for testing.
'wsgi_intercept >= 0.6.0',
# HTTP request abstraction layer over httplib.
'httplib2',
# The Web framework for perfectionists with deadlines.
'django',
# A microframework based on Werkzeug, Jinja2 and good intentions.
'flask',
# Bottle is a fast and simple micro-framework for small web applications.
'bottle',
# SQLAlchemy is the Python SQL toolkit and Object Relational Mapper
# that gives application developers the full power and flexibility of SQL.
'sqlalchemy',
]
if sys.version_info[0] == 2:
if platform.python_implementation() != 'PyPy':
# Test dependencies that don't work in PyPy.
test_dependencies += [
# gevent is a coroutine-based Python networking library that uses
# greenlet to provide a high-level synchronous API on top of the
# libevent event loop.
'gevent',
]
setup(
name='armet',
version=load_source('', 'armet/_version.py').__version__,
description='Clean and modern framework for creating RESTful APIs.',
license='MIT',
author='Concordus Applications',
author_email='[email protected]',
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Framework :: Bottle',
'Framework :: Flask',
'Framework :: Django',
# 'Framework :: CherryPy',
# 'Framework :: Twisted',
# 'Framework :: Pylons',
# 'Framework :: Pyramid',
# 'Framework :: SQLAlchemy',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: Database',
'Topic :: Internet',
'Topic :: Software Development',
'Topic :: Software Development :: Libraries',
'Topic :: Software Development :: Libraries :: Python Modules',
],
url='http://github.com/armet/python-armet',
packages=find_packages('.'),
install_requires=[
# Python 2 and 3 normalization layer
'six',
# For parsing accept and content-type headers
'python-mimeparse',
# Ultra fast JSON encoder and decoder for Python.
'ujson'
],
extras_require={
'test': test_dependencies
}
)