mumuki-python-runner 1.9.0 → 1.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/base/metadata_hook.rb +6 -2
- data/lib/base/version.rb +1 -1
- data/lib/python3/metadata_hook.rb +24 -1
- data/lib/python3_runner.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dbc061e567fe9908248e887785edd1eff8e58b4476d100f8038a92b8c8c5a67f
|
4
|
+
data.tar.gz: 6e9cbf4ee3c0f325c3c069449749b22179f17186f66e2fee905db0cf2ce412e7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3fb0ca410a3646ac41ceab49250378b89b705879102f26f02537e71b2c94d6cac2798cbf5d4ecec0a015f383ae30a916abfb48f12cb01430ba9b2b96b4a1f976
|
7
|
+
data.tar.gz: 942566870256f6f55aeb68e74f135118a0be9de3b6adc39f088f60a6117a00e9cd8150ee514311b9b09d421a2d160934694f94fb6de02bb0daa87b17584a65f4
|
data/lib/base/metadata_hook.rb
CHANGED
@@ -5,8 +5,8 @@ class BasePythonMetadataHook < Mumukit::Hook
|
|
5
5
|
icon: {type: 'devicon', name: 'python'},
|
6
6
|
version: version,
|
7
7
|
extension: 'py',
|
8
|
-
ace_mode: 'python'
|
9
|
-
|
8
|
+
ace_mode: 'python',
|
9
|
+
},
|
10
10
|
test_framework: {
|
11
11
|
name: 'unittest',
|
12
12
|
test_extension: 'py',
|
@@ -18,11 +18,15 @@ class Test(unittest.TestCase):
|
|
18
18
|
python
|
19
19
|
},
|
20
20
|
libraries: libraries,
|
21
|
+
external_editor_instructions: external_editor_instructions
|
21
22
|
}.compact
|
22
23
|
end
|
23
24
|
|
24
25
|
required :version
|
25
26
|
|
27
|
+
def external_editor_instructions
|
28
|
+
end
|
29
|
+
|
26
30
|
def libraries
|
27
31
|
end
|
28
32
|
end
|
data/lib/base/version.rb
CHANGED
@@ -1,9 +1,32 @@
|
|
1
1
|
class Python3MetadataHook < BasePythonMetadataHook
|
2
|
+
XCE_INSTRUCTIONS = {
|
3
|
+
'Colab': {
|
4
|
+
'en': File.read("xce/colab/en/README.md"),
|
5
|
+
'pt': File.read("xce/colab/pt/README.md"),
|
6
|
+
'es': File.read("xce/colab/es-ar/README.md"),
|
7
|
+
'es-ar': File.read("xce/colab/es-ar/README.md")
|
8
|
+
},
|
9
|
+
'Visual Studio Code': {
|
10
|
+
'en': File.read("xce/visual_studio/en/README.md"),
|
11
|
+
'pt': File.read("xce/visual_studio/pt/README.md"),
|
12
|
+
'es': File.read("xce/visual_studio/es-ar/README.md"),
|
13
|
+
'es-ar': File.read("xce/visual_studio/es-ar/README.md")
|
14
|
+
}
|
15
|
+
}
|
16
|
+
|
2
17
|
def version
|
3
18
|
'3.7.3'
|
4
19
|
end
|
5
20
|
|
6
21
|
def libraries
|
7
|
-
{
|
22
|
+
{
|
23
|
+
pandas: '1.3.3',
|
24
|
+
matplotlib: '3.5.3',
|
25
|
+
seaborn: '0.12.0'
|
26
|
+
}
|
27
|
+
end
|
28
|
+
|
29
|
+
def external_editor_instructions
|
30
|
+
XCE_INSTRUCTIONS
|
8
31
|
end
|
9
32
|
end
|
data/lib/python3_runner.rb
CHANGED
@@ -3,7 +3,7 @@ require_relative './base'
|
|
3
3
|
def reload_python3_runner!
|
4
4
|
Mumukit.runner_name = 'python3'
|
5
5
|
Mumukit.configure do |config|
|
6
|
-
config.docker_image = 'mumuki/mumuki-python3-worker:0
|
6
|
+
config.docker_image = 'mumuki/mumuki-python3-worker:1.0'
|
7
7
|
config.comment_type = Mumukit::Directives::CommentType::Ruby
|
8
8
|
config.structured = true
|
9
9
|
config.stateful = true
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mumuki-python-runner
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Franco Leonardo Bulgarelli
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-09-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mumukit
|