dpl-pypi 1.10.16.travis.6619.6 → 1.10.16.travis.6625.6
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 +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6ca33bfd0b0f34c5291526b16ee4cf492fb412156140401328ce12a068fce04c
|
4
|
+
data.tar.gz: c8757d8835ef10f4dca94e012c2c29acb702a789354aede620d10d0528361e32
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c6fa0198e29884c8fd05751f8df4bdc17413ae601e79046a5673f4fb83ee20623763551abb6ba0460c611e9751f8d2d3681fac53983f4dc4a5d50fde972cc69
|
7
|
+
data.tar.gz: 8fedba7603009ca98f1a328fed2b494c863964d99ea84a0c1d6780dddd0b7c862a1d9dbbd2f583e59e1d060f390b6b78abd290a83b621bdcc0fd1b4520448c0c
|
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.16.travis.
|
4
|
+
version: 1.10.16.travis.6625.6
|
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-
|
11
|
+
date: 2020-11-13 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.16.travis.
|
19
|
+
version: 1.10.16.travis.6625.6
|
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.16.travis.
|
26
|
+
version: 1.10.16.travis.6625.6
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rspec
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|