File tree 2 files changed +9
-6
lines changed
2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 31
31
32
32
anaconda :
33
33
runs-on : ubuntu-latest
34
- needs : pypi
35
34
steps :
36
35
- uses : actions/checkout@v3
37
36
- name : Set up Python
@@ -46,19 +45,23 @@ jobs:
46
45
run : |
47
46
sudo apt-get update && sudo apt-get install openssl curl
48
47
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/
49
54
- name : Publish distribution to Anaconda
50
55
env :
51
56
ANACONDA_API_TOKEN : ${{ secrets.ANACONDA_TOKEN }}
52
57
run : |
53
- sleep 30m # wait for all the PyPi servers to be updated with the latest version of torch-hd
54
-
55
58
mkdir ./conda-build # create the artifact dir
56
59
57
60
# Get the version of the library
58
61
export TORCHHD_VERSION=$(python -c "with open('torchhd/version.py') as f: exec(f.read()); print(__version__)")
59
62
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
62
65
export TORCHHD_HASH=$(openssl sha256 ./conda-build/torchhd.tar.gz | awk '{print $2}')
63
66
64
67
# Build for noarch platform
Original file line number Diff line number Diff line change 21
21
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
22
# SOFTWARE.
23
23
#
24
- __version__ = "5.6.1 "
24
+ __version__ = "5.6.2 "
You can’t perform that action at this time.
0 commit comments