Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix #304 Ignore comments in requirements.txt

  • Loading branch information...
commit fa9ef4dc86bea6bf8255c86f4247ada7a43508df 1 parent b65d527
@r4um r4um authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/fpm/package/python.rb
View
2  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|
Please sign in to comment.
Something went wrong with that request. Please try again.