Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
robomics committed Jul 29, 2023
1 parent 1271eb5 commit 48a9f42
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 14 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ jobs:

- name: Upload wheels
uses: actions/upload-artifact@v3
env:
CIBW_ARCHS_LINUX: x86_64
CIBW_ARCHS_MACOS: x86_64 arm64
CIBW_ARCHS_WINDOWS: AMD64
with:
path: wheelhouse/*.whl

Expand Down
34 changes: 20 additions & 14 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,27 +36,33 @@ testpaths = ["tests"]

[tool.cibuildwheel]
# Setuptools bug causes collision between pypy and cpython artifacts
before-build = ["rm -rf {project}/build",
"""conan install {project} \\
-s build_type=Release \\
-s compiler.cppstd=17 \\
--output-folder "{project}/conan_build" \\
-o '*/*:shared=True' \\
--build=missing"""
before-build = [
"rm -rf '{project}/build'",
"pip install 'conan>=2'",
"conan profile detect --force",
"""
conan install {project} \
-s build_type=Release \
-s compiler.cppstd=17 \
--output-folder "$TMPDIR/conan_build" \
-o '*/*:shared=True' \
--build="missing"
"""
]
environment = """CMAKE_ARGS="-DCMAKE_PREFIX_PATH='{project}/conan_build'" """
environment = { CMAKE_ARGS = '-DCMAKE_PREFIX_PATH="$TMPDIR/conan_build"', MACOSX_DEPLOYMENT_TARGET = '10.15' }
environment-pass = ["CMAKE_ARGS"]

[tool.ruff]
extend-select = [
"B", # flake8-bugbear
"B", # flake8-bugbear
"B904",
"I", # isort
"PGH", # pygrep-hooks
"RUF", # Ruff-specific
"UP", # pyupgrade
"I", # isort
"PGH", # pygrep-hooks
"RUF", # Ruff-specific
"UP", # pyupgrade
]
extend-ignore = [
"E501", # Line too long
"E501", # Line too long
]
target-version = "py36"

Expand Down

0 comments on commit 48a9f42

Please sign in to comment.