forked from jokull/kraftwerk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
42 lines (35 loc) · 1.5 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
# -*- coding: utf-8 -*-
from __future__ import with_statement
import os, re
from os.path import join, dirname, abspath, curdir
from setuptools import setup, find_packages
from kraftwerk import __version__
from kraftwerk.compat import relpath
def find_package_data():
files = []
src_root = join(dirname(__file__), 'kraftwerk')
static_root = join(src_root, 'templates')
for dirpath, subdirs, filenames in os.walk(static_root):
for filename in filenames:
if not filename.startswith('.') or filename.startswith('_'):
abs_path = join(dirpath, filename)
files.append(relpath(abs_path, start=src_root))
return files
with open(abspath(join(dirname(__file__), 'REQUIREMENTS')), 'r') as fp:
# Filter pip-y packages - libcloud has to be installed from git
requirements = [l.strip() for l in fp if re.match(r'^[\w_-]+$', l.strip())]
setup(
name = 'kraftwerk',
version = __version__,
author = "Jokull Solberg Audunsson", # Jökull Sólberg Auðunsson
author_email = "jokull@solberg.is",
description = "A WSGI deployment tool.",
license = "BSD",
url = "http://www.kraftwerk-wsgi.com/",
zip_safe = False,
packages = find_packages(),
package_data = {'kraftwerk': find_package_data()},
include_package_data = True,
entry_points = {'console_scripts': ['kraftwerk = kraftwerk.cli.main:main']},
install_requires = requirements,
)