-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
107 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,69 @@ | ||
# Contributing to JupyterLibrary | ||
## Contributing to JupyterLibrary | ||
|
||
## [Environment](#Environment) | ||
|
||
Get `$CONDA_EXE`: | ||
### Get `CONDA_EXE` | ||
|
||
- Get [miniforge](https://github.com/conda-forge/miniforge) | ||
|
||
```bash | ||
conda install -c conda-forge doit | ||
# optional meta-dependencies | ||
conda install -c conda-forge conda-lock mamba | ||
``` | ||
|
||
- optionally install | ||
- `mamba` for faster solves | ||
- `conda-lock` if changing dependencies | ||
### Get the code | ||
|
||
```bash | ||
git clone http://github.com/robots-from-jupyter/robotframework-jupyterlibrary | ||
cd robotframework-jupyterlibrary | ||
``` | ||
|
||
## Doit | ||
### Doit | ||
|
||
#### Listing all the tasks | ||
|
||
```shell | ||
doit list | ||
``` | ||
|
||
#### Just run (just about) everything | ||
|
||
```shell | ||
doit release | ||
``` | ||
|
||
#### Lock Files | ||
|
||
> After adding/changing any dependencies in `.github/env_specs`, the _lockfiles_ | ||
> need to be refreshed in `.github/locks` and committed. | ||
> | ||
> Requires `conda-lock`, and optionally `mamba` for faster solves | ||
```shell | ||
doit lock | ||
``` | ||
|
||
#### Reproducing CI failures | ||
|
||
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. | ||
|
||
For example, if `linux-64` running `python3.6` with `jupyterlab 1` failed: | ||
|
||
```bash | ||
#!/usr/bin/env bash | ||
set -eux | ||
RFJL_LOCKDIR=test/linux-64/py3.6/lab1 doit release | ||
``` | ||
|
||
Or, in a `bat` script: | ||
|
||
```bat | ||
@echo on | ||
set RFJL_LOCKDIR=test/win-64/py3.9/lab1 | ||
doit release | ||
``` | ||
|
||
This will recreate the `test` environment with the specified lockfile, and | ||
repeat all the steps. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ project_urls = | |
CI = https://github.com/robots-from-jupyter/robotframework-jupyterlibrary/actions | ||
Documentation = https://robotframework-jupyterlibrary.readthedocs.io/en/stable | ||
Releases = https://github.com/robots-from-jupyter/robotframework-jupyterlibrary/releases | ||
Source Code = https://gitlab.com/robots-from-jupyter/robotframework-jupyterlibrary | ||
Source Code = https://github.com/robots-from-jupyter/robotframework-jupyterlibrary | ||
author = Robots from Jupyter | ||
author_email = [email protected] | ||
license = BSD-3-Clause | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.3.0a0 | ||
0.3.0 |