Merge pull request #3 from sprockets/more-packaging-woes

More packaging woes
This commit is contained in:
dave-shawley 2015-07-23 09:40:03 -04:00
commit b0712e7ef2
5 changed files with 11 additions and 9 deletions

View file

@ -3,6 +3,10 @@
Release History Release History
=============== ===============
`0.2.2`_ (23 Jul 2015)
----------------------
- Fixed requirements management... why is packaging so hard?!
`0.2.1`_ (23 Jul 2015) `0.2.1`_ (23 Jul 2015)
---------------------- ----------------------
- Corrected packaging metadata - Corrected packaging metadata

View file

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

View file

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

View file

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

View file

@ -1,7 +1,7 @@
import os import os
version_info = (0, 2, 1) version_info = (0, 2, 2)
__version__ = '.'.join(str(v) for v in version_info) __version__ = '.'.join(str(v) for v in version_info)