Skip to content

Commit

Permalink
Use the new conda package format (#6216)
Browse files Browse the repository at this point in the history
  • Loading branch information
hoxbro authored Jun 6, 2024
1 parent 3b24039 commit c7e9f9e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
if: always()
with:
name: conda
path: dist/*tar.bz2
path: dist/*.conda
if-no-files-found: error

conda_publish:
Expand All @@ -67,7 +67,7 @@ jobs:
- name: Set environment variables
run: |
echo "TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
echo "CONDA_FILE=$(ls dist/*.tar.bz2)" >> $GITHUB_ENV
echo "CONDA_FILE=$(ls dist/*.conda)" >> $GITHUB_ENV
- uses: conda-incubator/setup-miniconda@v3
with:
miniconda-version: "latest"
Expand Down
3 changes: 2 additions & 1 deletion scripts/conda/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ python -m build . # Can add -w when this is solved: https://github.com/pypa/hatc

VERSION=$(find dist -name "*.whl" -exec basename {} \; | cut -d- -f2)
export VERSION
conda config --env --set conda_build.pkg_format 2
conda build scripts/conda/recipe --no-anaconda-upload --no-verify

mv "$CONDA_PREFIX/conda-bld/noarch/$PACKAGE-$VERSION-py_0.tar.bz2" dist
mv "$CONDA_PREFIX/conda-bld/noarch/$PACKAGE-$VERSION-py_0.conda" dist

0 comments on commit c7e9f9e

Please sign in to comment.