-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
41 lines (35 loc) · 1.2 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import glob
import os
import pathlib
from setuptools import setup, find_packages
setup_dir = os.path.dirname(__file__)
with open(os.path.join(setup_dir, 'almuerbot', 'VERSION'), 'r') as vf:
version = vf.read().strip()
def parse_requirements_txt(filename='requirements.txt'):
requirements = open(os.path.join(os.path.dirname(__file__),
filename)).readlines()
# remove whitespaces
requirements = [line.strip().replace(' ', '') for line in requirements]
# remove all the requirements that are comments
requirements = [line for line in requirements if not line.startswith('#')]
# remove empty lines
requirements = list(filter(None, requirements))
return requirements
setup(
name='almuerbot',
version=version,
author="Felipe Gonzalez",
author_email='[email protected]',
install_requires=parse_requirements_txt(),
include_package_data=True,
data_files=[
('', [
'README.rst', 'stardust/VERSION', 'CHANGELOG.rst',
'requirements.txt', 'requirements_dev.txt'
]),
],
packages=['almuerbot', 'almuerbot.app'],
zip_safe=False,
)