Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Commit

Permalink
also pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
chrstnbwnkl committed Jun 21, 2024
1 parent 8208d4d commit 41e2bfb
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,15 @@ requires = [
"wheel",
"setuptools_scm>=6.2",
"setuptools_scm_git_archive",
"pybind11>=2.9.0",
"pybind11>=2.10.4",
]
build-backend = "setuptools.build_meta"

[tool.setuptools_scm]
write_to = "valhalla/__version__.py"
write_to_template = "__version__ = '{version}'\n"
version_scheme = "post-release"

[tool.black]
line-length = 105
exclude = '''
Expand All @@ -18,24 +23,25 @@ exclude = '''
| '*build'
| __pycache__
| '*.toml'
)/
'''

[tool.cibuildwheel]
test-command = "python -c \"from valhalla import Actor\""
test-command = "python -m unittest discover -s {project}/test"
# find out current defaults: cibuildwheel --print-build-identifiers --platform linux
build = "cp*"
skip = "*musllinux*"
archs = "native"
manylinux-x86_64-image = "ghcr.io/gis-ops/manylinux:valhalla_python"
manylinux-x86_64-image = "ghcr.io/gis-ops/manylinux:2_28_valhalla_python"

[tool.cibuildwheel.windows]
before-all = "pip install conan delvewheel"
repair-wheel-command = "delvewheel repair --add-path lib/windows {wheel} -w {dest_dir}"

[tool.cibuildwheel.linux]
before-all = """
pip install conan
pip install "conan<2.0.0"
conan profile new default --detect
conan config set storage.path={package}/conan_data
conan install --install-folder {package}/conan_build --remote conancenter {package}/conanfile.txt
Expand Down

0 comments on commit 41e2bfb

Please sign in to comment.