-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
37 lines (32 loc) · 952 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
# -*- encoding: utf-8 -*-
from setuptools import setup, find_packages
from pathlib import Path
import re
# Get current version
version = '1.0.0'
version_input_path = Path('./setup/version.txt')
if version_input_path.exists():
with open(version_input_path, 'r') as f:
version_input = f.readline().rstrip()
if re.match('\\d+\\.\\d+\\.\\d+', version_input):
version = version_input
# Load doc
with open('README.md') as f:
readme = f.read()
# Dependecies
requires = [
'colorama>=0.3.8'
]
setup(
name='clinlog',
version=version,
description='Package to log styled messages on console',
long_description=readme,
long_description_content_type='text/markdown',
author='salpreh',
author_email='salva.perez46@gmail.com',
url='https://github.com/salpreh/clinlog',
install_requires=requires,
license='MIT License',
packages=find_packages(exclude=('test', 'assets', 'venv', 'doc'))
)