dpl-pypi 1.10.15.travis.5877.5 → 1.10.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dpl/provider/pypi.rb +2 -1
- data/lib/dpl/version.rb +1 -1
- data/spec/provider/pypi_spec.rb +4 -2
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e8622c400c14e87cafcc85bebba1b44d70118d23e88d387a6c1996e630f712da
|
4
|
+
data.tar.gz: 411c0022ddacfa9b4cfc2268e0da9d73435e2ef5cc9aea4b8c50ccc0ecd9bdaf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 04736d025b2239b7129e0c001101e9a9542b115097a3512cfdbc539e87d178ec914f203238081000c0ebbfabedd5c34952ea75944c174612d020b3c56f4e300a
|
7
|
+
data.tar.gz: e7c3873ba2305ce26d27ed8a032590ee594246aeeba23f4364b3f0db467fdaac7edf312e500f3ba131dd47d40232a906f83467c6ae25148aff16d5592f045c6f
|
data/lib/dpl/provider/pypi.rb
CHANGED
@@ -67,9 +67,10 @@ module DPL
|
|
67
67
|
|
68
68
|
def install_deploy_dependencies
|
69
69
|
# --user likely fails inside virtualenvs but is needed outside to avoid needing sudo.
|
70
|
+
# `--upgrade-strategy eager` prevents the old resolver from keeping an outdated dependency if it's preinstalled
|
70
71
|
unless context.shell "if [ -z ${VIRTUAL_ENV+x} ]; then export PIP_USER=yes; fi && " \
|
71
72
|
"wget -nv -O - https://bootstrap.pypa.io/get-pip.py | python - --no-setuptools --no-wheel && " \
|
72
|
-
"pip install --upgrade #{pypi_setuptools_arg} #{pypi_twine_arg} #{pypi_wheel_arg}"
|
73
|
+
"pip install --upgrade --upgrade-strategy eager #{pypi_setuptools_arg} #{pypi_twine_arg} #{pypi_wheel_arg}"
|
73
74
|
error "Couldn't install pip, setuptools, twine or wheel."
|
74
75
|
end
|
75
76
|
end
|
data/lib/dpl/version.rb
CHANGED
data/spec/provider/pypi_spec.rb
CHANGED
@@ -9,7 +9,7 @@ describe DPL::Provider::PyPI do
|
|
9
9
|
describe "#install_deploy_dependencies" do
|
10
10
|
example do
|
11
11
|
expect(provider.context).to receive(:shell).with(
|
12
|
-
"if [ -z ${VIRTUAL_ENV+x} ]; then export PIP_USER=yes; fi && wget -nv -O - https://bootstrap.pypa.io/get-pip.py | python - --no-setuptools --no-wheel && pip install --upgrade setuptools twine wheel"
|
12
|
+
"if [ -z ${VIRTUAL_ENV+x} ]; then export PIP_USER=yes; fi && wget -nv -O - https://bootstrap.pypa.io/get-pip.py | python - --no-setuptools --no-wheel && pip install --upgrade --upgrade-strategy eager setuptools twine wheel"
|
13
13
|
).and_return(true)
|
14
14
|
provider.install_deploy_dependencies
|
15
15
|
end
|
@@ -21,7 +21,7 @@ describe DPL::Provider::PyPI do
|
|
21
21
|
provider.options.update(:twine_version => '1.1.0')
|
22
22
|
provider.options.update(:wheel_version => '0.1.0')
|
23
23
|
expect(provider.context).to receive(:shell).with(
|
24
|
-
"if [ -z ${VIRTUAL_ENV+x} ]; then export PIP_USER=yes; fi && wget -nv -O - https://bootstrap.pypa.io/get-pip.py | python - --no-setuptools --no-wheel && pip install --upgrade setuptools==1.0.1 twine==1.1.0 wheel==0.1.0"
|
24
|
+
"if [ -z ${VIRTUAL_ENV+x} ]; then export PIP_USER=yes; fi && wget -nv -O - https://bootstrap.pypa.io/get-pip.py | python - --no-setuptools --no-wheel && pip install --upgrade --upgrade-strategy eager setuptools==1.0.1 twine==1.1.0 wheel==0.1.0"
|
25
25
|
).and_return(true)
|
26
26
|
provider.install_deploy_dependencies
|
27
27
|
end
|
@@ -114,6 +114,7 @@ describe DPL::Provider::PyPI do
|
|
114
114
|
expect(provider.context).to receive(:shell).with("twine upload -r pypi dist/*").and_return(true)
|
115
115
|
expect(provider.context).to receive(:shell).with("rm -rf dist/*").and_return(true)
|
116
116
|
expect(provider.context).to receive(:shell).with("python setup.py upload_docs -r false").and_return(true)
|
117
|
+
expect(provider).to receive(:log).with('Uploading documentation (skip with "skip_upload_docs: true")')
|
117
118
|
provider.push_app
|
118
119
|
end
|
119
120
|
|
@@ -123,6 +124,7 @@ describe DPL::Provider::PyPI do
|
|
123
124
|
expect(provider.context).to receive(:shell).with("twine upload -r pypi dist/*").and_return(true)
|
124
125
|
expect(provider.context).to receive(:shell).with("rm -rf dist/*").and_return(true)
|
125
126
|
expect(provider.context).to receive(:shell).with("python setup.py upload_docs --upload-dir some/dir -r false").and_return(true)
|
127
|
+
expect(provider).to receive(:log).with('Uploading documentation (skip with "skip_upload_docs: true")')
|
126
128
|
provider.push_app
|
127
129
|
end
|
128
130
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dpl-pypi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.10.
|
4
|
+
version: 1.10.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Konstantin Haase
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-11-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dpl
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.10.
|
19
|
+
version: 1.10.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: 1.10.
|
26
|
+
version: 1.10.16
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rspec
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -175,13 +175,13 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
175
175
|
version: '2.2'
|
176
176
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
177
177
|
requirements:
|
178
|
-
- - "
|
178
|
+
- - ">="
|
179
179
|
- !ruby/object:Gem::Version
|
180
|
-
version:
|
180
|
+
version: '0'
|
181
181
|
requirements: []
|
182
|
-
|
183
|
-
rubygems_version: 2.7.7
|
182
|
+
rubygems_version: 3.0.3
|
184
183
|
signing_key:
|
185
184
|
specification_version: 4
|
186
185
|
summary: deploy tool
|
187
|
-
test_files:
|
186
|
+
test_files:
|
187
|
+
- spec/provider/pypi_spec.rb
|