Skip to content

Commit

Permalink
build: Small updates to build infrastructure (#1008)
Browse files Browse the repository at this point in the history
  • Loading branch information
hoxbro authored Jan 15, 2025
1 parent c3a96ff commit 8095bb3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ jobs:
- name: Install package
run: python -m pip install dist/*.whl
- name: Import package
run: python -c "import $PACKAGE; print($PACKAGE.__version__)"
run: python -c "import $PACKAGE; print($PACKAGE._version.__version__)"

pip_publish:
name: Publish PyPI
Expand Down
5 changes: 2 additions & 3 deletions scripts/conda/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@ set -euxo pipefail

PACKAGE="param"

python -m build -s .
python -m build --sdist .

VERSION=$(python -c "import $PACKAGE; print($PACKAGE._version.__version__)")
export VERSION

# conda config --env --set conda_build.pkg_format 2
conda build scripts/conda/recipe --no-anaconda-upload --no-verify -c conda-forge
conda build scripts/conda/recipe --no-anaconda-upload --no-verify -c conda-forge --package-format 1

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

0 comments on commit 8095bb3

Please sign in to comment.