capsulecd 1.0.8 → 1.0.9

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
  SHA1:
3
- metadata.gz: f8263c78dbcfd6b1c36e0c8ffc3b97a20946f739
4
- data.tar.gz: 5060d058d415001eb30e8b08e1706aaf47e9e129
3
+ metadata.gz: 7399f828e33056792aab2d99b2b14aac325d886a
4
+ data.tar.gz: cb118a39a61420b4680b01a3492accab55a2c66d
5
5
  SHA512:
6
- metadata.gz: dda101b5a6e36b7a60624131d7e710919aa944fe20c343b8c80324702fe565c66f4d3592c9d62b723c99510fc9bffee2ab9e103a4938699ef6a74b6506a66139
7
- data.tar.gz: eb75964e44786f889153cbea129deaeb4fbbbd9b62736c47007a1cb8680e234f38dafdf1c582bdeccf4e1ca77a7af10a73dc8e38b12d31538e27adb24e8ddb75
6
+ metadata.gz: a410d9dc3567919f7e3613d25ecde33bc3d3947b21389e1c90faf3b534d1161a50e4a8e5975027a25908b64cde52d421e94afc873d8fdf409634e6db71ab043c
7
+ data.tar.gz: bee1e8b0789e29839213873a56cf79dbec375be642c9ce12ceabc60ea88914964eb70e3b3165033b52bdff928aef39cafa67650fbfe349ee582f4ac7e82c5312
@@ -134,8 +134,7 @@ TOX
134
134
  )
135
135
  end
136
136
 
137
- # run python setup.py sdist upload
138
- # TODO: use twine instead (it supports HTTPS.)https://python-packaging-user-guide.readthedocs.org/en/latest/distributing/#uploading-your-project-to-pypi
137
+ # run python setup.py sdist
139
138
  Open3.popen3('python setup.py sdist upload', chdir: @source_git_local_path) do |_stdin, stdout, stderr, external|
140
139
  { stdout: stdout, stderr: stderr }. each do |name, stream_buffer|
141
140
  Thread.new do
@@ -147,7 +146,23 @@ TOX
147
146
  # wait for process
148
147
  external.join
149
148
  unless external.value.success?
150
- fail CapsuleCD::Error::ReleasePackageError, 'python setup.py upload failed. Check log for exact error'
149
+ fail CapsuleCD::Error::ReleasePackageError, 'python setup.py sdist failed'
150
+ end
151
+ end
152
+
153
+ #using twine instead (it supports HTTPS.)https://python-packaging-user-guide.readthedocs.org/en/latest/distributing/#uploading-your-project-to-pypi
154
+ Open3.popen3("twine upload --config-file #{pypirc_path} dist/*", chdir: @source_git_local_path) do |_stdin, stdout, stderr, external|
155
+ { stdout: stdout, stderr: stderr }. each do |name, stream_buffer|
156
+ Thread.new do
157
+ until (line = stream_buffer.gets).nil?
158
+ puts "#{name} -> #{line}"
159
+ end
160
+ end
161
+ end
162
+ # wait for process
163
+ external.join
164
+ unless external.value.success?
165
+ fail CapsuleCD::Error::ReleasePackageError, 'twine package upload failed. Check log for exact error'
151
166
  end
152
167
  end
153
168
  end
@@ -1,3 +1,3 @@
1
1
  module CapsuleCD
2
- VERSION = '1.0.8'
2
+ VERSION = '1.0.9'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capsulecd
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.8
4
+ version: 1.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Kulatunga (AnalogJ)
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-09 00:00:00.000000000 Z
11
+ date: 2017-01-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor