dependabot-python 0.98.6 → 0.98.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5021ae3ec6d59cb80ac712a45edeafff72ffa161309797bc92e44197bbeef846
4
- data.tar.gz: bd9b0f48d45b7ede30619c406852d2c8c8dc7fee6d79e0e238c5cd0f600b80be
3
+ metadata.gz: 6d309884fb08b759885ec446fcd51a1527a21cdc43a6aa1d1a647adfd67be5d4
4
+ data.tar.gz: c4a011bad8bece6a1caf78952af0c667962319056dfa8f082b3b95d5c39a6992
5
5
  SHA512:
6
- metadata.gz: 1cdc76ea46f73b5db86cbdf4fe26bc2581d5dc1aa7cd8aacb7097187035cb10439533dc754447e8eee66eb1920bc94e91448aaafe93b22152839abdb6b0ac7d3
7
- data.tar.gz: 2e3e18758e33bfadd4f9375054ddc0d6a1be9160e1131dde8edfca5e63793590cc17fc119feb590dddc2fdb2ea00b697617ebad10084207a5863550c5cc10e66
6
+ metadata.gz: 5b03d21b2f4f6f7d9b943878477a9db2c9f4ff7972e50ef599689fb04150a358320213a2ec0598ad7e1f13eafab445d512b134d09a00c7d80cdfbd35c12aa1d2
7
+ data.tar.gz: eb9ef187a794d4c437f3a970c3da0172e44e32ab438326bb3f6eed32ba8352561e21ce903d4c8ff22116989e7e552819b7c190cde3f14846aa3514b74a48deb4
@@ -304,16 +304,12 @@ module Dependabot
304
304
  def requirements_file?(file)
305
305
  return true if file.name.match?(/requirements/x)
306
306
 
307
- content = file.content.
308
- gsub(CONSTRAINT_REGEX, "").
309
- gsub(CHILD_REQUIREMENT_REGEX, "")
307
+ file.content.lines.all? do |line|
308
+ next true if line.strip.empty?
309
+ next true if line.start_with?("-r ", "-c ", "-e ")
310
310
 
311
- matches = []
312
-
313
- regex = RequirementParser::VALID_REQ_TXT_REQUIREMENT
314
- content.scan(regex) { matches << Regexp.last_match }
315
-
316
- matches.any?
311
+ line.match?(RequirementParser::VALID_REQ_TXT_REQUIREMENT)
312
+ end
317
313
  end
318
314
 
319
315
  def path_setup_file_paths
@@ -82,14 +82,6 @@ module Dependabot
82
82
  Python::Version.new(@latest_resolvable_version_string)
83
83
  end
84
84
 
85
- def parse_requirements_from_cwd_files
86
- SharedHelpers.run_helper_subprocess(
87
- command: "pyenv exec python #{NativeHelpers.python_helper_path}",
88
- function: "parse_requirements",
89
- args: [Dir.pwd]
90
- )
91
- end
92
-
93
85
  def handle_pip_compile_errors(error)
94
86
  if error.message.include?("Could not find a version")
95
87
  check_original_requirements_resolvable
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dependabot-python
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.98.6
4
+ version: 0.98.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dependabot
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.98.6
19
+ version: 0.98.7
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 0.98.6
26
+ version: 0.98.7
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: byebug
29
29
  requirement: !ruby/object:Gem::Requirement