Permalink
Browse files

Merge pull request #305 from r4um/fix_304

Fix #304 Ignore comments in requirements.txt
  • Loading branch information...
2 parents b65d527 + fa9ef4d commit b9b917e26527e7283215bf24c82d4e6d17402732 @jordansissel committed Dec 4, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/fpm/package/python.rb
@@ -178,7 +178,7 @@ def load_package_info(setup_py)
# Best I can tell, requirements.txt are a superset of what
# is already supported as 'dependencies' in setup.py
# So we'll parse them the same way below.
- metadata["dependencies"] = File.read(requirements_txt).split("\n")
+ metadata["dependencies"] = File.read(requirements_txt).split("\n").map(&:strip).reject {|l| l =~ /^\s*#/}
end
self.dependencies += metadata["dependencies"].collect do |dep|

0 comments on commit b9b917e

Please sign in to comment.