-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
44 lines (38 loc) · 1.38 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
import re
from setuptools import setup, find_packages
def requirements(filename):
with open(filename) as file:
return [req for req in map(
lambda line: line.strip(),
filter(
lambda text: not text.startswith('#'),
file.readlines()
)
)]
def get_version():
with open('wizeline/falcon/middlewares/__init__.py', 'r') as f:
version_regex = r'^__version__\s*=\s*[\'"](.+)[\'"]'
return re.search(version_regex, f.read(), re.MULTILINE).group(1)
setup(
name='wizeline',
version=get_version(),
url='https://github.com/wizeline/bots-falcon-middleware',
author='Wizeline',
author_email='[email protected]',
description='A bots platform library for the middlewares',
packages=find_packages(exclude=['tests']),
include_package_data=True,
zip_safe=False,
classifiers=[
'Development Status :: Development',
'Environment :: Other Environment',
'Intended Audience :: Developers',
'Natural Language :: English',
'Operating System :: POSIX :: Linux',
'Operating System :: MacOS :: MacOS X',
'Programming Language :: Python 3.6.2',
'Topic :: Utilities'
],
tests_require=requirements('requirements.txt') + requirements('requirements-dev.txt'),
install_requires=requirements('requirements.txt'),
)