capsulecd 1.0.8 → 1.0.9
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 +4 -4
- data/lib/capsulecd/python/python_engine.rb +18 -3
- data/lib/capsulecd/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7399f828e33056792aab2d99b2b14aac325d886a
|
|
4
|
+
data.tar.gz: cb118a39a61420b4680b01a3492accab55a2c66d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
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
|
|
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
|
data/lib/capsulecd/version.rb
CHANGED
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.
|
|
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-
|
|
11
|
+
date: 2017-01-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: thor
|