diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index ba1c8945..21df0851 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -46,11 +46,7 @@ jobs: sudo apt-get update && sudo apt-get install openssl curl conda install -y anaconda-client conda-build conda-verify python -m pip install --upgrade pip - pip install setuptools wheel - pip install build --user - - name: Build package - run: >- - python -m build --sdist --wheel --outdir dist/ + pip install setuptools wheel build - name: Publish distribution to Anaconda env: ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_TOKEN }} @@ -60,10 +56,6 @@ jobs: # Get the version of the library export TORCHHD_VERSION=$(python -c "with open('torchhd/version.py') as f: exec(f.read()); print(__version__)") - # Calculate the HASH of the package - mv ./dist/torch_hd-${TORCHHD_VERSION}.tar.gz ./conda-build/torchhd.tar.gz - export TORCHHD_HASH=$(openssl sha256 ./conda-build/torchhd.tar.gz | awk '{print $2}') - # Build for noarch platform conda-build -c pytorch --output-folder ./conda-build ./conda diff --git a/conda/meta.yaml b/conda/meta.yaml index 9821b9b0..d831ae72 100644 --- a/conda/meta.yaml +++ b/conda/meta.yaml @@ -5,8 +5,7 @@ package: version: {{ TORCHHD_VERSION }} source: - url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ TORCHHD_VERSION }}.tar.gz - sha256: {{ TORCHHD_HASH }} + path: ../ build: noarch: python diff --git a/torchhd/version.py b/torchhd/version.py index 1960a914..10900808 100644 --- a/torchhd/version.py +++ b/torchhd/version.py @@ -21,4 +21,4 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. # -__version__ = "5.6.2" +__version__ = "5.6.3"