From 7147f991e11b045e0da2406c7e76fb056fcdc3d5 Mon Sep 17 00:00:00 2001 From: Michael Ekstrand Date: Fri, 10 Nov 2023 16:21:42 -0500 Subject: [PATCH] Create demo environment on the fly --- .github/workflows/test-suite.yml | 6 +++++- envs/lenskit-py3.10-demo-ci.yaml | 33 -------------------------------- envs/lenskit-py3.10-demo.yaml | 28 --------------------------- envs/lenskit-py3.10-sklearn.yaml | 24 ----------------------- envs/lenskit-py3.11-demo-ci.yaml | 33 -------------------------------- envs/lenskit-py3.11-demo.yaml | 28 --------------------------- envs/lenskit-py3.11-sklearn.yaml | 24 ----------------------- pyproject.toml | 5 +---- 8 files changed, 6 insertions(+), 175 deletions(-) delete mode 100644 envs/lenskit-py3.10-demo-ci.yaml delete mode 100644 envs/lenskit-py3.10-demo.yaml delete mode 100644 envs/lenskit-py3.10-sklearn.yaml delete mode 100644 envs/lenskit-py3.11-demo-ci.yaml delete mode 100644 envs/lenskit-py3.11-demo.yaml delete mode 100644 envs/lenskit-py3.11-sklearn.yaml diff --git a/.github/workflows/test-suite.yml b/.github/workflows/test-suite.yml index 7321bca2d..e73a96a91 100644 --- a/.github/workflows/test-suite.yml +++ b/.github/workflows/test-suite.yml @@ -79,11 +79,15 @@ jobs: with: fetch-depth: 0 + - name: Create Conda environment file + run: | + pipx run pyproject2conda yaml -p 3.10 -e test -e demo -o environment.yml + - name: 👢 Set up Conda environment uses: mamba-org/setup-micromamba@v1 id: setup with: - environment-file: envs/lenskit-py3.10-demo-ci.yaml + environment-file: environment.yml environment-name: lkpy cache-environment: true init-shell: bash diff --git a/envs/lenskit-py3.10-demo-ci.yaml b/envs/lenskit-py3.10-demo-ci.yaml deleted file mode 100644 index e7888ea0f..000000000 --- a/envs/lenskit-py3.10-demo-ci.yaml +++ /dev/null @@ -1,33 +0,0 @@ -# -# This file is autogenerated by pyproject2conda -# with the following command: -# -# $ pyproject2conda project -# -# You should not manually edit this file. -# Instead edit the corresponding pyproject.toml file. -# -channels: - - conda-forge -dependencies: - - python=3.10 - - binpickle >= 0.3.2 - - cffi >= 1.12.2 - - coverage >= 5 - - csr >= 0.4 - - hypothesis >= 6 - - ipython >= 7 - - matplotlib ~= 3.4 - - nbformat >=5.2 - - nbval >= 0.9 - - notebook >= 6 - - numba >= 0.51, < 0.59 - - numpy >= 1.19 - - pandas >=1.0, <2 - - psutil >= 5 - - pytest ==7.* - - pytest-cov >= 2.12 - - pytest-doctestplus >= 0.9 - - scipy >= 1.3.2 - - seedbank >= 0.1.0 - - tbb diff --git a/envs/lenskit-py3.10-demo.yaml b/envs/lenskit-py3.10-demo.yaml deleted file mode 100644 index 72228c176..000000000 --- a/envs/lenskit-py3.10-demo.yaml +++ /dev/null @@ -1,28 +0,0 @@ -# -# This file is autogenerated by pyproject2conda -# with the following command: -# -# $ pyproject2conda project -# -# You should not manually edit this file. -# Instead edit the corresponding pyproject.toml file. -# -channels: - - conda-forge -dependencies: - - python=3.10 - - binpickle >= 0.3.2 - - cffi >= 1.12.2 - - csr >= 0.4 - - ipython >= 7 - - matplotlib ~= 3.4 - - nbformat >=5.2 - - nbval >= 0.9 - - notebook >= 6 - - numba >= 0.51, < 0.59 - - numpy >= 1.19 - - pandas >=1.0, <2 - - psutil >= 5 - - scipy >= 1.3.2 - - seedbank >= 0.1.0 - - tbb diff --git a/envs/lenskit-py3.10-sklearn.yaml b/envs/lenskit-py3.10-sklearn.yaml deleted file mode 100644 index 807e370c6..000000000 --- a/envs/lenskit-py3.10-sklearn.yaml +++ /dev/null @@ -1,24 +0,0 @@ -# -# This file is autogenerated by pyproject2conda -# with the following command: -# -# $ pyproject2conda project -# -# You should not manually edit this file. -# Instead edit the corresponding pyproject.toml file. -# -channels: - - conda-forge -dependencies: - - python=3.10 - - binpickle >= 0.3.2 - - cffi >= 1.12.2 - - csr >= 0.4 - - numba >= 0.51, < 0.59 - - numpy >= 1.19 - - pandas >=1.0, <2 - - psutil >= 5 - - scikit-learn >= 0.22 - - scipy >= 1.3.2 - - seedbank >= 0.1.0 - - tbb diff --git a/envs/lenskit-py3.11-demo-ci.yaml b/envs/lenskit-py3.11-demo-ci.yaml deleted file mode 100644 index 64961500d..000000000 --- a/envs/lenskit-py3.11-demo-ci.yaml +++ /dev/null @@ -1,33 +0,0 @@ -# -# This file is autogenerated by pyproject2conda -# with the following command: -# -# $ pyproject2conda project -# -# You should not manually edit this file. -# Instead edit the corresponding pyproject.toml file. -# -channels: - - conda-forge -dependencies: - - python=3.11 - - binpickle >= 0.3.2 - - cffi >= 1.12.2 - - coverage >= 5 - - csr >= 0.4 - - hypothesis >= 6 - - ipython >= 7 - - matplotlib ~= 3.4 - - nbformat >=5.2 - - nbval >= 0.9 - - notebook >= 6 - - numba >= 0.51, < 0.59 - - numpy >= 1.19 - - pandas >=1.0, <2 - - psutil >= 5 - - pytest ==7.* - - pytest-cov >= 2.12 - - pytest-doctestplus >= 0.9 - - scipy >= 1.3.2 - - seedbank >= 0.1.0 - - tbb diff --git a/envs/lenskit-py3.11-demo.yaml b/envs/lenskit-py3.11-demo.yaml deleted file mode 100644 index 37e4b35b6..000000000 --- a/envs/lenskit-py3.11-demo.yaml +++ /dev/null @@ -1,28 +0,0 @@ -# -# This file is autogenerated by pyproject2conda -# with the following command: -# -# $ pyproject2conda project -# -# You should not manually edit this file. -# Instead edit the corresponding pyproject.toml file. -# -channels: - - conda-forge -dependencies: - - python=3.11 - - binpickle >= 0.3.2 - - cffi >= 1.12.2 - - csr >= 0.4 - - ipython >= 7 - - matplotlib ~= 3.4 - - nbformat >=5.2 - - nbval >= 0.9 - - notebook >= 6 - - numba >= 0.51, < 0.59 - - numpy >= 1.19 - - pandas >=1.0, <2 - - psutil >= 5 - - scipy >= 1.3.2 - - seedbank >= 0.1.0 - - tbb diff --git a/envs/lenskit-py3.11-sklearn.yaml b/envs/lenskit-py3.11-sklearn.yaml deleted file mode 100644 index a135caa41..000000000 --- a/envs/lenskit-py3.11-sklearn.yaml +++ /dev/null @@ -1,24 +0,0 @@ -# -# This file is autogenerated by pyproject2conda -# with the following command: -# -# $ pyproject2conda project -# -# You should not manually edit this file. -# Instead edit the corresponding pyproject.toml file. -# -channels: - - conda-forge -dependencies: - - python=3.11 - - binpickle >= 0.3.2 - - cffi >= 1.12.2 - - csr >= 0.4 - - numba >= 0.51, < 0.59 - - numpy >= 1.19 - - pandas >=1.0, <2 - - psutil >= 5 - - scikit-learn >= 0.22 - - scipy >= 1.3.2 - - seedbank >= 0.1.0 - - tbb diff --git a/pyproject.toml b/pyproject.toml index d9aaaf9b8..a9927b01e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -89,7 +89,7 @@ exclude = [ [tool.pyproject2conda] channels = ["conda-forge"] python = ["3.10", "3.11"] -default_envs = ["test", "sklearn", "doc", "demo"] +default_envs = ["test", "doc"] template_python = "envs/lenskit-py{py_version}-{env}" template = "envs/{env}" deps = ["tbb"] @@ -99,6 +99,3 @@ extras = ["dev", "test", "doc", "demo", "sklearn"] [tool.pyproject2conda.envs.ci] extras = ["test", "sklearn"] - -[tool.pyproject2conda.envs.demo-ci] -extras = ["test", "demo"]