dpl 1.7.19.travis.929.4 → 1.7.19.travis.933.4

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,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZDE5MDc1ZGNhYWYwYmQ3NmFiNGQ1MGNjOWNkOTE5MTFmYmY3NzZkMA==
4
+ NGNkZWUzNTVhNmFmZDZmZDg0YWJkYzEzOWJiYjA3ZmVhZDU1Njc4MQ==
5
5
  data.tar.gz: !binary |-
6
- YjE2YTAyNWNjMGUxZjg3ZjMzYmZhZGY2OWYyNmI0YzY0YTFmODBiNQ==
6
+ MWM1MzEzYTg2MTVmMjYyODlmMzFlYTg0NzM3NjdkMTZhM2M0YzllMA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- OTA2ZDdkMzEwYjEwOTE3MDdiNjkyMzlmNzMzZTIxZjNkMWM2OTdiMGUyZjY3
10
- MzU1Yjc2MTIxNDMzZTRiNzBlYmU2NTExMjMzYWExNjI4YjMwZGQ3OTJhOTdk
11
- ZmNhMWU0YzMyODg3N2E1MzIyYjQwMGM1Nzc4YTRhOTNkN2VhYWE=
9
+ M2M3Y2VhMjJiZWNhYjc2MzhmY2JjYWMxOGMxMzVhNjg1MTFmM2E2YTM5MGQ0
10
+ ZWQzZjI4YTY5MGJlZTk1MGFmZGE1NjlkNDkyMzUyZjE3MzM0ZWI0OGRkNWUz
11
+ Y2Y2YjMyMmE0MmEzZGMyNThjYjlmMDM4YzM3NmFhYjcwNDAzZjI=
12
12
  data.tar.gz: !binary |-
13
- NjdlM2QxNjJmMmVjMmQ5MDYzZGU0NzhjYjJhMzc2YjNhYTM0YjQ3ZTA5Y2Vh
14
- MmU3MjFlMmQ3M2QxYTAxNzQ0Yjg5NWQyZmRmODhkMzYyOGJjZmQ1YjgzN2Vh
15
- YWQ3MzU1NGM3M2Q0MzhhMzk1MzdjNjMxN2UwNDY5NTZiZjg5NGU=
13
+ OTQ2YjEyNmNjNmM0ZmU2MGIwOTgwZDkxOTA3N2VmMzE2MmNlYWI1ZDg4MzNk
14
+ ZDUyMDEzOThhMDBkZjVmN2NhNzY0MTNlOGI2MTVjNGNlZTYxMDZjOGFjZjk0
15
+ NDcxNmQ3MjAyMTc3MzM3ZWY1YzZkMDliMWMxYmFiNjhhMWIyOTY=
@@ -9,13 +9,17 @@ module DPL
9
9
  shell 'rm -f setuptools-*.zip'
10
10
  end
11
11
 
12
+ def self.install_twine
13
+ shell("pip install twine", retry: true) if `which twine`.chop.empty?
14
+ end
15
+
12
16
  def initialize(*args)
13
17
  super(*args)
14
- self.class.pip 'twine'
15
18
  self.class.pip 'wheel' if options[:distributions].to_s.include? 'bdist_wheel'
16
19
  end
17
20
 
18
21
  install_setuptools
22
+ install_twine
19
23
 
20
24
  def config
21
25
  {
@@ -15,7 +15,6 @@ describe DPL::Provider::PyPI do
15
15
 
16
16
  describe "#initialize" do
17
17
  example "with :distributions option containing 'bdist_wheel'" do
18
- expect(described_class).to receive(:pip).with("twine")
19
18
  expect(described_class).to receive(:pip).with("wheel")
20
19
  described_class.new(DummyContext.new, :user => 'foo', :password => 'bar', :distributions => 'bdist_wheel sdist')
21
20
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dpl
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.19.travis.929.4
4
+ version: 1.7.19.travis.933.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Konstantin Haase
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-13 00:00:00.000000000 Z
11
+ date: 2015-08-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec