Skip to content

Commit

Permalink
add conda-pkg
Browse files Browse the repository at this point in the history
  • Loading branch information
drcandacemakedamoore committed Jun 21, 2024
1 parent 54847a7 commit 80a0a6c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 32 deletions.
33 changes: 1 addition & 32 deletions .github/workflows/on-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,38 +37,7 @@ jobs:
name: pypi-build
path: dist/*

# CondaBuild:
# runs-on: ${{ matrix.os }}
# strategy:
# fail-fast: false
# matrix:
# python-version: [3.11]
# os: [ubuntu-latest, windows-latest, macos-latest]
# steps:
# - uses: actions/checkout@v2
# with:
# submodules: recursive
# fetch-depth: 0
# - uses: s-weigand/setup-conda@v1.1.1
# with:
# conda-channels: conda-forge
# python-version: ${{ matrix.python-version }}
# - run: conda config --remove channels defaults
# - name: Generate conda meta.yaml (Python 3.11)
# run: python -u setup.py anaconda_gen_meta
# - if: ${{ matrix.os == 'macos-latest' }}
# run: python -u setup.py bdist_conda -o
# - if: ${{ matrix.os != 'macos-latest' }}
# run: python -u setup.py bdist_conda
# - name: Upload Anaconda package
# run: >-
# python setup.py anaconda_upload
# --token=${{ secrets.ANACONDA_TOKEN }}
# --package=./dist/*/*.tar.bz2
# - uses: actions/upload-artifact@v2
# with:
# name: conda-build-${{ matrix.os }}-${{ matrix.python-version }}
# path: dist/*/*.tar.bz2

CondaBuild:
runs-on: ${{ matrix.os }}
defaults:
Expand Down
2 changes: 2 additions & 0 deletions conda-pkg/bld.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
"%PYTHON%" setup.py sdist_conda
if errorlevel 1 exit 1
3 changes: 3 additions & 0 deletions conda-pkg/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!sh
set -xe
$PYTHON setup.py sdist_conda

0 comments on commit 80a0a6c

Please sign in to comment.