-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
44 lines (37 loc) · 1.22 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
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from setuptools import setup, Command, find_packages
def is_requirement(line):
line = line.strip()
# Skip blank lines, comments, and editable installs
return not (
line == '' or
line.startswith('-r') or
line.startswith('#') or
line.startswith('-e') or
line.startswith('git+')
)
def get_requirements(path):
with open(path) as f:
lines = f.readlines()
return [l.strip() for l in lines if is_requirement(l)]
setup(
name="WebhookDB",
version="0.0.1",
description="Replicates Github's database via HTTP webhooks",
long_description=open('README.rst').read(),
author="David Baumgold",
author_email="david@davidbaumgold.com",
url="https://github.com/singingwolfboy/webhookdb",
packages=find_packages(),
install_requires=get_requirements("requirements.txt"),
tests_require=get_requirements("dev-requirements.txt"),
license='AGPL',
classifiers=(
'License :: OSI Approved :: GNU Affero General Public License v3',
'Framework :: Flask',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
),
zip_safe=False,
)