Skip to content

Commit

Permalink
update action
Browse files Browse the repository at this point in the history
  • Loading branch information
statmlben committed Feb 6, 2024
1 parent 4e3aabe commit 9c41067
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 13 deletions.
23 changes: 13 additions & 10 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,24 @@ jobs:
os: [ubuntu-20.04, windows-2019, macOS-11]

steps:
# Install poetry
- uses: actions/checkout@v4
- name: Install poetry
run: pipx install poetry

# Used to host cibuildwheel
# Used to host poetry
- uses: actions/setup-python@v3

- name: Install cibuildwheel
run: python -m pip install cibuildwheel==2.16.5
- name: Build sdist package
run: python setup.py sdist

- name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse
# to supply options, put them in 'env', like:
# env:
# CIBW_SOME_OPTION: value
- name: Build wheel package
run: python setup.py bdist_wheel

- name: Build wheels for more general OS
run: poetry build

- uses: actions/upload-artifact@v4
with:
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
path: ./wheelhouse/*.whl
name: rehline-wheels-${{ matrix.os }}-${{ strategy.job-index }}
path: ./sdist/*.whl
Binary file added dist/rehline-0.0.3-cp310-cp310-linux_x86_64.whl
Binary file not shown.
Binary file modified dist/rehline-0.0.3-cp310-cp310-manylinux_2_35_x86_64.whl
Binary file not shown.
Binary file modified dist/rehline-0.0.3.tar.gz
Binary file not shown.
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ generate-setup-file = false

[tool.poetry.dependencies]
python = "^3.10"
requests = "^2.31.0"
requests = "^2.27.0"
pybind11 = "^2.11.1"
numpy = "^1.23.5"
scipy = "^1.11.4"
scikit-learn = "^1.2.2"

[build-system]
requires = ["poetry-core>=1.0.0", "requests ~= 2.18.0", "pybind11 ~= 2.11.1", "setuptools ~= 59.0"]
requires = ["poetry-core>=1.0.0", "requests ~= 2.27.0", "pybind11 ~= 2.11.1", "setuptools ~= 59.0"]
build-backend = "poetry.core.masonry.api"
3 changes: 2 additions & 1 deletion setup_py.txt → setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
from pathlib import Path
import zipfile
import requests
from pybind11.setup_helpers import Pybind11Extension, build_ext
from pybind11.setup_helpers import Pybind11Extension
from setuptools import setup
from setuptools.command.build_ext import build_ext

__version__ = "0.0.3"

Expand Down

0 comments on commit 9c41067

Please sign in to comment.