forked from vmig/pylogrus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
62 lines (51 loc) · 1.94 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
import os
from setuptools import setup, find_packages
_ROOT = os.path.dirname(os.path.realpath(__file__))
def readme():
with open(os.path.join(_ROOT, 'README.rst')) as f:
return '\n' + f.read()
def find_requirements(testing=False):
filename = 'requirements_test.txt' if testing else 'requirements.txt'
requirements = []
with open(os.path.join(_ROOT, filename), 'r') as f:
for line in (l.strip() for l in f):
if not line or line[0] in ('#', '-'):
continue
requirements.append(line)
return requirements
setup(
name="pylogrus",
version="0.4.0",
description="PyLogrus is a structured logger for Python",
long_description=readme(),
author="Vitalii Myhal",
author_email="[email protected]",
url="https://github.com/vmig/pylogrus",
license="MIT License",
keywords="logger logging colorize output json extra fields",
packages=find_packages(exclude=['examples']),
include_package_data=True,
install_requires=find_requirements(),
# List additional groups of dependencies here. You can install these using the following syntax:
# $ pip install -e .[dev,test]
extras_require={
'dev': [],
'test': find_requirements(testing=True)
},
# See https://pypi.org/pypi?%3Aaction=list_classifiers
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Console',
'Intended Audience :: Customer Service',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: MIT License',
'Operating System :: POSIX :: Linux',
'Topic :: System :: Logging',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6'
]
)