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 +8 -8
- data/lib/dpl/provider/pypi.rb +5 -1
- data/spec/provider/pypi_spec.rb +0 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NGNkZWUzNTVhNmFmZDZmZDg0YWJkYzEzOWJiYjA3ZmVhZDU1Njc4MQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MWM1MzEzYTg2MTVmMjYyODlmMzFlYTg0NzM3NjdkMTZhM2M0YzllMA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
M2M3Y2VhMjJiZWNhYjc2MzhmY2JjYWMxOGMxMzVhNjg1MTFmM2E2YTM5MGQ0
|
10
|
+
ZWQzZjI4YTY5MGJlZTk1MGFmZGE1NjlkNDkyMzUyZjE3MzM0ZWI0OGRkNWUz
|
11
|
+
Y2Y2YjMyMmE0MmEzZGMyNThjYjlmMDM4YzM3NmFhYjcwNDAzZjI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
OTQ2YjEyNmNjNmM0ZmU2MGIwOTgwZDkxOTA3N2VmMzE2MmNlYWI1ZDg4MzNk
|
14
|
+
ZDUyMDEzOThhMDBkZjVmN2NhNzY0MTNlOGI2MTVjNGNlZTYxMDZjOGFjZjk0
|
15
|
+
NDcxNmQ3MjAyMTc3MzM3ZWY1YzZkMDliMWMxYmFiNjhhMWIyOTY=
|
data/lib/dpl/provider/pypi.rb
CHANGED
@@ -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
|
{
|
data/spec/provider/pypi_spec.rb
CHANGED
@@ -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.
|
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-
|
11
|
+
date: 2015-08-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|