Skip to content

Commit

Permalink
Update deploy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
gpleiss committed Aug 11, 2022
1 parent 5f85d74 commit 2c3dd59
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 1 deletion.
35 changes: 35 additions & 0 deletions .conda/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{% set data = load_setup_py_data(setup_file="../setup.py", from_recipe_dir=True) %}

package:
name: {{ data.get("name")|lower }}
version: {{ data.get("version") }}

source:
path: ../

build:
noarch: python
script: "$PYTHON ./setup.py install --single-version-externally-managed --record=record.txt"

requirements:
host:
- python>=3.8

run:
- pytorch>=1.11
- scipy

test:
imports:
- linear_operator
- linear_operator.functions
- linear_operator.operators
- linear_operator.utils

about:
home: https://gpytorch.ai
license: MIT
license_file: LICENSE
summary: A linear operator implementation, primarily designed for finite-dimensional positive definite operators (i.e. kernel matrices).
doc_url: https://linear_operator.readthedocs.io/en/stable/
dev_url: https://github.com/cornellius-gp/linear_operator
5 changes: 4 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,13 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
pip install setuptools_scm setuptools wheel twine
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python -m setuptools_scm
python setup.py sdist bdist_wheel
twine upload dist/*
Expand All @@ -44,8 +45,10 @@ jobs:
- name: Install dependencies
run: |
conda install -y anaconda-client conda-build
pip install setuptools_scm
- name: Build and publish
run: |
python -m setuptools_scm
conda config --set anaconda_upload yes
conda config --append channels pytorch
/usr/share/miniconda/bin/anaconda login --username ${{ secrets.CONDA_USERNAME }} --password ${{ secrets.CONDA_PASSWORD }}
Expand Down

0 comments on commit 2c3dd59

Please sign in to comment.