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:
4444
4545 robotlab:launch :
4646 env_spec : robotlab-dev
47- unix : python -m robotlab. launch
47+ unix : python ./robotlab/src/robotlab/ launch.py
4848
4949 robotlab:launch:win :
5050 env_spec : robotlab-dev-win
Original file line number Diff line number Diff line change 1414 jsonpath-ng
1515 flex-swagger
1616 robotframework
17+ robotframeworklexer
1718 robotframework-lint
1819 robotframework-seleniumlibrary
1920 restinstance
Original file line number Diff line number Diff line change @@ -24,8 +24,10 @@ specs:
2424 - robotframework-lint
2525 - robotframework-seleniumlibrary
2626 - robotframework-seleniumscreenshots
27+ - robotframeworklexer
2728 - robotkernel =={{ version }}
2829 - robotlab =={{ version }}
30+ {% if platform == "darwin" %}- python.app{% endif %}
2931
3032install_in_dependency_order: True
3133
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 1111from pathlib import Path
1212from tempfile import TemporaryDirectory
1313
14- from . import WIN , BIN_DIR , SCRIPT_EXT
14+ from robotlab import WIN , BIN_DIR , SCRIPT_EXT
1515
1616
1717ACTIVATE = [
18- f'''"{ BIN_DIR } \\ activate" "{ sys .prefix } " || activate "{ sys .prefix } "'''
18+ f'''call "{ BIN_DIR } \\ activate" "{ sys .prefix } " || activate "{ sys .prefix } "'''
1919] if WIN else [
2020 "#!" + "/usr/bin/env bash" ,
2121 f'''. "{ BIN_DIR } /activate" "{ sys .prefix } " || . activate "{ sys .prefix } "'''
2222]
2323
24+ CMD = [
25+ "call python -m robotlab.labapp"
26+ ] if WIN else [
27+ "pyton -m robotlab.labapp"
28+ ]
29+
2430
2531def launch_robotlab ():
2632 with TemporaryDirectory () as td :
2733 tdp = Path (td )
2834 script = tdp / f"launch_robotlab.{ SCRIPT_EXT } "
29- lines = ACTIVATE + [ "python -m robotlab.labapp" ]
35+ lines = ACTIVATE + CMD
3036 script .write_text (os .linesep .join (lines ))
3137 script .chmod (0o755 )
3238 print (script .read_text (), "\n " )
3339 proc = subprocess .Popen (
3440 [str (script )],
35- cwd = os .environ ["HOME" ],
36- preexec_fn = os .setsid
41+ cwd = os .path .expanduser ("~" )
3742 )
3843 try :
3944 proc .wait ()
Original file line number Diff line number Diff line change @@ -88,6 +88,7 @@ def build_constructor():
8888 cd_version = CHROMEDRIVER_VERSION ,
8989 ipyw_version = IPYWIDGETS_VERSION ,
9090 script_ext = SCRIPT_EXT ,
91+ platform = PLATFORM ,
9192 )
9293
9394 CONSTRUCT .write_text (construct )
You can’t perform that action at this time.
0 commit comments