diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index c8b75a3d..76009123 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -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 diff --git a/scripts/conda/build.sh b/scripts/conda/build.sh index 566c87a3..cd6a4f86 100755 --- a/scripts/conda/build.sh +++ b/scripts/conda/build.sh @@ -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