From 56e07775f39439603fd4d8fd17e13e8a23652283 Mon Sep 17 00:00:00 2001 From: F-G Fernandez <26927750+frgfm@users.noreply.github.com> Date: Thu, 19 Oct 2023 16:15:51 +0200 Subject: [PATCH] ci: Fixing conda --- .conda/meta.yaml | 6 +++--- .github/workflows/builds.yml | 9 +++------ 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/.conda/meta.yaml b/.conda/meta.yaml index 6f5e932..265e1ff 100644 --- a/.conda/meta.yaml +++ b/.conda/meta.yaml @@ -6,11 +6,11 @@ # {% set urls = pyproject.get('project', {}).get('urls') %} package: name: torchcam - version: "{{ environ.get('BUILD_VERSION') }}" + version: "{{ environ.get('BUILD_VERSION', '0.4.0.dev0') }}" source: - fn: torchcam-{{ environ.get('BUILD_VERSION') }}.tar.gz - url: ../dist/torchcam-{{ environ.get('BUILD_VERSION') }}.tar.gz + fn: torchcam-{{ environ.get('BUILD_VERSION', '0.4.0.dev0') }}.tar.gz + url: ../dist/torchcam-{{ environ.get('BUILD_VERSION', '0.4.0.dev0') }}.tar.gz build: noarch: python diff --git a/.github/workflows/builds.yml b/.github/workflows/builds.yml index df0f887..dd57e3c 100644 --- a/.github/workflows/builds.yml +++ b/.github/workflows/builds.yml @@ -65,15 +65,12 @@ jobs: python-version: "3.9" - name: Install dependencies shell: bash -el {0} - run: | - conda env list - conda list -n base | grep '^python\s' - conda list -n test | grep '^python\s' - conda install -y conda-build conda-verify + run: conda install -y conda-build conda-verify - name: Build conda shell: bash -el {0} run: | python setup.py sdist mkdir conda-dist - conda-build .conda/ -c pytorch --output-folder conda-dist + conda env list + conda build .conda/ -c pytorch --output-folder conda-dist ls -l conda-dist/noarch/*tar.bz2