red-arrow-pycall 0.0.4 → 0.0.5

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
- SHA1:
3
- metadata.gz: f44174f03927e0a2c9c00306703c6d371787c1ff
4
- data.tar.gz: 112085a608bd1fdc3ac523d73f4bb67eefae9f78
2
+ SHA256:
3
+ metadata.gz: 34641a1e7cb87f7416c3f8f0070d26a72d8f5ae1eccb5f7d0c7ea938401065ef
4
+ data.tar.gz: 9bf70cc1586c1387aa34555149c804e4fb5455b9e5e611877c2e98224e8ec415
5
5
  SHA512:
6
- metadata.gz: 535bb8bb7b4bee42750dee53e4417b74f6503bbb8f22d205f8bcb01e1c4dfb5547f5fce0d61cf08a30c2341b781eedcc68b381cbdc83ec625e28a3af9e6e4683
7
- data.tar.gz: 2ef2a6bfff37eeccdafb446eb70e666c73bb01e85a3d7ccd7bb60e36bdd23a0a86953a8df0c2c0f54c2a4b403f1cb4965bd86bb9f47062e0d740bf4d82cf27e8
6
+ metadata.gz: 1244895e78aa4754f7978db3101a64891ae581d152177dc6515681b6b60e49621bdf878a62b5b2dc153a0443af90d7ced0a2b4908d403877898a24edb1f0bbf0
7
+ data.tar.gz: 21ec7609c641a1da6e1e2484b95f5d030fb5f6edd57b6562e2a84c53ff52360d5c10f147582df6afe9330732fde01e58c3af2f080576bcbf3fb34e1c1728c9ac
@@ -1,5 +1,13 @@
1
1
  # News
2
2
 
3
+ ## 0.0.5 - 2019-03-21
4
+
5
+ ### Improvements
6
+
7
+ * Added support for auto Apache Arrow C++ Python module install.
8
+
9
+ * Added support for Apache Arrow 0.12.0 or later.
10
+
3
11
  ## 0.0.4 - 2018-03-07
4
12
 
5
13
  ### Improvements
@@ -14,6 +14,8 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
+ #include <ruby.hpp>
18
+
17
19
  #include <arrow-glib/arrow-glib.hpp>
18
20
 
19
21
  #include <rbgobject.h>
@@ -94,7 +96,7 @@ rb_pycall_arrow_field_to_ruby(VALUE self)
94
96
  GError *error = NULL;
95
97
  if (!garrow_error_check(&error, status, "[pyarrow][field][to-ruby]"))
96
98
  RG_RAISE_ERROR(error);
97
- auto garrow_field = garrow_field_new_raw(&arrow_field);
99
+ auto garrow_field = garrow_field_new_raw(&arrow_field, nullptr);
98
100
  return GOBJ2RVAL(garrow_field);
99
101
  }
100
102
 
@@ -236,74 +238,74 @@ Init_arrow_pycall(void)
236
238
  {
237
239
  arrow::py::import_pyarrow();
238
240
 
239
- auto rbArrow = rb_const_get(rb_cObject, rb_intern("Arrow"));
240
- auto rbPyArrow = rb_const_get(rb_cObject, rb_intern("PyArrow"));
241
+ auto rbArrow = rb_const_get_at(rb_cObject, rb_intern("Arrow"));
242
+ auto rbPyArrow = rb_const_get_at(rb_cObject, rb_intern("PyArrow"));
241
243
 
242
244
  {
243
- auto rbArrowBuffer = rb_const_get(rbArrow, rb_intern("Buffer"));
245
+ auto rbArrowBuffer = rb_const_get_at(rbArrow, rb_intern("Buffer"));
244
246
  rb_define_method(rbArrowBuffer,
245
247
  "to_python",
246
- (VALUE(*)(ANYARGS))rb_arrow_buffer_to_python,
248
+ reinterpret_cast<rb::RawMethod>(rb_arrow_buffer_to_python),
247
249
  0);
248
250
  }
249
251
  {
250
- auto rbPyArrowBuffer = rb_const_get(rbPyArrow, rb_intern("Buffer"));
252
+ auto rbPyArrowBuffer = rb_const_get_at(rbPyArrow, rb_intern("Buffer"));
251
253
  rb_define_method(rbPyArrowBuffer,
252
254
  "to_ruby",
253
- (VALUE(*)(ANYARGS))rb_pycall_arrow_buffer_to_ruby,
255
+ reinterpret_cast<rb::RawMethod>(rb_pycall_arrow_buffer_to_ruby),
254
256
  0);
255
257
  }
256
258
 
257
259
  {
258
- auto rbArrowDataType = rb_const_get(rbArrow, rb_intern("DataType"));
260
+ auto rbArrowDataType = rb_const_get_at(rbArrow, rb_intern("DataType"));
259
261
  rb_define_method(rbArrowDataType,
260
262
  "to_python",
261
- (VALUE(*)(ANYARGS))rb_arrow_data_type_to_python,
263
+ reinterpret_cast<rb::RawMethod>(rb_arrow_data_type_to_python),
262
264
  0);
263
265
  }
264
266
  {
265
- auto rbPyArrowDataType = rb_const_get(rbPyArrow, rb_intern("DataType"));
267
+ auto rbPyArrowDataType = rb_const_get_at(rbPyArrow, rb_intern("DataType"));
266
268
  rb_define_method(rbPyArrowDataType,
267
269
  "to_ruby",
268
- (VALUE(*)(ANYARGS))rb_pycall_arrow_data_type_to_ruby,
270
+ reinterpret_cast<rb::RawMethod>(rb_pycall_arrow_data_type_to_ruby),
269
271
  0);
270
272
  }
271
273
 
272
274
  {
273
- auto rbArrowField = rb_const_get(rbArrow, rb_intern("Field"));
275
+ auto rbArrowField = rb_const_get_at(rbArrow, rb_intern("Field"));
274
276
  rb_define_method(rbArrowField,
275
277
  "to_python",
276
- (VALUE(*)(ANYARGS))rb_arrow_field_to_python,
278
+ reinterpret_cast<rb::RawMethod>(rb_arrow_field_to_python),
277
279
  0);
278
280
  }
279
281
  {
280
- auto rbPyArrowField = rb_const_get(rbPyArrow, rb_intern("Field"));
282
+ auto rbPyArrowField = rb_const_get_at(rbPyArrow, rb_intern("Field"));
281
283
  rb_define_method(rbPyArrowField,
282
284
  "to_ruby",
283
- (VALUE(*)(ANYARGS))rb_pycall_arrow_field_to_ruby,
285
+ reinterpret_cast<rb::RawMethod>(rb_pycall_arrow_field_to_ruby),
284
286
  0);
285
287
  }
286
288
 
287
289
  {
288
- auto rbArrowSchema = rb_const_get(rbArrow, rb_intern("Schema"));
290
+ auto rbArrowSchema = rb_const_get_at(rbArrow, rb_intern("Schema"));
289
291
  rb_define_method(rbArrowSchema,
290
292
  "to_python",
291
- (VALUE(*)(ANYARGS))rb_arrow_schema_to_python,
293
+ reinterpret_cast<rb::RawMethod>(rb_arrow_schema_to_python),
292
294
  0);
293
295
  }
294
296
  {
295
- auto rbPyArrowSchema = rb_const_get(rbPyArrow, rb_intern("Schema"));
297
+ auto rbPyArrowSchema = rb_const_get_at(rbPyArrow, rb_intern("Schema"));
296
298
  rb_define_method(rbPyArrowSchema,
297
299
  "to_ruby",
298
- (VALUE(*)(ANYARGS))rb_pycall_arrow_schema_to_ruby,
300
+ reinterpret_cast<rb::RawMethod>(rb_pycall_arrow_schema_to_ruby),
299
301
  0);
300
302
  }
301
303
 
302
304
  {
303
- auto rbArrowArray = rb_const_get(rbArrow, rb_intern("Array"));
305
+ auto rbArrowArray = rb_const_get_at(rbArrow, rb_intern("Array"));
304
306
  rb_define_method(rbArrowArray,
305
307
  "to_python",
306
- (VALUE(*)(ANYARGS))rb_arrow_array_to_python,
308
+ reinterpret_cast<rb::RawMethod>(rb_arrow_array_to_python),
307
309
  0);
308
310
  }
309
311
  {
@@ -311,68 +313,68 @@ Init_arrow_pycall(void)
311
313
  rb_define_module_under(rbPyArrow, "ArrayConvertable");
312
314
  rb_define_method(rbPyArrowArrayConvertable,
313
315
  "to_ruby",
314
- (VALUE(*)(ANYARGS))rb_pycall_arrow_array_to_ruby,
316
+ reinterpret_cast<rb::RawMethod>(rb_pycall_arrow_array_to_ruby),
315
317
  0);
316
318
  }
317
319
 
318
320
  {
319
- auto rbArrowTensor = rb_const_get(rbArrow, rb_intern("Tensor"));
321
+ auto rbArrowTensor = rb_const_get_at(rbArrow, rb_intern("Tensor"));
320
322
  rb_define_method(rbArrowTensor,
321
323
  "to_python",
322
- (VALUE(*)(ANYARGS))rb_arrow_tensor_to_python,
324
+ reinterpret_cast<rb::RawMethod>(rb_arrow_tensor_to_python),
323
325
  0);
324
326
  }
325
327
  {
326
- auto rbPyArrowTensor = rb_const_get(rbPyArrow, rb_intern("Tensor"));
328
+ auto rbPyArrowTensor = rb_const_get_at(rbPyArrow, rb_intern("Tensor"));
327
329
  rb_define_method(rbPyArrowTensor,
328
330
  "to_ruby",
329
- (VALUE(*)(ANYARGS))rb_pycall_arrow_tensor_to_ruby,
331
+ reinterpret_cast<rb::RawMethod>(rb_pycall_arrow_tensor_to_ruby),
330
332
  0);
331
333
  }
332
334
 
333
335
  {
334
- auto rbArrowColumn = rb_const_get(rbArrow, rb_intern("Column"));
336
+ auto rbArrowColumn = rb_const_get_at(rbArrow, rb_intern("Column"));
335
337
  rb_define_method(rbArrowColumn,
336
338
  "to_python",
337
- (VALUE(*)(ANYARGS))rb_arrow_column_to_python,
339
+ reinterpret_cast<rb::RawMethod>(rb_arrow_column_to_python),
338
340
  0);
339
341
  }
340
342
  {
341
- auto rbPyArrowColumn = rb_const_get(rbPyArrow, rb_intern("Column"));
343
+ auto rbPyArrowColumn = rb_const_get_at(rbPyArrow, rb_intern("Column"));
342
344
  rb_define_method(rbPyArrowColumn,
343
345
  "to_ruby",
344
- (VALUE(*)(ANYARGS))rb_pycall_arrow_column_to_ruby,
346
+ reinterpret_cast<rb::RawMethod>(rb_pycall_arrow_column_to_ruby),
345
347
  0);
346
348
  }
347
349
 
348
350
  {
349
- auto rbArrowTable = rb_const_get(rbArrow, rb_intern("Table"));
351
+ auto rbArrowTable = rb_const_get_at(rbArrow, rb_intern("Table"));
350
352
  rb_define_method(rbArrowTable,
351
353
  "to_python",
352
- (VALUE(*)(ANYARGS))rb_arrow_table_to_python,
354
+ reinterpret_cast<rb::RawMethod>(rb_arrow_table_to_python),
353
355
  0);
354
356
  }
355
357
  {
356
- auto rbPyArrowTable = rb_const_get(rbPyArrow, rb_intern("Table"));
358
+ auto rbPyArrowTable = rb_const_get_at(rbPyArrow, rb_intern("Table"));
357
359
  rb_define_method(rbPyArrowTable,
358
360
  "to_ruby",
359
- (VALUE(*)(ANYARGS))rb_pycall_arrow_table_to_ruby,
361
+ reinterpret_cast<rb::RawMethod>(rb_pycall_arrow_table_to_ruby),
360
362
  0);
361
363
  }
362
364
 
363
365
  {
364
- auto rbArrowRecordBatch = rb_const_get(rbArrow, rb_intern("RecordBatch"));
366
+ auto rbArrowRecordBatch = rb_const_get_at(rbArrow, rb_intern("RecordBatch"));
365
367
  rb_define_method(rbArrowRecordBatch,
366
368
  "to_python",
367
- (VALUE(*)(ANYARGS))rb_arrow_record_batch_to_python,
369
+ reinterpret_cast<rb::RawMethod>(rb_arrow_record_batch_to_python),
368
370
  0);
369
371
  }
370
372
  {
371
373
  auto rbPyArrowRecordBatch =
372
- rb_const_get(rbPyArrow, rb_intern("RecordBatch"));
374
+ rb_const_get_at(rbPyArrow, rb_intern("RecordBatch"));
373
375
  rb_define_method(rbPyArrowRecordBatch,
374
376
  "to_ruby",
375
- (VALUE(*)(ANYARGS))rb_pycall_arrow_record_batch_to_ruby,
377
+ reinterpret_cast<rb::RawMethod>(rb_pycall_arrow_record_batch_to_ruby),
376
378
  0);
377
379
  }
378
380
  }
@@ -12,12 +12,15 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
+ require "extpp"
15
16
  require "mkmf-gnome2"
16
17
 
17
18
  unless required_pkg_config_package("arrow-glib")
18
19
  exit(false)
19
20
  end
20
- unless required_pkg_config_package("arrow-python")
21
+ unless required_pkg_config_package("arrow-python",
22
+ :debian => "libarrow-python-dev",
23
+ :redhat => "arrow-python-devel")
21
24
  exit(false)
22
25
  end
23
26
 
@@ -13,5 +13,5 @@
13
13
  # limitations under the License.
14
14
 
15
15
  module ArrowPyCall
16
- VERSION = "0.0.4"
16
+ VERSION = "0.0.5"
17
17
  end
@@ -48,7 +48,9 @@ Gem::Specification.new do |spec|
48
48
  spec.extensions = ["ext/arrow-pycall/extconf.rb"]
49
49
  spec.test_files += Dir.glob("test/**/*")
50
50
 
51
+ spec.add_runtime_dependency("extpp")
51
52
  spec.add_runtime_dependency("red-arrow")
53
+ spec.add_runtime_dependency("red-parquet")
52
54
  spec.add_runtime_dependency("pycall", pycall_version)
53
55
 
54
56
  spec.add_development_dependency("bundler")
metadata CHANGED
@@ -1,15 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: red-arrow-pycall
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kouhei Sutou
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-07 00:00:00.000000000 Z
11
+ date: 2019-03-21 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: extpp
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: red-arrow
15
29
  requirement: !ruby/object:Gem::Requirement
@@ -24,6 +38,20 @@ dependencies:
24
38
  - - ">="
25
39
  - !ruby/object:Gem::Version
26
40
  version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: red-parquet
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
27
55
  - !ruby/object:Gem::Dependency
28
56
  name: pycall
29
57
  requirement: !ruby/object:Gem::Requirement
@@ -170,7 +198,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
170
198
  version: '0'
171
199
  requirements: []
172
200
  rubyforge_project:
173
- rubygems_version: 2.5.2.2
201
+ rubygems_version: 2.7.6
174
202
  signing_key:
175
203
  specification_version: 4
176
204
  summary: Red Arrow PyCall is a library that provides converters between Ruby objects