-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathsetup.py
34 lines (29 loc) · 1.17 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
import os
from distutils.core import setup
def gen_data_files(*dirs):
"""This function makes it easy to copy entire directory trees, which is useful for moving static assets needed by Partify (templates, JS, CSS, etc...).
This code was graciously provided on StackOverflow by Scott Persinger at http://stackoverflow.com/questions/3596979/manifest-in-ignored-on-python-setup-py-install-no-data-files-installed ."""
results = []
for src_dir in dirs:
for root,dirs,files in os.walk(src_dir):
results.append((root, map(lambda f:root + "/" + f, files)))
return results
setup(
name='Partify',
version='0.4.1',
author='Fred Hatfull',
author_email='[email protected]',
packages=['partify', 'partify.forms'],
data_files=gen_data_files("partify/static", "partify/templates", "partify/js", "bin"),
scripts=['run_partify'],
url='http://www.partify.us',
license='LICENSE.txt',
description='Collaborative Spotify Music Streamer',
long_description=open('README.rst').read(),
install_requires=[
"Flask == 0.9",
"Flask-WTF == 0.8",
"Flask-SQLAlchemy == 0.16",
"tornado == 2.4"
],
)