Skip to content

Commit 8cf6125

Browse files
committed
Fix Conda publish workflow and increment patch version
1 parent aae9537 commit 8cf6125

File tree

3 files changed

+3
-12
lines changed

3 files changed

+3
-12
lines changed

.github/workflows/publish.yml

+1-9
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,7 @@ jobs:
4646
sudo apt-get update && sudo apt-get install openssl curl
4747
conda install -y anaconda-client conda-build conda-verify
4848
python -m pip install --upgrade pip
49-
pip install setuptools wheel
50-
pip install build --user
51-
- name: Build package
52-
run: >-
53-
python -m build --sdist --wheel --outdir dist/
49+
pip install setuptools wheel build
5450
- name: Publish distribution to Anaconda
5551
env:
5652
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_TOKEN }}
@@ -60,10 +56,6 @@ jobs:
6056
# Get the version of the library
6157
export TORCHHD_VERSION=$(python -c "with open('torchhd/version.py') as f: exec(f.read()); print(__version__)")
6258
63-
# Calculate the HASH of the package
64-
mv ./dist/torch_hd-${TORCHHD_VERSION}.tar.gz ./conda-build/torchhd.tar.gz
65-
export TORCHHD_HASH=$(openssl sha256 ./conda-build/torchhd.tar.gz | awk '{print $2}')
66-
6759
# Build for noarch platform
6860
conda-build -c pytorch --output-folder ./conda-build ./conda
6961

conda/meta.yaml

+1-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ package:
55
version: {{ TORCHHD_VERSION }}
66

77
source:
8-
url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ TORCHHD_VERSION }}.tar.gz
9-
sha256: {{ TORCHHD_HASH }}
8+
path: ../
109

1110
build:
1211
noarch: python

torchhd/version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@
2121
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2222
# SOFTWARE.
2323
#
24-
__version__ = "5.6.2"
24+
__version__ = "5.6.3"

0 commit comments

Comments
 (0)