Skip to content

Commit

Permalink
ci: Fixing conda
Browse files Browse the repository at this point in the history
  • Loading branch information
frgfm committed Oct 19, 2023
1 parent 693e1c0 commit 56e0777
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .conda/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 3 additions & 6 deletions .github/workflows/builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 56e0777

Please sign in to comment.