Skip to content

Commit aae9537

Browse files
committed
Update Conda publish workflow and increment version
1 parent d346cea commit aae9537

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

.github/workflows/publish.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ jobs:
3131

3232
anaconda:
3333
runs-on: ubuntu-latest
34-
needs: pypi
3534
steps:
3635
- uses: actions/checkout@v3
3736
- name: Set up Python
@@ -46,19 +45,23 @@ jobs:
4645
run: |
4746
sudo apt-get update && sudo apt-get install openssl curl
4847
conda install -y anaconda-client conda-build conda-verify
48+
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/
4954
- name: Publish distribution to Anaconda
5055
env:
5156
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_TOKEN }}
5257
run: |
53-
sleep 30m # wait for all the PyPi servers to be updated with the latest version of torch-hd
54-
5558
mkdir ./conda-build # create the artifact dir
5659
5760
# Get the version of the library
5861
export TORCHHD_VERSION=$(python -c "with open('torchhd/version.py') as f: exec(f.read()); print(__version__)")
5962
60-
# Calculate the HASH of the PyPi package
61-
curl -L --output ./conda-build/torchhd.tar.gz "https://pypi.io/packages/source/t/torch-hd/torch-hd-${TORCHHD_VERSION}.tar.gz"
63+
# Calculate the HASH of the package
64+
mv ./dist/torch_hd-${TORCHHD_VERSION}.tar.gz ./conda-build/torchhd.tar.gz
6265
export TORCHHD_HASH=$(openssl sha256 ./conda-build/torchhd.tar.gz | awk '{print $2}')
6366
6467
# Build for noarch platform

torchhd/version.py

Lines changed: 1 addition & 1 deletion
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.1"
24+
__version__ = "5.6.2"

0 commit comments

Comments
 (0)