-
Notifications
You must be signed in to change notification settings - Fork 21
/
setup.py
37 lines (30 loc) · 999 Bytes
/
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
import sys
from pathlib import Path
from importlib.machinery import SourceFileLoader
from setuptools import setup, find_packages
version_path = Path(__file__).parent / Path('logme/__version__.py')
version = SourceFileLoader('logme', str(version_path)).load_module().__version__
requires = [
'click',
'bnmutils',
]
# Install colorama on windows systems as an optional dependency
if sys.platform.lower().startswith('win'):
requires.append('colorama')
with open('README.rst', 'r', encoding='utf-8') as f:
readme = f.read()
setup(
name='logme',
packages=find_packages(exclude=['tests*']),
install_requires=requires,
version=version,
description='package for easy logging',
long_description=readme,
author='Luna Chen',
url='https://github.com/BNMetrics/logme',
author_email='luna@bnmetrics.com',
keywords=['logging', 'cli'],
python_requires='>=3.6',
entry_points={'console_scripts': ['logme=logme:cli']},
license='Apache 2.0',
)