pycall 1.2.1 → 1.4.1
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/.github/workflows/ci.yml +150 -0
- data/.github/workflows/windows.yml +127 -0
- data/.gitignore +2 -0
- data/CHANGES.md +39 -0
- data/README.md +153 -7
- data/Rakefile +81 -19
- data/ci/travis_install.sh +30 -9
- data/examples/classifier_comparison.rb +1 -1
- data/examples/hist.rb +1 -1
- data/examples/notebooks/classifier_comparison.ipynb +1 -1
- data/examples/notebooks/leaflet.ipynb +77 -0
- data/ext/pycall/gc.c +84 -5
- data/ext/pycall/libpython.c +7 -1
- data/ext/pycall/pycall.c +60 -6
- data/ext/pycall/pycall_internal.h +27 -1
- data/ext/pycall/ruby_wrapper.c +11 -2
- data/ext/pycall/thread.c +36 -0
- data/lib/pycall.rb +16 -0
- data/lib/pycall/dict.rb +2 -2
- data/lib/pycall/init.rb +3 -8
- data/lib/pycall/iterable_wrapper.rb +32 -0
- data/lib/pycall/libpython/finder.rb +131 -84
- data/lib/pycall/list.rb +2 -2
- data/lib/pycall/pyobject_wrapper.rb +1 -1
- data/lib/pycall/python/investigator.py +82 -9
- data/lib/pycall/pytypeobject_wrapper.rb +10 -0
- data/lib/pycall/version.rb +7 -1
- data/lib/pycall/wrapper_object_cache.rb +56 -25
- data/pycall.gemspec +9 -2
- metadata +24 -7
- data/.travis.yml +0 -56
- data/appveyor.yml +0 -104
data/appveyor.yml
DELETED
@@ -1,104 +0,0 @@
|
|
1
|
-
---
|
2
|
-
environment:
|
3
|
-
matrix:
|
4
|
-
# Ruby 2.4 (32bit)
|
5
|
-
- ruby_version: "24"
|
6
|
-
PYTHONDIR: "C:\\Python27"
|
7
|
-
PYTHON: "C:\\Python27\\python.exe"
|
8
|
-
|
9
|
-
- ruby_version: "24"
|
10
|
-
PYTHONDIR: "C:\\Python34"
|
11
|
-
PYTHON: "C:\\Python34\\python.exe"
|
12
|
-
|
13
|
-
- ruby_version: "24"
|
14
|
-
PYTHONDIR: "C:\\Python35"
|
15
|
-
PYTHON: "C:\\Python35\\python.exe"
|
16
|
-
|
17
|
-
- ruby_version: "24"
|
18
|
-
PYTHONDIR: "C:\\Python36"
|
19
|
-
PYTHON: "C:\\Python36\\python.exe"
|
20
|
-
|
21
|
-
# Ruby 2.4 (64bit)
|
22
|
-
- ruby_version: "24-x64"
|
23
|
-
PYTHONDIR: "C:\\Python27-x64"
|
24
|
-
PYTHON: "C:\\Python27-x64\\python.exe"
|
25
|
-
|
26
|
-
- ruby_version: "24-x64"
|
27
|
-
PYTHONDIR: "C:\\Python34-x64"
|
28
|
-
PYTHON: "C:\\Python34-x64\\python.exe"
|
29
|
-
|
30
|
-
- ruby_version: "24-x64"
|
31
|
-
PYTHONDIR: "C:\\Python35-x64"
|
32
|
-
PYTHON: "C:\\Python35-x64\\python.exe"
|
33
|
-
|
34
|
-
- ruby_version: "24-x64"
|
35
|
-
PYTHONDIR: "C:\\Python36-x64"
|
36
|
-
PYTHON: "C:\\Python36-x64\\python.exe"
|
37
|
-
|
38
|
-
# Ruby 2.3 (32bit)
|
39
|
-
- ruby_version: "23"
|
40
|
-
PYTHONDIR: "C:\\Python27"
|
41
|
-
PYTHON: "C:\\Python27\\python.exe"
|
42
|
-
|
43
|
-
- ruby_version: "23"
|
44
|
-
PYTHONDIR: "C:\\Python34"
|
45
|
-
PYTHON: "C:\\Python34\\python.exe"
|
46
|
-
|
47
|
-
- ruby_version: "23"
|
48
|
-
PYTHONDIR: "C:\\Python35"
|
49
|
-
PYTHON: "C:\\Python35\\python.exe"
|
50
|
-
|
51
|
-
- ruby_version: "23"
|
52
|
-
PYTHONDIR: "C:\\Python36"
|
53
|
-
PYTHON: "C:\\Python36\\python.exe"
|
54
|
-
|
55
|
-
# Ruby 2.3 (64bit)
|
56
|
-
- ruby_version: "23-x64"
|
57
|
-
PYTHONDIR: "C:\\Python27-x64"
|
58
|
-
PYTHON: "C:\\Python27-x64\\python.exe"
|
59
|
-
|
60
|
-
- ruby_version: "23-x64"
|
61
|
-
PYTHONDIR: "C:\\Python34-x64"
|
62
|
-
PYTHON: "C:\\Python34-x64\\python.exe"
|
63
|
-
|
64
|
-
- ruby_version: "23-x64"
|
65
|
-
PYTHONDIR: "C:\\Python35-x64"
|
66
|
-
PYTHON: "C:\\Python35-x64\\python.exe"
|
67
|
-
|
68
|
-
- ruby_version: "23-x64"
|
69
|
-
PYTHONDIR: "C:\\Python36-x64"
|
70
|
-
PYTHON: "C:\\Python36-x64\\python.exe"
|
71
|
-
|
72
|
-
branches:
|
73
|
-
only:
|
74
|
-
- master
|
75
|
-
- /release-.*/
|
76
|
-
|
77
|
-
notifications:
|
78
|
-
- provider: Email
|
79
|
-
on_build_success: false
|
80
|
-
on_build_failure: false
|
81
|
-
on_build_status_changed: false
|
82
|
-
|
83
|
-
deploy: off
|
84
|
-
build: off
|
85
|
-
|
86
|
-
install:
|
87
|
-
- "SET PATH=%PYTHONDIR%;%PYTHONDIR%\\Scripts;%PATH%"
|
88
|
-
- "SET PATH=C:\\Ruby%ruby_version%\\bin;%PATH%"
|
89
|
-
- "bundle install"
|
90
|
-
- "pip install numpy"
|
91
|
-
|
92
|
-
before_test:
|
93
|
-
- "bundle exec rake -rdevkit clobber compile"
|
94
|
-
- ECHO "=== python investigator.py ==="
|
95
|
-
- "python lib\\pycall\\python\\investigator.py"
|
96
|
-
|
97
|
-
test_script:
|
98
|
-
- "SET PYCALL_DEBUG_FIND_LIBPYTHON=1"
|
99
|
-
- rake
|
100
|
-
|
101
|
-
matrix:
|
102
|
-
allow_failures:
|
103
|
-
- PYTHONDIR: "C:\\Python27"
|
104
|
-
- PYTHONDIR: "C:\\Python27-x64"
|