dependabot-python 0.93.8 → 0.93.9
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: adb00f04d1ed7aaec2aaa7505ee0949e1dc119a654b96bbff8e37b6861c8eef6
|
4
|
+
data.tar.gz: 00fed3b8db871b77f43cdc4916189a1c1b3214904fe81597e333513ed9d6f8f2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3af9881b481486ed66cd2cb09bcf9a8b45d1cb14b16cbff0f1949db62e4727e6e19870b457fb761cadbbfa167ed72a02837628ee0d00e3935bfa6fdd64c6a0de
|
7
|
+
data.tar.gz: c962d983d81d365404825a6016b654c6f335b4ea1e634712d8a513f719121593bce658bf7fba4a155f4bd6981e29d9275a7d4a79db4393bf675f42dbe18fc30b
|
@@ -127,8 +127,9 @@ module Dependabot
|
|
127
127
|
# rubocop:disable Metrics/MethodLength
|
128
128
|
def run_command(command)
|
129
129
|
command = command.dup
|
130
|
+
env_cmd = [python_env, command].compact
|
130
131
|
start = Time.now
|
131
|
-
stdout, process = Open3.capture2e(
|
132
|
+
stdout, process = Open3.capture2e(*env_cmd)
|
132
133
|
time_taken = start - Time.now
|
133
134
|
|
134
135
|
# Raise an error with the output from the shell session if
|
@@ -162,6 +163,21 @@ module Dependabot
|
|
162
163
|
end
|
163
164
|
# rubocop:enable Metrics/MethodLength
|
164
165
|
|
166
|
+
def python_env
|
167
|
+
env = {}
|
168
|
+
|
169
|
+
# Handle Apache Airflow 1.10.x installs
|
170
|
+
if dependency_files.any? { |f| f.content.include?("apache-airflow") }
|
171
|
+
if dependency_files.any? { |f| f.content.include?("unidecode") }
|
172
|
+
env["AIRFLOW_GPL_UNIDECODE"] = "yes"
|
173
|
+
else
|
174
|
+
env["SLUGIFY_USES_TEXT_UNIDECODE"] = "yes"
|
175
|
+
end
|
176
|
+
end
|
177
|
+
|
178
|
+
env
|
179
|
+
end
|
180
|
+
|
165
181
|
def error_suggests_bad_python_version?(message)
|
166
182
|
return true if message.include?("not find a version that satisfies")
|
167
183
|
|
@@ -142,8 +142,9 @@ module Dependabot
|
|
142
142
|
# rubocop:disable Metrics/MethodLength
|
143
143
|
def run_command(command)
|
144
144
|
command = command.dup
|
145
|
+
env_cmd = [python_env, command].compact
|
145
146
|
start = Time.now
|
146
|
-
stdout, process = Open3.capture2e(
|
147
|
+
stdout, process = Open3.capture2e(*env_cmd)
|
147
148
|
time_taken = start - Time.now
|
148
149
|
|
149
150
|
# Raise an error with the output from the shell session if
|
@@ -177,6 +178,21 @@ module Dependabot
|
|
177
178
|
end
|
178
179
|
# rubocop:enable Metrics/MethodLength
|
179
180
|
|
181
|
+
def python_env
|
182
|
+
env = {}
|
183
|
+
|
184
|
+
# Handle Apache Airflow 1.10.x installs
|
185
|
+
if dependency_files.any? { |f| f.content.include?("apache-airflow") }
|
186
|
+
if dependency_files.any? { |f| f.content.include?("unidecode") }
|
187
|
+
env["AIRFLOW_GPL_UNIDECODE"] = "yes"
|
188
|
+
else
|
189
|
+
env["SLUGIFY_USES_TEXT_UNIDECODE"] = "yes"
|
190
|
+
end
|
191
|
+
end
|
192
|
+
|
193
|
+
env
|
194
|
+
end
|
195
|
+
|
180
196
|
def error_suggests_bad_python_version?(message)
|
181
197
|
return true if message.include?("not find a version that satisfies")
|
182
198
|
return true if message.include?("No matching distribution found")
|
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.93.
|
4
|
+
version: 0.93.9
|
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.93.
|
19
|
+
version: 0.93.9
|
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.93.
|
26
|
+
version: 0.93.9
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: byebug
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|