Skip to content

Commit

Permalink
fix: include cibuildwheel config (#234)
Browse files Browse the repository at this point in the history
  • Loading branch information
henryiii authored Jul 20, 2023
1 parent 8ded534 commit fb3b514
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 6 deletions.
4 changes: 2 additions & 2 deletions docs/pages/guides/gha_wheels.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,15 +113,15 @@ build_wheels:
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04, windows-2019, macos-10.15]
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
submodules: true
- uses: pypa/[email protected].1
- uses: pypa/[email protected]
- name: Upload wheels
uses: actions/upload-artifact@v3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
with:
fetch-depth: 0

- uses: pypa/[email protected].1
- uses: pypa/[email protected]

- name: Upload wheels
uses: actions/upload-artifact@v3
Expand Down
31 changes: 28 additions & 3 deletions {{cookiecutter.project_name}}/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ build-backend = "setuptools.build_meta"
requires = ["pybind11", "scikit-build-core"]
build-backend = "scikit_build_core.build"
{%- elif cookiecutter.backend == "mesonpy" %}
requires = ["pybind11", "meson-python"]
requires = ["meson-python", "pybind11"]
build-backend = "mesonpy"
{%- elif cookiecutter.backend == "poetry" %}
requires = ["poetry_core>=1.0.0"]
Expand Down Expand Up @@ -193,25 +193,50 @@ Changelog = "{{ cookiecutter.url }}/releases"


{%- if cookiecutter.backend == "skbuild" %}


[tool.scikit-build]
minimum-version = "0.2"
build-dir = "build/{cache_tag}"
minimum-version = "0.4"
build-dir = "build/{wheel_tag}"

{%- elif cookiecutter.backend == "whey" %}


[tool.whey]
source-dir = "src"

{%- elif cookiecutter.backend == "trampolim" %}


[tool.trampolim]
module-location = "src"

{%- elif cookiecutter.backend == "hatch" %}


[tool.hatch]
version.path = "src/{{ cookiecutter.__project_slug }}/__init__.py"
envs.default.dependencies = [
"pytest",
"pytest-cov",
]

{%- elif cookiecutter.backend == "pdm" %}


[tool.pdm.dev-dependencies]
devtest = ["pytest", "pytest-cov"]

{%- endif %}


{%- if cookiecutter.__type == "compiled" %}


[tool.cibuildwheel]
test-command = "pytest {project}/tests"
test-extras = ["test"]
test-skip = ["*universal2:arm64"]
{%- endif %}


Expand Down

0 comments on commit fb3b514

Please sign in to comment.