-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'henryiii/chore/scikit-build-core' of https://github.com…
…/henryiii/flare into henryiii-henryiii/chore/scikit-build-core
- Loading branch information
Showing
6 changed files
with
151 additions
and
276 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: C++ tests | ||
|
||
on: [push, pull_request] | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
# This workflow contains a single job called "build" | ||
build: | ||
strategy: | ||
matrix: | ||
omp: [OFF, ON] | ||
lapack: [OFF, ON] | ||
name: "(OpenMP, Lapack) =" | ||
|
||
# The type of runner that the job will run on | ||
runs-on: ubuntu-latest | ||
|
||
env: | ||
BUILD_DIR: build_${{ matrix.omp }}_${{ matrix.lapack }} | ||
CC: gcc-9 | ||
CXX: g++-9 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Build and run C++ tests | ||
run: | | ||
sudo apt install liblapacke liblapacke-dev | ||
mkdir ${BUILD_DIR} | ||
cd ${BUILD_DIR} | ||
if [ "${{ matrix.omp }}" = "ON" ]; then | ||
unset NO_OMP | ||
else | ||
export NO_OMP=1 | ||
fi | ||
if [ "${{ matrix.lapack }}" = "ON" ]; then | ||
unset NO_LAPACK | ||
else | ||
export NO_LAPACK=1 | ||
fi | ||
echo "OpenMP ${{ matrix.omp }}" | ||
echo "Lapack ${{ matrix.lapack }}" | ||
cmake .. -DNO_PYTHON=ON | ||
cmake --build . -j4 | ||
cd ctests | ||
./tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,12 +3,8 @@ | |
|
||
name: flare | ||
|
||
# Controls when the action will run. Triggers the workflow on push or pull request | ||
# events but only for the master branch | ||
on: [push, pull_request] | ||
|
||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
# This workflow contains a single job called "build" | ||
build: | ||
|
@@ -60,8 +56,6 @@ jobs: | |
cmake .. | ||
cmake --build . -j4 | ||
cp _C_flare* ../flare/bffs/sgp | ||
cd ctests | ||
./tests | ||
- name: Install LAMMPS | ||
run: | | ||
|
@@ -92,8 +86,7 @@ jobs: | |
- name: Pip install | ||
run: | | ||
pip install -U codecov pytest pytest-cov pytest_mock Sphinx sphinx-rtd-theme breathe nbsphinx | ||
pip install -r requirements.txt | ||
pip install -v -C cmake.define.CMAKE_PREFIX_PATH=$CONDA_PREFIX .[docs,tests] | ||
- name: Patch ASE | ||
run: | | ||
|
@@ -124,11 +117,6 @@ jobs: | |
python tutorial.py | ||
rm Al* aluminum.txt aspirin.txt md17_aspirin.npz tutorial.ipynb tutorial.py | ||
- name: Install Sphinx and Breathe | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install python3-sphinx python3-sphinx-rtd-theme python3-breathe python3-nbsphinx | ||
- name: Run Doxygen | ||
uses: mattnotmitt/[email protected] | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
[build-system] | ||
requires = ["scikit-build-core", "pybind11"] | ||
build-backend = "scikit_build_core.build" | ||
|
||
[project] | ||
name = "mir-flare" | ||
version = "1.4.0" | ||
description = "Fast Learning of Atomistic Rare Events" | ||
readme = "README.md" | ||
requires-python = ">=3.7" | ||
authors = [ | ||
{ name = "Materials Intelligence Research", email = "[email protected]" }, | ||
] | ||
classifiers = [ | ||
"Development Status :: 4 - Beta", | ||
"License :: OSI Approved :: MIT License", | ||
"Topic :: Scientific/Engineering :: Artificial Intelligence", | ||
"Topic :: Scientific/Engineering :: Physics", | ||
] | ||
dependencies = [ | ||
"ase", | ||
"nptyping", | ||
"numba", | ||
"numpy >=1.18, <1.23", | ||
"pyyaml", | ||
"scipy", | ||
"wandb", | ||
] | ||
|
||
[project.scripts] | ||
flare-otf = "flare.scripts.otf_train:main" | ||
|
||
[project.urls] | ||
Homepage = "https://github.com/mir-group/flare" | ||
|
||
[project.optional-dependencies] | ||
tests = [ | ||
"pytest-mock", | ||
"pytest>=4.6", | ||
"IPython", | ||
] | ||
dev = [ | ||
"jupyter", | ||
"memory_profiler", | ||
] | ||
docs = [ | ||
"babel", | ||
"docutils==0.17.1", | ||
"nbconvert", | ||
"nbsphinx", | ||
"pygments==2.11.2", | ||
"codecov", | ||
"Sphinx", | ||
"sphinx-rtd-theme", | ||
"breathe" | ||
] | ||
|
||
[tool.scikit-build] | ||
wheel.packages = ["flare"] |
Oops, something went wrong.