Skip to content

Commit 187bb84

Browse files
authored
Merge pull request #8 from bollwyvl/docs-0.1.0
update with docs stuff
2 parents 3f7bf81 + f45af65 commit 187bb84

File tree

4 files changed

+37
-46
lines changed

4 files changed

+37
-46
lines changed

README.md

Lines changed: 24 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,33 +4,38 @@
44
[Robot Framework]: http://robotframework.org
55
[Jupyter]: https://jupyter.org
66

7-
| docs | demo | pipes |
8-
|:-----------------------:|:---------------------------:|:-----------------------------:|
9-
| [![docs-badge][]][docs] | [![binder-badge][]][binder] | [![pipeline-badge]][pipeline] |
7+
| pip | conda | docs | demo | pipes |
8+
|:-----------------------:|:-----------------------:|:-----------------------:|:---------------------------:|:-----------------------------:|
9+
| [![pip-badge][]][pip] | TODO | [![docs-badge][]][docs] | [![binder-badge][]][binder] | [![pipeline-badge]][pipeline] |
1010

1111

1212
# Using
1313
Write `.robot` files that use `JupyterLibrary` keywords.
1414

15-
*** Settings ***
16-
Library JupyterLibrary
17-
Suite Setup Wait for New Jupyter Server to be Ready
18-
Test Teardown Reset JupyterLab and Close
19-
Suite Teardown Terminate All Jupyter Servers
20-
21-
*** Test Cases ***
22-
A Notebook in JupyterLab
23-
Open JupyterLab
24-
Launch a new JupyterLab Document
25-
Add and Run JupyterLab Code Cell
26-
Wait Until JupyterLab Kernel Is Idle
27-
Capture Page Screenshot
15+
```robotframework
16+
*** Settings ***
17+
Library JupyterLibrary
18+
Suite Setup Wait for New Jupyter Server to be Ready
19+
Test Teardown Reset JupyterLab and Close
20+
Suite Teardown Terminate All Jupyter Servers
21+
22+
*** Test Cases ***
23+
A Notebook in JupyterLab
24+
Open JupyterLab
25+
Launch a new JupyterLab Document
26+
Add and Run JupyterLab Code Cell
27+
Wait Until JupyterLab Kernel Is Idle
28+
Capture Page Screenshot
29+
```
2830

2931
See the [acceptance tests][] for examples.
3032

3133

3234
# Installation
33-
> _TODO: release on pypi, conda-forge_
35+
```bash
36+
pip install robotframework-jupyterlibrary
37+
```
38+
> _TODO: release on conda-forge_
3439
3540
## Development Installation
3641

@@ -71,6 +76,8 @@ from a number of other projects:
7176
[pipeline-badge]: https://dev.azure.com/nickbollweg/nickbollweg/_apis/build/status/bollwyvl.robotframework-jupyterlibrary
7277
[pipeline]: https://dev.azure.com/nickbollweg/nickbollweg/_build/latest?definitionId=2
7378
[docs-badge]: https://readthedocs.org/projects/robotframework-jupyterlibrary/badge/?version=latest
79+
[pip-badge]: https://img.shields.io/pypi/v/robotframework-jupyterlibrary.svg
80+
[pip]: https://pypi.org/project/robotframework-jupyterlibrary
7481
[docs]: https://robotframework-jupyterlibrary.readthedocs.io
7582

7683
[SeleniumLibrary]: https://github.com/robotframework/SeleniumLibrary

anaconda-project.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,10 @@ commands:
8383
unix: sphinx-build -M html docs _artifacts/docs
8484
env_spec: rfjl37
8585

86+
publish:pypi:
87+
unix: twine upload --repository-url https://upload.pypi.org/legacy/ _artifacts/{sdist,wheel}/*
88+
env_spec: rfjl37
89+
8690
env_specs:
8791
robotframework-jupyterlibrary:
8892
packages:
@@ -107,12 +111,14 @@ env_specs:
107111
channels:
108112
- conda-forge
109113
- defaults
114+
110115
rfjl37:
111116
inherit_from:
112117
- robotframework-jupyterlibrary
113118
packages:
114119
- python >=3.7,<3.8
115120
- nodejs >=8.12,<9
121+
- twine
116122

117123
win_rfjl37:
118124
inherit_from:

docs/INSTALL.ipynb

Lines changed: 6 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -5,44 +5,24 @@
55
"metadata": {},
66
"source": [
77
"# INSTALL\n",
8-
"Installing `JupyterLibrary` will bring along Robot Framework and SeleniumLibrary. Jupyter components, like `notebook`, `jupyterlab` and `nteract_on_jupyter`, and browser executors (e.g. `chromedriver`, `geckodriver`) and various utilities (e.g. `nodejs`) are up to you, depending on what you want to test. Here are some examples.\n",
9-
"\n",
10-
"> _Sorry for the mess, haven't actually shipped anything yet... but the [DEV](#DEV) install does kinda work already_"
8+
"Installing `JupyterLibrary` will bring along Robot Framework and SeleniumLibrary. Jupyter components, like `notebook`, `jupyterlab` and `nteract_on_jupyter`, and browser executors (e.g. `chromedriver`, `geckodriver`) and various utilities (e.g. `nodejs`) are up to you, depending on what you want to test. Here are some examples."
119
]
1210
},
1311
{
1412
"cell_type": "markdown",
1513
"metadata": {},
1614
"source": [
17-
"## TODO `conda`"
15+
"## `pip`\n",
16+
"```bash\n",
17+
"pip install robotframework-jupyterlibrary\n",
18+
"```"
1819
]
1920
},
2021
{
2122
"cell_type": "markdown",
2223
"metadata": {},
2324
"source": [
24-
"## TODO `pip`"
25-
]
26-
},
27-
{
28-
"cell_type": "markdown",
29-
"metadata": {},
30-
"source": [
31-
"## TODO `pipenv`"
32-
]
33-
},
34-
{
35-
"cell_type": "markdown",
36-
"metadata": {},
37-
"source": [
38-
"## TODO `poetry`"
39-
]
40-
},
41-
{
42-
"cell_type": "markdown",
43-
"metadata": {},
44-
"source": [
45-
"## TODO `anaconda-project`"
25+
"## TODO `conda`"
4626
]
4727
},
4828
{

src/JupyterLibrary/core.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,7 @@ def start_suite(self, name, attrs):
7171
resources = []
7272

7373
for common in COMMON:
74-
resources += [
75-
"JupyterLibrary/common/{}".format(basename(common))
76-
]
74+
resources += ["JupyterLibrary/common/{}".format(basename(common))]
7775

7876
for client in CLIENTS:
7977
for path in glob(join(client, "*.robot")):

0 commit comments

Comments
 (0)