Skip to content

Commit 30646b5

Browse files
authored
CEFAnaT (#6)
* Add peaks list method to physprop * Add test for peaks * Fix broken test on MacOS * Add Fabi normalise parameters; Add point symmetries * Add split2range function and test * WIP: fitengy * Add fitengy and test * Remove versioneer * Change to pyproject.toml - scikit-build * Fix std=cxx-11 issues on Linux/Mac (VC uses cxx-14) * Fix win CI error. Add pyodide tests * Typo in CI yaml
1 parent e726dc1 commit 30646b5

24 files changed

+562
-3157
lines changed

.github/workflows/build_python.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,15 @@ jobs:
5959
python -m unittest
6060
cd ..
6161
done
62-
- name: Build Pyodide wheel
62+
- name: Build and test Pyodide wheel
6363
if: matrix.os == 'ubuntu-latest'
6464
run: |
6565
eval "$($MAMBA_EXE shell activate cibuildwheel)"
66-
CIBW_BUILD="cp312*" python -m cibuildwheel --output-dir wheelhouse --platform pyodide
66+
CIBW_BUILD="cp312*" python -m cibuildwheel --output-dir dist --platform pyodide
67+
mamba install nodejs
68+
npm install
69+
npm test
70+
mv dist/*wasm*.whl wheelhouse/
6771
- name: Upload release wheels
6872
if: |
6973
contains(github.event.pull_request.title, 'RELEASE') &&

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ build
1010
dist
1111
libMcPhase.egg-info
1212
libmcphase.egg-info
13-
emsdk
13+
emsdk*
1414
Emscripten.cmake
15+
node_modules
16+
package-lock.json
1517

1618
libmcphase/*pyd
19+
libmcphase/libmcphase.cpython*

CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
cmake_minimum_required (VERSION 3.13)
1+
cmake_minimum_required (VERSION 3.15)
22
project(libMcPhase)
33

44
set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
55
set(CMAKE_MACOSX_RPATH TRUE)
66
set(CMAKE_CXX_STANDARD 11)
77
set(CXX_STANDARD_REQUIRED 11)
8-
cmake_policy(SET CMP0148 OLD) # New policy gives error when cannot find shared libs
98

109
set(LIBMCPHASE_PYTHON_MODULE libmcphase)
1110

@@ -45,3 +44,6 @@ add_subdirectory(src)
4544
pybind11_add_module(${LIBMCPHASE_PYTHON_MODULE} MODULE)
4645
target_include_directories(${LIBMCPHASE_PYTHON_MODULE} PUBLIC src/include)
4746
add_subdirectory(src/libmcphase)
47+
48+
# Destination name must match name of project in pyproject.toml
49+
install(TARGETS ${LIBMCPHASE_PYTHON_MODULE} DESTINATION libmcphase)

libmcphase/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
from .libmcphase import *
22

33
from . import _version
4-
__version__ = _version.get_versions()['version']
4+
__version__ = _version.__version__

0 commit comments

Comments
 (0)