-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
42 lines (35 loc) · 1.31 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
import os
from setuptools import setup, find_packages
from contexture import __version__
# def find_package_data(package, files=()):
# package_data = {}
# for dirpath, _, filenames in os.walk(package):
# for f in files:
# if f in filenames:
# package_path = dirpath.replace('/', '.')
# package_data.setdefault(package_path, []).append(f)
# return package_data
def local_file(fn):
return open(os.path.join(os.path.dirname(__file__), fn))
with local_file('requirements.txt') as f:
requirements = map(str.strip, f)
setup(name='contexture',
description='Magic Automatic Logging Context',
# version=os.environ.get('GIT_BRANCH'),
version=__version__,
author='Alex Kouznetsov',
author_email='[email protected]',
packages=find_packages(exclude=['test']),
license='Apache 2',
url='https://github.com/unthingable/contexture',
include_package_data=True,
install_requires=requirements,
# package_data=find_package_data('contexture',
# files=('config.conf',
# 'requirements.txt')),
entry_points="""
[console_scripts]
lcmon=contexture.monitor:monitor_cmd
lcdump=contexture.utils.db:main
"""
)