-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·63 lines (52 loc) · 1.71 KB
/
setup.py
File metadata and controls
executable file
·63 lines (52 loc) · 1.71 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
#! /usr/bin/env python
import os
import subprocess
import setuptools
PKG_INFO = 'PKG-INFO'
def version():
if os.path.exists(PKG_INFO):
with open(PKG_INFO) as package_info:
for key, value in (line.split(':', 1) for line in package_info):
if key.startswith('Version'):
return value.strip()
else:
return subprocess.check_output(['git', 'rev-parse', 'HEAD']).strip()
def read(fname):
path = os.path.join(os.path.dirname(__file__), fname)
return open(path).read() if os.path.exists(path) else ''
setuptools.setup(
name='hammock-rest',
version=version(),
author='Eyal Posener',
author_email='eyal@stratoscale.com',
description='A good place to REST',
license='Apache License 2.0',
keywords='REST',
url='http://github.com/stratoscale/hammock.git',
packages=setuptools.find_packages(exclude=['tests']),
long_description=read('README.md'),
include_package_data=True,
install_requires=[
'falcon==0.3.0',
'requests==2.7.0',
'ujson==1.33',
'six==1.10.0',
'munch==2.0.3',
'decorator==4.0.6',
'oslo.policy==0.11.0',
'jinja2==2.8',
# TODO: The following should be moved to extras_requires['client']
'cliff==1.15.0',
'coloredlogs==5.0',
'mock==1.3.0',
],
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Natural Language :: English',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 2.7',
'Topic :: Internet :: WWW/HTTP :: WSGI :: Middleware',
],
)