Permalink
Browse files

Added requirements.txt and updated setup.py to take advantage of it.

  • Loading branch information...
1 parent 8745cd6 commit 3708b263d9716cc4f8a6d4a0ac82085d92eff1de @alexsdutton alexsdutton committed Sep 13, 2011
Showing with 19 additions and 3 deletions.
  1. +2 −0 requirements.txt
  2. +17 −3 setup.py
View
@@ -0,0 +1,2 @@
+feedparser
+django-conneg>=0.3.1
View
@@ -3,8 +3,8 @@
import os
#################################
-# BEGIN borrowed from Django #
-# licensed under the BSD #
+# BEGIN borrowed from Django #
+# licensed under the BSD #
# http://www.djangoproject.com/ #
#################################
@@ -45,9 +45,20 @@ def fullsplit(path, result=None):
data_files.append([dirpath, [os.path.join(dirpath, f) for f in filenames]])
#################################
-# END borrowed from Django #
+# END borrowed from Django #
#################################
+
+# Idea borrowed from http://cburgmer.posterous.com/pip-requirementstxt-and-setuppy
+install_requires, dependency_links = [], []
+for line in open('requirements.txt'):
+ line = line.strip()
+ if line.startswith('-e'):
+ dependency_links.append(line[2:].strip())
+ elif line:
+ install_requires.append(line)
+
+
setup(
name='claros-voyager',
description="The frontend to the CLAROS Project's data service.",
@@ -56,6 +67,7 @@ def fullsplit(path, result=None):
version='0.1',
packages=packages,
license='BSD',
+ url='http://data.clarosnet.org/',
long_description=open('README.rst').read(),
classifiers=['Development Status :: 4 - Beta',
'Framework :: Django',
@@ -66,5 +78,7 @@ def fullsplit(path, result=None):
'Topic :: Internet :: WWW/HTTP :: Dynamic Content'],
keywords=['sparql', 'linked data', 'RDF', 'REST', 'University of Oxford', 'CLAROS'],
data_files=data_files,
+ install_requires=install_requires,
+ dependency_links=dependency_links,
)

0 comments on commit 3708b26

Please sign in to comment.