Skip to content

Commit

Permalink
Added requirements.txt and updated setup.py to take advantage of it.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdutton committed Sep 13, 2011
1 parent 8745cd6 commit 3708b26
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
feedparser
django-conneg>=0.3.1
20 changes: 17 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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/ #
#################################

Expand Down Expand Up @@ -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.",
Expand All @@ -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',
Expand All @@ -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.