Add a tools and setup.py files/folders
This commit is contained in:

committed by
Tim Daly, Jr

parent
396fed66c0
commit
31c102591b
34
setup.py
Executable file
34
setup.py
Executable file
@@ -0,0 +1,34 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
import setuptools
|
||||
|
||||
|
||||
def read_requires():
|
||||
requires = []
|
||||
with open('tools/pip-requires', 'r') as fh:
|
||||
contents = fh.read()
|
||||
for line in contents.splitlines():
|
||||
line = line.strip()
|
||||
if line.startswith("#") or not line:
|
||||
continue
|
||||
try:
|
||||
(line, after) = line.split("#", 1)
|
||||
except ValueError:
|
||||
pass
|
||||
if not line:
|
||||
continue
|
||||
requires.append(line)
|
||||
return requires
|
||||
|
||||
|
||||
setuptools.setup(
|
||||
name='tomograph',
|
||||
version="0.0.1",
|
||||
description='Tiny tims tracing tomograph',
|
||||
author="Y! OpenStack Team",
|
||||
author_email='timjr@yahoo-inc.com',
|
||||
license='Apache License, Version 2.0',
|
||||
packages=setuptools.find_packages(),
|
||||
long_description=open('README.md').read(),
|
||||
install_requires=read_requires(),
|
||||
)
|
2
tools/pip-requires
Normal file
2
tools/pip-requires
Normal file
@@ -0,0 +1,2 @@
|
||||
eventlet
|
||||
webob
|
Reference in New Issue
Block a user