dpl-pypi 1.10.15 → 1.10.17.travis.6637.6

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: 8c28abb1b53b643c58bd322f7816577e7b60ae02b38e6ade82f6e796a87596e3
4
- data.tar.gz: 396c92a0bd1f6e6decc5c66745b0b8baca21b2bd106e2339782f327293ec6206
3
+ metadata.gz: 75caa0eee5ad58fada848fe6587efdbb2fbe2a55088a8e9e4b4dcc9618a706c8
4
+ data.tar.gz: bfc40c13f3f0494a0b47158395b323b685388361f058f7ba57d4e67748357958
5
5
  SHA512:
6
- metadata.gz: '082186622da243c972251730c76b0423e75afc0f86b819a1b2efc3446646adbccc69bba5d0c14b60282cc8aeea126ae8bc4ce889608ce071bdc122d8c7b16fdc'
7
- data.tar.gz: d8098e78c2528beb3419bf2e3877a13f15c07d161e03d3f7a1cdd29799f65562fdf19fd2cae45b3745032170c5fc0c54ac2fb2554344d709f08c7a88ab5dc463
6
+ metadata.gz: 4e044c130a65cc92b18a1db94d304767f663098ba97ddd3ea4da22f4096d3e22e0f2e50cf0819219952240942339bcb841d8779519f9c6ec3928f6a0ac796e42
7
+ data.tar.gz: 11b7dd91fed4475ea37ba4e1eddfb9f59d592a78c1217b01db74b977deafa344d98653c7f499dfbb084e464893b02224ee3f6235023f2d9522a00f6c1a96aa8c
@@ -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
@@ -1,3 +1,3 @@
1
1
  module DPL
2
- VERSION = '1.10.15'
2
+ VERSION = '1.10.17.travis.6637.6'
3
3
  end
@@ -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.15
4
+ version: 1.10.17.travis.6637.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-02-24 00:00:00.000000000 Z
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.15
19
+ version: 1.10.17.travis.6637.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.15
26
+ version: 1.10.17.travis.6637.6
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rspec
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -175,13 +175,12 @@ 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: '0'
180
+ version: 1.3.1
181
181
  requirements: []
182
- rubygems_version: 3.0.3
182
+ rubygems_version: 3.0.8
183
183
  signing_key:
184
184
  specification_version: 4
185
185
  summary: deploy tool
186
- test_files:
187
- - spec/provider/pypi_spec.rb
186
+ test_files: []