diff --git a/.conda/meta.yaml b/.conda/meta.yaml index 98a3abdf..6f03c2d8 100644 --- a/.conda/meta.yaml +++ b/.conda/meta.yaml @@ -1,8 +1,12 @@ -{% set data = load_setup_py_data(setup_file="../setup.py", from_recipe_dir=True) %} +{% set _version_match = load_file_regex( + load_file="linear_operator/version.py", + regex_pattern="__version__ = version = '(.+)'" +) %} +{% set version = _version_match[1] %} package: - name: {{ data.get("name")|lower }} - version: {{ data.get("version") }} + name: linear_operator + version: {{ version }} source: path: ../ diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 17493c2f..d527fa05 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -54,9 +54,8 @@ jobs: conda config --set anaconda_upload yes conda config --append channels pytorch conda config --append channels gpytorch + conda config --append channels conda-forge /usr/share/miniconda/bin/anaconda login --username ${{ secrets.CONDA_USERNAME }} --password ${{ secrets.CONDA_PASSWORD }} python -m setuptools_scm - cd .conda - conda build . + conda build .conda /usr/share/miniconda/bin/anaconda logout - cd ..