Fix requirements management.

So many things were wrong with the last version... soo soooo many
things.
This commit is contained in:
Dave Shawley 2015-07-23 09:14:14 -04:00
parent 1e4bed1d2b
commit a58be5af37
3 changed files with 6 additions and 8 deletions

View file

@ -1,3 +1,4 @@
-rinstallation.txt
-rtesting.txt
sphinx>=1.2,<2
sphinxcontrib-httpdomain>=1.3,<2

View file

@ -1,2 +1 @@
-rinstallation.txt
nose>=1.3.1,<2

View file

@ -17,18 +17,16 @@ def read_requirements(filename):
if '#' in line:
line = line[:line.index('#')]
line = line.strip()
if line.startswith('-r'):
line = line[2:].strip()
requirements.extend(read_requirements(filename))
else:
requirements.append(line)
if line.startswith('-'):
pass
requirements.append(line)
except IOError:
pass
return requirements
requirements = read_requirements('installation')
tests_require = read_requirements('testing')
requirements = read_requirements('installation.txt')
tests_require = read_requirements('testing.txt')
setuptools.setup(
name='sprockets.http',