File tree Expand file tree Collapse file tree 6 files changed +50
-6
lines changed
recipes/robotframeworklexer Expand file tree Collapse file tree 6 files changed +50
-6
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ commands:
44
44
45
45
robotlab:launch :
46
46
env_spec : robotlab-dev
47
- unix : python -m robotlab. launch
47
+ unix : python ./robotlab/src/robotlab/ launch.py
48
48
49
49
robotlab:launch:win :
50
50
env_spec : robotlab-dev-win
Original file line number Diff line number Diff line change 14
14
jsonpath-ng
15
15
flex-swagger
16
16
robotframework
17
+ robotframeworklexer
17
18
robotframework-lint
18
19
robotframework-seleniumlibrary
19
20
restinstance
Original file line number Diff line number Diff line change @@ -24,8 +24,10 @@ specs:
24
24
- robotframework-lint
25
25
- robotframework-seleniumlibrary
26
26
- robotframework-seleniumscreenshots
27
+ - robotframeworklexer
27
28
- robotkernel =={{ version }}
28
29
- robotlab =={{ version }}
30
+ {% if platform == "darwin" %}- python.app{% endif %}
29
31
30
32
install_in_dependency_order: True
31
33
Original file line number Diff line number Diff line change
1
+ {% set name = "robotframeworklexer" %}
2
+ {% set version = "1.1" %}
3
+
4
+ package :
5
+ name : {{ name }}
6
+ version : {{ version }}
7
+
8
+ source :
9
+ url : https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz
10
+ sha256 : ddd3ea50b54b47aee86a83c400534a61e2588dec875a3c10f04822280e834b8f
11
+
12
+ build :
13
+ number : 0
14
+ script : {{ PYTHON }} -m pip install . --no-deps --ignore-installed -vvv
15
+
16
+ requirements :
17
+ host :
18
+ - pip
19
+ - python
20
+ run :
21
+ - python
22
+ - pygments
23
+
24
+ test :
25
+ imports :
26
+ - robotframeworklexer
27
+
28
+ about :
29
+ home : https://github.com/robotframework/pygmentslexer
30
+ license : Apache-2.0
31
+ license_family : Apache
32
+ license_file : LICENSE.txt
33
+ summary : >
34
+ This project implements a Pygments lexer for Robot Framework test data in
35
+ plain text format.
Original file line number Diff line number Diff line change 11
11
from pathlib import Path
12
12
from tempfile import TemporaryDirectory
13
13
14
- from . import WIN , BIN_DIR , SCRIPT_EXT
14
+ from robotlab import WIN , BIN_DIR , SCRIPT_EXT
15
15
16
16
17
17
ACTIVATE = [
18
- f'''"{ BIN_DIR } \\ activate" "{ sys .prefix } " || activate "{ sys .prefix } "'''
18
+ f'''call "{ BIN_DIR } \\ activate" "{ sys .prefix } " || activate "{ sys .prefix } "'''
19
19
] if WIN else [
20
20
"#!" + "/usr/bin/env bash" ,
21
21
f'''. "{ BIN_DIR } /activate" "{ sys .prefix } " || . activate "{ sys .prefix } "'''
22
22
]
23
23
24
+ CMD = [
25
+ "call python -m robotlab.labapp"
26
+ ] if WIN else [
27
+ "pyton -m robotlab.labapp"
28
+ ]
29
+
24
30
25
31
def launch_robotlab ():
26
32
with TemporaryDirectory () as td :
27
33
tdp = Path (td )
28
34
script = tdp / f"launch_robotlab.{ SCRIPT_EXT } "
29
- lines = ACTIVATE + [ "python -m robotlab.labapp" ]
35
+ lines = ACTIVATE + CMD
30
36
script .write_text (os .linesep .join (lines ))
31
37
script .chmod (0o755 )
32
38
print (script .read_text (), "\n " )
33
39
proc = subprocess .Popen (
34
40
[str (script )],
35
- cwd = os .environ ["HOME" ],
36
- preexec_fn = os .setsid
41
+ cwd = os .path .expanduser ("~" )
37
42
)
38
43
try :
39
44
proc .wait ()
Original file line number Diff line number Diff line change @@ -88,6 +88,7 @@ def build_constructor():
88
88
cd_version = CHROMEDRIVER_VERSION ,
89
89
ipyw_version = IPYWIDGETS_VERSION ,
90
90
script_ext = SCRIPT_EXT ,
91
+ platform = PLATFORM ,
91
92
)
92
93
93
94
CONSTRUCT .write_text (construct )
You can’t perform that action at this time.
0 commit comments