Skip to content

Commit 9fcb341

Browse files
author
Raymond Fei
committed
clean up after merging
1 parent 8c58966 commit 9fcb341

4 files changed

Lines changed: 103 additions & 61 deletions

File tree

.github/environment.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: build
2+
channels:
3+
- conda-forge
4+
dependencies:
5+
- conda
6+
- compilers
7+
- ninja
8+
- cmake
9+
- zlib
10+

.github/workflows/test.yml

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
2+
name: Test
3+
on: [push, pull_request]
4+
5+
concurrency:
6+
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
7+
cancel-in-progress: true
8+
9+
jobs:
10+
build:
11+
name: ${{ matrix.os }} with BUILD_SHARED_LIBS=${{matrix.shared}}
12+
runs-on: ${{ matrix.os }}
13+
strategy:
14+
matrix:
15+
os: [macos-latest, windows-latest, ubuntu-latest]
16+
shared: [ON, OFF]
17+
18+
steps:
19+
- uses: actions/checkout@v4
20+
- uses: ilammy/msvc-dev-cmd@v1
21+
if: matrix.os == 'windows-latest'
22+
- name: Support longpaths
23+
run: git config --system core.longpaths true
24+
if: matrix.os == 'windows-latest'
25+
- uses: mamba-org/setup-micromamba@v2
26+
with:
27+
init-shell: bash
28+
environment-file: .github/environment.yml
29+
environment-name: "build"
30+
31+
- name: Setup
32+
shell: bash -l {0}
33+
run: |
34+
mkdir build
35+
36+
- name: CMake
37+
shell: bash -l {0}
38+
env:
39+
BUILD_SHARED_LIBS: ${{ matrix.shared }}
40+
41+
run: |
42+
43+
if [ "$RUNNER_OS" == "Windows" ]; then
44+
export CC=cl.exe
45+
export CXX=cl.exe
46+
fi
47+
48+
cmake -G "Ninja" \
49+
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
50+
-DBUILD_SHARED_LIBS=$BUILD_SHARED_LIBS \
51+
-DBUILD_TESTING=ON \
52+
-DCMAKE_INSTALL_PREFIX=${CONDA_PREFIX} \
53+
-DCMAKE_WINDOWS_EXPORT_ALL_SYMBOLS=ON \
54+
..
55+
56+
57+
working-directory: ./build
58+
59+
- name: Compile
60+
shell: bash -l {0}
61+
run: |
62+
ninja
63+
working-directory: ./build
64+
65+
- name: Install
66+
shell: bash -l {0}
67+
run: |
68+
ninja install
69+
working-directory: ./build
70+
71+
- name: "There are no tests :spoon:"
72+
shell: bash -l {0}
73+
run: |
74+
echo "There are no tests"
75+
working-directory: ./build
76+

.gitignore

Lines changed: 16 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,20 @@
1-
# Temp stuff
2-
*~
3-
\#*
41
.DS_Store
5-
*.log
2+
*.pyc
63

7-
# Libs
8-
__pycache__/
9-
*.py[cod]
10-
*$py.class
11-
*.so
4+
# CMake
5+
CMakeCache.txt
6+
CMakeFiles/
7+
CMakeScripts/
8+
Testing/
9+
*.cmake
1210

13-
# Distribution / packaging
14-
.Python
11+
# Build directories
1512
build/
16-
develop-eggs/
17-
dist/
18-
downloads/
19-
eggs/
20-
.eggs/
21-
lib/
22-
lib64/
23-
parts/
24-
sdist/
25-
var/
26-
wheels/
27-
pip-wheel-metadata/
28-
share/python-wheels/
29-
*.egg-info/
30-
.installed.cfg
31-
*.egg
32-
MANIFEST
33-
/.vscode
34-
35-
# Miniconda
36-
/.miniconda3
37-
/.venv
38-
/.node
39-
40-
# Coverage output
41-
/.coverage
42-
/.coverage_html
43-
44-
# test output
45-
/.tmp_test_out
46-
47-
# dynamic version file
48-
/version.py
49-
50-
# typescript files
51-
node_modules
52-
dist/
53-
npm-debug.log
54-
tsconfig.tsbuildinfo
55-
56-
# metabuild
57-
/build_mb
58-
59-
# builds
60-
/wheelhouse
61-
62-
# eval
63-
/eval*
64-
/output*
13+
Build/
14+
BUILD/
15+
out/
16+
_build/
17+
18+
# CMake temporary files
19+
*.tmp
20+
*.cmake~

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ dynamic = ["version"]
88
description = "Python bindings for SPZ file format library that compiles bindings using nanobind and scikit-build"
99
readme = "README.md"
1010
requires-python = ">=3.8"
11-
dependencies = ["numpy", "plyfile>=1.1.2"]
11+
dependencies = ["numpy"]
1212
# ---------------------------------------------------------------------------
1313
# Tell scikit-build-core to obtain the dynamic version from CMakeLists:
1414
# ---------------------------------------------------------------------------

0 commit comments

Comments
 (0)