Skip to content

Commit 6dad1cb

Browse files
committed
Fix conda deploy
1 parent 4a881f8 commit 6dad1cb

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

.conda/meta.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
1-
{% set data = load_setup_py_data(setup_file="../setup.py", from_recipe_dir=True) %}
1+
{% set _version_match = load_file_regex(
2+
load_file="linear_operator/version.py",
3+
regex_pattern="__version__ = version = '(.+)'"
4+
) %}
5+
{% set version = _version_match[1] %}
26

37
package:
4-
name: {{ data.get("name")|lower }}
5-
version: {{ data.get("version") }}
8+
name: linear_operator
9+
version: {{ version }}
610

711
source:
812
path: ../

.github/workflows/deploy.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,8 @@ jobs:
5454
conda config --set anaconda_upload yes
5555
conda config --append channels pytorch
5656
conda config --append channels gpytorch
57+
conda config --append channels conda-forge
5758
/usr/share/miniconda/bin/anaconda login --username ${{ secrets.CONDA_USERNAME }} --password ${{ secrets.CONDA_PASSWORD }}
5859
python -m setuptools_scm
59-
cd .conda
60-
conda build .
60+
conda build .conda
6161
/usr/share/miniconda/bin/anaconda logout
62-
cd ..

0 commit comments

Comments
 (0)