diff --git a/.github/workflows/on-tag.yml b/.github/workflows/on-tag.yml index d0ba207..7d7602e 100644 --- a/.github/workflows/on-tag.yml +++ b/.github/workflows/on-tag.yml @@ -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: diff --git a/conda-pkg/bld.bat b/conda-pkg/bld.bat new file mode 100644 index 0000000..816cc8a --- /dev/null +++ b/conda-pkg/bld.bat @@ -0,0 +1,2 @@ +"%PYTHON%" setup.py sdist_conda +if errorlevel 1 exit 1 diff --git a/conda-pkg/build.sh b/conda-pkg/build.sh new file mode 100644 index 0000000..02889d8 --- /dev/null +++ b/conda-pkg/build.sh @@ -0,0 +1,3 @@ +#!sh +set -xe +$PYTHON setup.py sdist_conda