Skip to content

Commit 4c47152

Browse files
committed
Fix Anaconda publishing script
1 parent 759eb3f commit 4c47152

File tree

3 files changed

+15
-42
lines changed

3 files changed

+15
-42
lines changed

.github/workflows/publish.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,18 @@ jobs:
5353
run: |
5454
conda install -y anaconda-client conda-build conda-verify
5555
- name: Publish distribution to Anaconda
56+
env:
57+
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_TOKEN }}
5658
run: |
57-
export ANACONDA_API_TOKEN = ${{ secrets.ANACONDA_TOKEN }}
58-
./scripts/conda_publish.sh
59+
cd ./conda # go to build dir
60+
61+
# Build for Linux
62+
conda build -c conda-forge -c pytorch --output-folder . .
63+
64+
# Convert to other platforms: OSX, WIN
65+
conda convert -p osx-64 linux-64/*.tar.bz2
66+
conda convert -p win-64 linux-64/*.tar.bz2
67+
68+
anaconda upload --label main osx-64/*.tar.bz2
69+
anaconda upload --label main linux-64/*.tar.bz2
70+
anaconda upload --label main win-64/*.tar.bz2

scripts/conda_publish.sh

Lines changed: 0 additions & 39 deletions
This file was deleted.

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
setup(
99
name="hdc",
10-
version="0.5.2",
10+
version="0.5.3",
1111
description="Python library for Hyperdimensional Computing",
1212
long_description=open("README.md").read(),
1313
long_description_content_type="text/markdown",

0 commit comments

Comments
 (0)