Skip to content

Commit

Permalink
Fix Conda publish workflow and increment patch version
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeheddes committed Sep 1, 2024
1 parent aae9537 commit 8cf6125
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 12 deletions.
10 changes: 1 addition & 9 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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
Expand Down
3 changes: 1 addition & 2 deletions conda/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion torchhd/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 8cf6125

Please sign in to comment.