From e4602f209444555904a78a226041dd8cb0476b16 Mon Sep 17 00:00:00 2001 From: Mike Boyle Date: Mon, 29 Jun 2020 15:46:05 -0400 Subject: [PATCH 1/2] Update README.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Two small — though important — changes 1. Since [the release of conda 4.6](https://www.anaconda.com/blog/conda-4-6-release), the [recommended way to activate a conda env](https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html#activating-an-environment) is to use `conda activate `. 2. The [conda docs say](https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html#exporting-an-environment-file-across-platforms) that the correct way to export an env is to use the `--from-history` flag. This only includes packages that you’ve explicitly asked for, and only "pins" versions when you asked to do so. If you use this flag, the "macOS-specific" packages probably won't appear. --- README.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 2119c96..7a02c33 100644 --- a/README.md +++ b/README.md @@ -13,16 +13,17 @@ The `environment.yml` file should list all Python libraries on which your notebo depend, specified as though they were created using the following `conda` commands: ``` -source activate example-environment -conda env export --no-builds -f environment.yml +conda activate example-environment +conda env export --from-history -f environment.yml ``` Note that the only libraries available to you will be the ones specified in the `environment.yml`, so be sure to include everything that you need! -Also note that conda will possibly try to include OS-specific packages in `environment.yml`, so you -may have to manually prune `environment.yml` to get rid of these packages. Confirmed Mac-OSX-specific -packages that should be removed are: +Also note that if you skip the `--from-history`, conda may include OS-specific +packages in `environment.yml`, which you would have to manually prune from +`environment.yml`. For example, confirmed macOS-specific packages that should +be removed are: * libcxxabi=4.0.1 * appnope=0.1.0 From 42d11f6d5f54e2b9c8d81befa6e5a2fa52f5389b Mon Sep 17 00:00:00 2001 From: Simon Li Date: Mon, 7 Sep 2020 20:04:09 +0100 Subject: [PATCH 2/2] Add workflow to create a binder badge comment on PRs See https://github.com/jupyterhub/binder/issues/212#issuecomment-687706341 --- .github/workflows/binder-badge.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .github/workflows/binder-badge.yml diff --git a/.github/workflows/binder-badge.yml b/.github/workflows/binder-badge.yml new file mode 100644 index 0000000..0a0b9a7 --- /dev/null +++ b/.github/workflows/binder-badge.yml @@ -0,0 +1,11 @@ +name: binder-badge +on: + pull_request_target: + +jobs: + badge: + runs-on: ubuntu-latest + steps: + - uses: manics/action-binderbadge@main + with: + githubToken: ${{ secrets.GITHUB_TOKEN }}