Permalink
Browse files

Initial setup.py files, and pin django-tastypie.

As version 0.10 is 1.5+ only.
  • Loading branch information...
dracos committed Aug 7, 2013
1 parent f5f7292 commit 0c1943c899f53173051a4550e33278b71889e244
Showing with 36 additions and 2 deletions.
  1. +4 −0 MANIFEST.in
  2. +2 −2 requirements.txt
  3. +30 −0 setup.py
View
@@ -0,0 +1,4 @@
+recursive-include web *
+recursive-include speeches/static *
+recursive-include speeches/templates *
+
View
@@ -11,7 +11,7 @@ Django>=1.4,<1.5
South
django-pagination
django_select2
-django-tastypie
+django-tastypie==0.9.16
django-qmethod
django-bleach
# Only for debugging, but very useful and easiest to just have it here
@@ -48,7 +48,7 @@ django-haystack
# mySociety modules
-e git+https://github.com/mysociety/popit-django#egg=popit-django
--e git+https://github.com/mysociety/django-subdomain-instances#egg=django-subdomain-instances
+django-subdomain-instances
# We use nose to run the tests, which gets around various limitations
# with the built-in test runner:
View
@@ -0,0 +1,30 @@
+from setuptools import setup, find_packages
+import os
+
+file_dir = os.path.abspath(os.path.dirname(__file__))
+
+def read_file(filename):
+ filepath = os.path.join(file_dir, filename)
+ return open(filepath).read()
+
+def install_requires():
+ reqs = read_file('requirements.txt')
+ reqs = reqs.splitlines()
+ reqs = [ x for x in reqs if x and x[0] != '#' and x[0:2] != '-e' ]
+ return reqs
+
+setup(
+ name="django-sayit",
+ version='0.1',
+ description='A data store for speeches.',
+ long_description=read_file('README.md'),
+ author='mySociety',
+ author_email='matthew@mysociety.org',
+ url='https://github.com/mysociety/sayit',
+ packages=find_packages(),
+ include_package_data=True,
+ install_requires=install_requires(),
+ classifiers=[
+ 'Framework :: Django',
+ ],
+)

0 comments on commit 0c1943c

Please sign in to comment.