Skip to content

Commit a3a0128

Browse files
authored
Merge pull request #29 from robots-from-jupyter/robotkernel-1.0rc1
Prepare for release 1.0rc1
2 parents a01a948 + f923ab7 commit a3a0128

File tree

15 files changed

+46
-40
lines changed

15 files changed

+46
-40
lines changed

constructor/post_install.bat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
"%PREFIX%\Scripts\activate.bat" "%PREFIX%"
22
robotlab-shortcuts
3+
pip install robotframework-whitelibrary

recipes/robotkernel/meta.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
package:
22
name: {% set name = "robotkernel" %}{{ name }}
3-
version: {% set version = "0.10.2" %}{{ version }}
3+
version: {% set version = "1.0rc1" %}{{ version }}
44

55
source:
66
url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz
7-
sha256: 93560cb763d5efe3785e920aa59b2f2f2048ea84bda9f4a6868340143a9f4028
7+
sha256: 7914dbb25efb70b2392f6864c554b057936826f8341868d6ece88f3bc3094e27
88

99
build:
1010
number: 0

recipes/robotlab/meta.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
{% set extensions = "@jupyterlab/[email protected] @jupyter-widgets/[email protected] jupyterlab_robotmode@1.1.1" %}
1+
{% set extensions = "@jupyterlab/[email protected] @jupyter-widgets/[email protected] jupyterlab_robotmode@2.3.1" %}
22
{% set lab_min = "0.35.4" %}
33
{% set lab_max = "0.36" %}
44

55
package:
66
name: {% set name = "robotlab" %}{{ name }}
7-
version: {% set version = "0.10.2" %}{{ version }}
7+
version: {% set version = "1.0rc1" %}{{ version }}
88

99
source:
1010
- path: ../../robotlab
1111
folder: robotlab
1212
- url: https://github.com/robots-from-jupyter/robotkernel/archive/{{ version }}.tar.gz
13-
sha256: e30b75e043f8fcb8a2072d6b1a506a1de7d69f7f8136886f222ba56e618d0da0
13+
sha256: 5eed6419990ca3e1962528d0b37b9d8898020b752bd0646baea5db86f107893e
1414
folder: robotkernel
1515

1616
build:
@@ -37,7 +37,7 @@ build:
3737
- copy *.ipynb {{ PREFIX }}\var\www\robotkernel-examples # [win]
3838
- cd ..
3939
- cd docs
40-
- cd tutorial
40+
- cd notebooks
4141
- mkdir -p {{ PREFIX }}/var/www/robotkernel-tutorial # [unix]
4242
- cp *.ipynb {{ PREFIX }}/var/www/robotkernel-tutorial # [unix]
4343
- md {{ PREFIX }}\var\www\robotkernel-tutorial # [win]

robotlab/setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = robotlab
3-
version = 0.10.2
3+
version = 1.0rc1
44
description = A pre-configured JupyterLab for demonstrating robotkernel
55
long_description = file: README.md
66
url = https://github.com/robots-from-jupyter/robotlab

robotlab/src/robotlab/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# Not strictly meaningful: currently tied to robotkernel version
2-
__version__ = "0.10.2"
2+
__version__ = "1.0rc1"

robotlab/src/robotlab/launch.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,22 @@
1313

1414
from robotlab import WIN, BIN_DIR, SCRIPT_EXT
1515

16+
BAT_ACTIVATE = [
17+
f'call "{BIN_DIR}\\activate" "{sys.prefix}" || activate "{sys.prefix}"'
18+
]
1619

17-
ACTIVATE = [
18-
f'''call "{BIN_DIR}\\activate" "{sys.prefix}" || activate "{sys.prefix}"'''
19-
] if WIN else [
20+
SH_ACTIVATE = [
2021
"#!" + "/usr/bin/env bash",
21-
f'''. "{BIN_DIR}/activate" "{sys.prefix}" || . activate "{sys.prefix}"'''
22+
f'. "{BIN_DIR}/activate" "{sys.prefix}" || . activate "{sys.prefix}"',
2223
]
2324

24-
CMD = [
25-
"call python -m robotlab.labapp"
26-
] if WIN else [
27-
"python -m robotlab.labapp"
28-
]
25+
ACTIVATE = BAT_ACTIVATE if WIN else SH_ACTIVATE
26+
27+
BAT_CMD = ["call python -m robotlab.labapp"]
28+
29+
SH_CMD = ["python -m robotlab.labapp"]
30+
31+
CMD = BAT_CMD if WIN else SH_CMD
2932

3033

3134
def launch_robotlab():
@@ -36,10 +39,7 @@ def launch_robotlab():
3639
script.write_text(os.linesep.join(lines))
3740
script.chmod(0o755)
3841
print(script.read_text(), "\n")
39-
proc = subprocess.Popen(
40-
[str(script)],
41-
cwd=os.path.expanduser("~")
42-
)
42+
proc = subprocess.Popen([str(script)], cwd=os.path.expanduser("~"))
4343
try:
4444
proc.wait()
4545
except KeyboardInterrupt:

robotlab/src/robotlab/shortcuts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def make_shortcuts():
1010
name="RobotLab",
1111
terminal=True,
1212
description="Launch RobotLab in your $HOME",
13-
icon=str(HERE / "icons" / f"lab.{ICON_EXT}")
13+
icon=str(HERE / "icons" / f"lab.{ICON_EXT}"),
1414
)
1515

1616

scripts/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
NODE_MIN = os.environ.get("NODE_MIN", "8")
3838
NODE_MAX = os.environ.get("NODE_MAX", "9")
3939
RF_VERSION = os.environ.get("ROBOTFRAMEWORK_VERSION", "3.1.1")
40-
VERSION = os.environ.get("ROBOTLAB_VERSION", "0.10.2")
40+
VERSION = os.environ.get("ROBOTLAB_VERSION", "1.0rc1")
4141
CHROMEDRIVER_VERSION = os.environ.get("CHROMEDRIVER_VERSION", "2.45")
4242
IPYWIDGETS_VERSION = os.environ.get("CHROMEDRIVER_VERSION", "7.4.2")
4343

scripts/integrity.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,20 @@
33
from . import ROOT, RECIPE_DIR, ROBOTLAB_DIR, SCRIPTS_DIR, TEST_DIR
44

55

6-
META_PATTERN = r""" set version = "([\d\.]+)" """
6+
META_PATTERN = r""" set version = "([\d\.rc]+)" """
77

88
VERSIONS = {
99
RECIPE_DIR / "robotkernel" / "meta.yaml": META_PATTERN,
1010
RECIPE_DIR / "robotlab" / "meta.yaml": META_PATTERN,
11-
ROBOTLAB_DIR / "setup.cfg": r"version = ([\d\.]+)",
11+
ROBOTLAB_DIR / "setup.cfg": r"version = ([\d\.rc]+)",
1212
ROBOTLAB_DIR
1313
/ "src"
1414
/ "robotlab"
15-
/ "_version.py": r"""__version__ = "([\d\.]+)""",
16-
SCRIPTS_DIR / "__init__.py": r"""ROBOTLAB_VERSION", "([\d\.]+)""",
15+
/ "_version.py": r"""__version__ = "([\d\.rc]+)""",
16+
SCRIPTS_DIR / "__init__.py": r"""ROBOTLAB_VERSION", "([\d\.rc]+)""",
1717
TEST_DIR
1818
/ "resources"
19-
/ "Install.robot": r"\$\{INSTALLER VERSION\}\s+([\d\.]+)",
19+
/ "Install.robot": r"\$\{INSTALLER VERSION\}\s+([\d\.rc]+)",
2020
}
2121

2222

tests/acceptance/CLI/00_nbrobot.robot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ Can I get help on nbrobot?
1717
Run nbrobot
1818
[Arguments] ${args} ${log}
1919
[Documentation] Run nbrobot and write the output to a log file
20-
${proc} = Run Process ${ACTIVATE} && nbrobot ${args} shell=True stdout=${log} stderr=STDOUT
20+
${proc} = Run Process ${ACTIVATE} && nbrobot ${args} shell=True stdout=${log} stderr=STDOUT env:PS1=[:|]
2121
[Return] ${proc}

0 commit comments

Comments
 (0)