dpl-pypi 1.10.15.travis.5877.5 → 1.10.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 40753e742e6fc6803dd05086caac00366564259f3231de7c05d3edc2799e6650
4
- data.tar.gz: 6ca3179b3459ba0ef9d8c7ca9c26544c58541059db57bf521a02b1a6bf766c04
3
+ metadata.gz: e8622c400c14e87cafcc85bebba1b44d70118d23e88d387a6c1996e630f712da
4
+ data.tar.gz: 411c0022ddacfa9b4cfc2268e0da9d73435e2ef5cc9aea4b8c50ccc0ecd9bdaf
5
5
  SHA512:
6
- metadata.gz: d68ba8e0a58740f0298163d69e9143351cc07352dfd4814db73fc93a85c061298c505388d51f7c1741620d6b53698cec5055bceaac83e9cebd4c01b39c8d8501
7
- data.tar.gz: 14c877b5fca93fc53c4feadc216ba2e42b29a5a236200bbbc445630dbf9dd704182d416b67aa26c23ee5b3c7ec10625c8de458a8ee8991fa32341a5d024d9e3c
6
+ metadata.gz: 04736d025b2239b7129e0c001101e9a9542b115097a3512cfdbc539e87d178ec914f203238081000c0ebbfabedd5c34952ea75944c174612d020b3c56f4e300a
7
+ data.tar.gz: e7c3873ba2305ce26d27ed8a032590ee594246aeeba23f4364b3f0db467fdaac7edf312e500f3ba131dd47d40232a906f83467c6ae25148aff16d5592f045c6f
@@ -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.travis.5877.5'
2
+ VERSION = '1.10.16'
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.travis.5877.5
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-02-14 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.travis.5877.5
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.15.travis.5877.5
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: 1.3.1
180
+ version: '0'
181
181
  requirements: []
182
- rubyforge_project:
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