Skip to content

Commit 8e568e8

Browse files
committed
set up testpypi upload action
1 parent caf3095 commit 8e568e8

File tree

3 files changed

+21
-7
lines changed

3 files changed

+21
-7
lines changed

.github/workflows/upload_testpypi.yml

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
name: Publish wheels to testpypi
22

3-
on: workflow_dispatch
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
workflow_id:
7+
description: "The workflow ID to pull wheels from"
8+
required: true
9+
type: string
410

511
jobs:
612
publish_test:
@@ -16,11 +22,18 @@ jobs:
1622

1723
steps:
1824
- name: Download all the dists
19-
uses: actions/download-artifact@v3
25+
uses: dawidd6/action-download-artifact@v2
2026
with:
21-
pattern: cibw-* # download all the wheels
22-
path: dist
23-
merge-multiple: true
27+
# download all the wheels
28+
path: unmerged
29+
run_id: ${{ github.event.inputs.workflow_id }}
30+
workflow: build_wheels.yml
31+
32+
- name: Merge files to dist
33+
run: |
34+
mkdir dist
35+
mv unmerged/*/*.whl dist
36+
2437
- name: Publish distribution 📦 to TestPyPI
2538
uses: pypa/gh-action-pypi-publish@release/v1
2639
with:

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ keywords = [
2222
"runtime",
2323
]
2424
requires-python = ">=3.7"
25+
dependencies = ["numpy>=1.10.0", "greenlet>=3.0.0"]
2526
classifiers = [
2627
'Intended Audience :: Developers',
2728
'License :: Free for non-commercial use',

requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
cython>=3.0.0
2-
numpy
1+
numpy>=1.10.0
32
greenlet>=3.0.0
43

54
# Required for the charm++ build:
65
cmake
6+
cython>=3.0.0

0 commit comments

Comments
 (0)