dependabot-python 0.107.15 → 0.107.16
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: cf5ae0d63ffafdb1b009b5b0979fc06de616d6796ba3adfd250668e14ebf72dd
|
4
|
+
data.tar.gz: 76324145714e3b3357129fa9f69b3c10e22ce743101f6a2960104908a25662f0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 47c9a78408b34a690323f84832f4fd943666afc8a30b08a632df37e91a9fb1e234d4420d97ae5ce2bb24eb897c3e5aa55189f4721cee7f575733c6052c2e8dcc
|
7
|
+
data.tar.gz: 2c42a89658e0c45a7c5eabc287349b4ccfcf50fda16b13d14aca5aaf484b78dab0b503631d1675a9cf186923b89c54f7f86b01ae569d8e6d6403178f134c2d9b
|
@@ -180,9 +180,7 @@ module Dependabot
|
|
180
180
|
"#{NativeHelpers.python_requirements_path}")
|
181
181
|
end
|
182
182
|
|
183
|
-
run_poetry_command(
|
184
|
-
"pyenv exec poetry update #{dependency.name} --lock"
|
185
|
-
)
|
183
|
+
run_poetry_command(poetry_update_command)
|
186
184
|
|
187
185
|
return File.read("poetry.lock") if File.exist?("poetry.lock")
|
188
186
|
|
@@ -190,6 +188,12 @@ module Dependabot
|
|
190
188
|
end
|
191
189
|
end
|
192
190
|
|
191
|
+
# Using `--lock` avoids doing an install.
|
192
|
+
# Using `--no-interaction` avoids asking for passwords.
|
193
|
+
def poetry_update_command
|
194
|
+
"pyenv exec poetry update #{dependency.name} --lock --no-interaction"
|
195
|
+
end
|
196
|
+
|
193
197
|
def run_poetry_command(command)
|
194
198
|
start = Time.now
|
195
199
|
command = SharedHelpers.escape_command(command)
|
@@ -78,10 +78,7 @@ module Dependabot
|
|
78
78
|
end
|
79
79
|
|
80
80
|
# Shell out to Poetry, which handles everything for us.
|
81
|
-
|
82
|
-
run_poetry_command(
|
83
|
-
"pyenv exec poetry update #{dependency.name} --lock"
|
84
|
-
)
|
81
|
+
run_poetry_command(poetry_update_command)
|
85
82
|
|
86
83
|
updated_lockfile =
|
87
84
|
if File.exist?("poetry.lock") then File.read("poetry.lock")
|
@@ -134,15 +131,19 @@ module Dependabot
|
|
134
131
|
raise
|
135
132
|
end
|
136
133
|
|
134
|
+
# Using `--lock` avoids doing an install.
|
135
|
+
# Using `--no-interaction` avoids asking for passwords.
|
136
|
+
def poetry_update_command
|
137
|
+
"pyenv exec poetry update #{dependency.name} --lock --no-interaction"
|
138
|
+
end
|
139
|
+
|
137
140
|
def check_original_requirements_resolvable
|
138
141
|
return @original_reqs_resolvable if @original_reqs_resolvable
|
139
142
|
|
140
143
|
SharedHelpers.in_a_temporary_directory do
|
141
144
|
write_temporary_dependency_files(update_pyproject: false)
|
142
145
|
|
143
|
-
run_poetry_command(
|
144
|
-
"pyenv exec poetry update #{dependency.name} --lock"
|
145
|
-
)
|
146
|
+
run_poetry_command(poetry_update_command)
|
146
147
|
|
147
148
|
@original_reqs_resolvable = true
|
148
149
|
rescue SharedHelpers::HelperSubprocessFailed => e
|
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.107.
|
4
|
+
version: 0.107.16
|
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.107.
|
19
|
+
version: 0.107.16
|
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.107.
|
26
|
+
version: 0.107.16
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: byebug
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|