Skip to content

Commit

Permalink
Fix conda deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
gpleiss committed Sep 6, 2024
1 parent 4a881f8 commit 6dad1cb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
10 changes: 7 additions & 3 deletions .conda/meta.yaml
Original file line number Diff line number Diff line change
@@ -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: ../
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 ..

0 comments on commit 6dad1cb

Please sign in to comment.