|
37 | 37 | "\n",
|
38 | 38 | "Here's a complete setup:\n",
|
39 | 39 | "```shell\n",
|
40 |
| - "conda create \\\n", |
41 |
| - " -n testing-jupyter \\ # as good a name as any\n", |
42 |
| - " python=3 # 2020 is right around the corner\n", |
| 40 | + "conda create --name testing-jupyter --channel conda-forge \n", |
| 41 | + " python=3 \\ # 3.6 required, not tested with pypy \n", |
| 42 | + " jupyterlab \\\n", |
| 43 | + " robotframework-seleniumlibrary \\\n", |
| 44 | + " geckodriver\n", |
43 | 45 | "\n",
|
44 |
| - "conda activate testing-jupyter # get on the right PATH\n", |
45 |
| - "\n", |
46 |
| - "conda install \\\n", |
47 |
| - " -c conda-forge \\ # can't get all these from Austin\n", |
48 |
| - " jupyterlab \\ # mostly this\n", |
49 |
| - " robotframework-seleniumlibrary \\ # includes robotframework... and selenium\n", |
50 |
| - " geckodriver \\ # moz:\\\\a FTW\n", |
51 |
| - " python-chromedriver-binary # for the rest of the marketshare\n", |
| 46 | + "conda activate testing-jupyter\n", |
52 | 47 | "\n",
|
53 | 48 | "pip install --no-deps \\ # don't want any surprises\n",
|
54 |
| - " git+http://github.com/robots-from-jupyter/robotframework-jupyterlibrary#egg=JupyterLibrary\n", |
| 49 | + " git+http://github.com/robots-from-jupyter/robotframework-jupyterlibrary\n", |
55 | 50 | "```"
|
56 | 51 | ]
|
57 | 52 | },
|
| 53 | + { |
| 54 | + "cell_type": "code", |
| 55 | + "execution_count": null, |
| 56 | + "metadata": { |
| 57 | + "jupyter": { |
| 58 | + "source_hidden": true |
| 59 | + } |
| 60 | + }, |
| 61 | + "outputs": [], |
| 62 | + "source": [ |
| 63 | + "__import__(\"IPython\").display.Markdown(\"../CONTRIBUTING.md\")" |
| 64 | + ] |
| 65 | + }, |
58 | 66 | {
|
59 | 67 | "cell_type": "markdown",
|
60 | 68 | "metadata": {},
|
61 | 69 | "source": [
|
62 |
| - "## DEV\n", |
63 |
| - "- clone\n", |
64 |
| - " \n", |
65 |
| - "```bash\n", |
66 |
| - "git clone http://github.com/robots-from-jupyter/robotframework-jupyterlibrary\n", |
67 |
| - "cd robotframework-jupyterlibrary\n", |
68 |
| - "```\n", |
69 |
| - "\n", |
70 |
| - "- update and activate\n", |
71 |
| - "\n", |
72 |
| - "```bash\n", |
73 |
| - "conda install -c conda-forge doit\n", |
74 |
| - "```\n", |
75 |
| - "\n", |
76 |
| - "- then\n", |
77 |
| - "\n", |
78 |
| - "```bash\n", |
79 |
| - "doit list\n", |
80 |
| - "```\n", |
81 |
| - "\n", |
82 |
| - "- a good starting point is everything needed to cut the next release\n", |
83 |
| - "\n", |
84 |
| - "```bash\n", |
85 |
| - "doit release\n", |
86 |
| - "```\n", |
87 |
| - "\n", |
88 |
| - "- a special case: if you want to update package versions, add new CI excursions, get `conda-lock` with `pip`, `conda` or `mamba`, then:\n", |
89 |
| - "\n", |
90 |
| - "```bash\n", |
91 |
| - "doit lock\n", |
92 |
| - "```" |
| 70 | + "### Appendix: Current tasks" |
93 | 71 | ]
|
94 | 72 | },
|
95 | 73 | {
|
96 |
| - "cell_type": "markdown", |
| 74 | + "cell_type": "code", |
| 75 | + "execution_count": null, |
97 | 76 | "metadata": {},
|
| 77 | + "outputs": [], |
98 | 78 | "source": [
|
99 |
| - "### Reproducing CI failures\n", |
100 |
| - "\n", |
101 |
| - "By default, the `doit` scripts use the lockfile most like where you are developing, hoping for a better cache hit rate. On the same _operating system_, however, any of the pre-solved lockfiles can be used, by specifying the `RJFL_LOCKFILE` environment variable.\n", |
102 |
| - "\n", |
103 |
| - "For example, if `linux-64` running `python3.6` with `jupyterlab 1` failed:\n", |
104 |
| - "```bash\n", |
105 |
| - "#!/usr/bin/env bash\n", |
106 |
| - "set -eux\n", |
107 |
| - "RFJL_LOCKDIR=test/linux-64/py3.6/lab1 doit release\n", |
108 |
| - "```\n", |
109 |
| - "\n", |
110 |
| - "Or, in a `bat` script:\n", |
111 |
| - "```bat\n", |
112 |
| - "@echo on\n", |
113 |
| - "set RFJL_LOCKFILE=test/win-64/py3.9/lab1 \n", |
114 |
| - "doit release\n", |
115 |
| - "```\n", |
116 |
| - "\n", |
117 |
| - "This will recreate the `test` environment with the specified lockfile, and repeat all the steps." |
| 79 | + "!python ../dodo.py list --all --status" |
118 | 80 | ]
|
119 | 81 | }
|
120 | 82 | ],
|
|
0 commit comments