PageRenderTime 44ms CodeModel.GetById 17ms RepoModel.GetById 1ms app.codeStats 0ms

/setup.py

https://github.com/fhats/partify
Python | 34 lines | 27 code | 4 blank | 3 comment | 2 complexity | b90b005989d78f3ed8c83d513ba53c1b MD5 | raw file
  1. import os
  2. from distutils.core import setup
  3. def gen_data_files(*dirs):
  4. """This function makes it easy to copy entire directory trees, which is useful for moving static assets needed by Partify (templates, JS, CSS, etc...).
  5. 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 ."""
  6. results = []
  7. for src_dir in dirs:
  8. for root,dirs,files in os.walk(src_dir):
  9. results.append((root, map(lambda f:root + "/" + f, files)))
  10. return results
  11. setup(
  12. name='Partify',
  13. version='0.4.1',
  14. author='Fred Hatfull',
  15. author_email='fred.hatfull@gmail.com',
  16. packages=['partify', 'partify.forms'],
  17. data_files=gen_data_files("partify/static", "partify/templates", "partify/js", "bin"),
  18. scripts=['run_partify'],
  19. url='http://www.partify.us',
  20. license='LICENSE.txt',
  21. description='Collaborative Spotify Music Streamer',
  22. long_description=open('README.rst').read(),
  23. install_requires=[
  24. "Flask == 0.9",
  25. "Flask-WTF == 0.8",
  26. "Flask-SQLAlchemy == 0.16",
  27. "tornado == 2.4"
  28. ],
  29. )