Skip to content

Commit 8d4576b

Browse files
authored
Merge 5a3cd54 into 2ce1f16
2 parents 2ce1f16 + 5a3cd54 commit 8d4576b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+119
-17718
lines changed

.github/workflows/build_cmake.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,6 @@ jobs:
5555
with:
5656
python-version: '3.8' # 3.x grabs latest minor version of python3, but 3.9 not fully supported yet
5757
- name: Install Python dependencies
58-
run: python -m pip install --upgrade pip setuptools wheel numpy tox pytest
58+
run: python -m pip install --upgrade pip setuptools wheel tox
5959
- name: Build and run Python tests
6060
run: python -m tox

.github/workflows/build_wheels.yml

Lines changed: 31 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,22 +37,36 @@ jobs:
3737
name: ${{ matrix.config.name }}
3838
runs-on: ${{ matrix.config.os }}
3939
strategy:
40-
fail-fast: false
40+
#fail-fast: false
4141
matrix:
4242
config:
4343
- {
44-
name: "MacOS 10.15",
45-
os: macos-latest
44+
name: "MacOS Latest (Intel)",
45+
os: macos-latest,
46+
cibw-arch: macosx_x86_64
4647
}
4748
- {
48-
name: "Ubuntu Latest",
49-
os: ubuntu-latest
49+
name: "MacOS Latest (Apple Silicon)",
50+
os: macos-latest,
51+
cibw-arch: macosx_arm64
52+
}
53+
- {
54+
name: "Ubuntu Latest (x86_64)",
55+
os: ubuntu-latest,
56+
cibw-arch: manylinux_x86_64
57+
}
58+
- {
59+
name: "Ubuntu Latest (i686)",
60+
os: ubuntu-latest,
61+
cibw-arch: manylinux_i686
5062
}
5163
- {
5264
name: "Windows Latest",
53-
os: windows-latest
65+
os: windows-latest,
66+
cibw-arch: win_amd64
5467
}
55-
68+
69+
5670
steps:
5771
- name: Checkout
5872
uses: actions/checkout@v3
@@ -65,12 +79,20 @@ jobs:
6579
- name: Install Python dependencies
6680
run: python -m pip install cibuildwheel==2.5.0
6781

82+
- name: Configure cibuildwheel
83+
shell: bash
84+
run: |
85+
CMAKE_OSX_ARCHITECTURES=${{ matrix.config.cibw-arch == 'macosx_x86_64' && 'x86_64' || matrix.config.cibw-arch == 'macosx_arm64' && 'arm64' || matrix.config.cibw-arch == 'macosx_universal2' && '"arm64;x86_64"' || '' }}
86+
echo "CIBW_ARCHS_MACOS=x86_64 arm64" >> $GITHUB_ENV
87+
echo "CIBW_BUILD=*-${{ matrix.config.cibw-arch }}" >> $GITHUB_ENV
88+
echo "CIBW_ENVIRONMENT_MACOS=CMAKE_OSX_ARCHITECTURES=\"$CMAKE_OSX_ARCHITECTURES\"" >> $GITHUB_ENV
89+
6890
- name: Build wheels
6991
run: python -m cibuildwheel --output-dir dist
7092
env:
71-
CIBW_BEFORE_BUILD: python -m pip install cmake>=3.18
93+
CIBW_BEFORE_BUILD_LINUX: "yum remove -y cmake"
94+
CIBW_BEFORE_BUILD: "python -m pip install cmake>=3.18"
7295
CIBW_SKIP: "*-win32 pp*-macosx*"
73-
CIBW_ARCHS_MACOS: "x86_64 arm64 universal2"
7496

7597
- uses: actions/upload-artifact@v2
7698
with:

LICENSE

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -255,10 +255,8 @@ APPENDIX B: Additional licenses relevant to this product.
255255
=============================================================
256256
Boost License (https://www.boost.org/LICENSE_1_0.txt)
257257
=============================================================
258-
Original source code:
259-
https://github.com/catchorg/Catch2/blob/master/single_include/catch2/catch.hpp
260-
-------------------------------------------------------------
261-
Copyright (c) 2020 Two Blue Cubes Ltd. All rights reserved.
258+
Original source:
259+
https://github.com/catchorg/Catch2/blob/v2.x/LICENSE.txt
262260

263261
Boost Software License - Version 1.0 - August 17th, 2003
264262

@@ -285,8 +283,8 @@ APPENDIX B: Additional licenses relevant to this product.
285283
DEALINGS IN THE SOFTWARE.
286284
-------------------------------------------------------------
287285
Code Locations:
288-
* https://github.com/apache/datasketches-cpp/blob/master/common/test/catch.hpp
289-
that is adapted from the above.
286+
Found in the Catch2 unit test code that is downloaded from github.com as part
287+
of CMake configuration if configured to build tests.
290288

291289

292290
=============================================================

MANIFEST.in

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ global-include *.bin
77

88
global-exclude .git*
99

10-
recursive-include python/pybind11 *
11-
1210
graft cmake
1311
graft common
1412
graft cpc

common/test/CMakeLists.txt

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,18 @@
2121
# common dependencies for tests
2222
add_library(common_test OBJECT "")
2323

24+
include(FetchContent)
25+
26+
FetchContent_Declare(
27+
Catch2
28+
GIT_REPOSITORY https://github.com/catchorg/Catch2
29+
GIT_TAG v2.13.9
30+
)
31+
32+
FetchContent_MakeAvailable(Catch2)
33+
34+
target_link_libraries(common_test PUBLIC Catch2::Catch2)
35+
2436
set_target_properties(common_test PROPERTIES
2537
CXX_STANDARD 11
2638
CXX_STANDARD_REQUIRED YES
@@ -33,7 +45,6 @@ target_include_directories(common_test
3345

3446
target_sources(common_test
3547
INTERFACE
36-
${CMAKE_CURRENT_SOURCE_DIR}/catch.hpp
3748
${CMAKE_CURRENT_SOURCE_DIR}/test_allocator.hpp
3849
${CMAKE_CURRENT_SOURCE_DIR}/test_type.hpp
3950
PRIVATE
@@ -59,4 +70,4 @@ add_test(
5970
target_sources(integration_test
6071
PRIVATE
6172
integration_test.cpp
62-
)
73+
)

0 commit comments

Comments
 (0)