mumuki-python-runner 1.9.0 → 1.10.1

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
  SHA256:
3
- metadata.gz: c4d71782cc6a4bb668ebd27663806c9e71b4286064d2b4229cd1b506fc940298
4
- data.tar.gz: 65489c77da9b7792c91b03675cc64c357667fa0c2fd875e5a271d46b5be798e3
3
+ metadata.gz: 63a45a0174c4fd9ea189f010b298016661e44bac15815d8f259f970a7cb2c38a
4
+ data.tar.gz: 0fc8a881203087f2b8aa691ae0bee7ea7776b3a2ee6bd658858dedc9dd7c72f7
5
5
  SHA512:
6
- metadata.gz: 31edbca36fcfd89180a4228c3e3c5f8bf715ede959697d906b25c8391efabec4c609dd3264bf2c38213fca1e0770d187256cf527cf992b0ef586af0bba03dfbe
7
- data.tar.gz: ae718c4c3119f79d96f00480418e9d2d1eaf2ae42bc2f9083de2a602719a6c9b30a4c00da8aeaf2c600e86db3f68f7bb4db54ca74dc21aef4ae00e138e3c43ef
6
+ metadata.gz: '0049f89840b9ed8199350aa77c2a8ab9763995296568105392a062b3f61374093ec31523bb170c2c28af7a5427fdc8cc1f4cc45bf578b9ef4d6eab0a609ed9b8'
7
+ data.tar.gz: '068159a9bb301cde36b9901a52c645425787e43d3840a8cdf9b0ef971cf5dd2450172a33a3556cf2333b76ea314442aa34412f0cc86a40fb9b07df3a6ffecad2'
@@ -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,4 +1,4 @@
1
1
 
2
2
  module BasePythonVersionHook
3
- VERSION = '1.9.0'
3
+ VERSION = '1.10.1'
4
4
  end
@@ -1,9 +1,36 @@
1
1
  class Python3MetadataHook < BasePythonMetadataHook
2
+ def self.read_xce_file(path)
3
+ File.read(File.expand_path "../../../xce/#{path}", __FILE__)
4
+ end
5
+
6
+ XCE_INSTRUCTIONS = {
7
+ 'Colab': {
8
+ 'en': read_xce_file('colab/en/README.md'),
9
+ 'pt': read_xce_file('colab/pt/README.md'),
10
+ 'es': read_xce_file('colab/es-ar/README.md'),
11
+ 'es-ar': read_xce_file('colab/es-ar/README.md')
12
+ },
13
+ 'Visual Studio Code': {
14
+ 'en': read_xce_file('visual_studio/en/README.md'),
15
+ 'pt': read_xce_file('visual_studio/pt/README.md'),
16
+ 'es': read_xce_file('visual_studio/es-ar/README.md'),
17
+ 'es-ar': read_xce_file('visual_studio/es-ar/README.md')
18
+ }
19
+ }
20
+
2
21
  def version
3
22
  '3.7.3'
4
23
  end
5
24
 
6
25
  def libraries
7
- {pandas: '1.3.3'}
26
+ {
27
+ pandas: '1.3.3',
28
+ matplotlib: '3.5.3',
29
+ seaborn: '0.12.0'
30
+ }
31
+ end
32
+
33
+ def external_editor_instructions
34
+ XCE_INSTRUCTIONS
8
35
  end
9
36
  end
@@ -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.3'
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.9.0
4
+ version: 1.10.1
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-07-07 00:00:00.000000000 Z
11
+ date: 2022-09-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mumukit