Skip to content

Commit f58e9da

Browse files
committed
wheel builds
1 parent 82c7dee commit f58e9da

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Build Python packages
2+
3+
on:
4+
release:
5+
types: [published]
6+
workflow_dispatch:
7+
8+
jobs:
9+
binary:
10+
runs-on: ${{ matrix.os }}
11+
strategy:
12+
matrix:
13+
os: [windows-latest, macos-latest, ubuntu-20.04]
14+
python-version: ["3.8", "3.9", "3.10", "3.11"]
15+
steps:
16+
- uses: actions/checkout@v3
17+
- name: Set up Python ${{ matrix.python-version }}
18+
uses: actions/setup-python@v3
19+
with:
20+
python-version: ${{ matrix.python-version }}
21+
- name: Install dependencies
22+
run: |
23+
python -m pip install --upgrade pip poetry twine
24+
- name: Build wheel
25+
run: |
26+
poetry build -f wheel
27+
- name: Publish package
28+
run: |
29+
twine upload -u __token__ -p ${{ secrets.PYPI_API_TOKEN }} --non-interactive --skip-existing dist/*

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ rdkit = ['rdkit']
4545
zstd = ['pyzstd']
4646

4747
[build-system]
48-
requires = ['poetry-core', 'setuptools', 'cython>=3.0.5', 'numpy>=1.24']
48+
requires = ['poetry-core', 'setuptools', 'cython>=3.0.5', 'numpy>=1.23.3']
4949
build-backend = 'poetry.core.masonry.api'
5050

5151
[tool.poetry.build]

0 commit comments

Comments
 (0)