Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/workflows/spack.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: spack-ci

on:
pull_request:
push:
branches: [main]

jobs:
spack-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Checkout Spack
uses: actions/checkout@v4
with:
repository: spack/spack
path: spack-tool

- name: Set up Spack
run: |
. spack-tool/share/spack/setup-env.sh
spack compiler find
spack repo add $GITHUB_WORKSPACE/./spack
spack env create ci
spack env activate ci
spack add py-moocore
spack concretize -f
spack install --fail-fast
shell: bash
24 changes: 24 additions & 0 deletions spack/packages/py-moocore/package.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# ruff: noqa: F403, F405
from spack.package import *


class PyMoocore(PythonPackage):
"""Core Algorithms for Multi-Objective Optimization."""

homepage = "https://multi-objective.github.io/moocore/python/"
pypi = "moocore/moocore-0.2.0.tar.gz"

version(
"0.2.0",
sha256="3dc601f85f9a4743ed50ddd027dca30e3bb55c899916a092c2ece495b1b2de08",
)

depends_on("c", type="build")
depends_on("gmake@4.4:", type="build")

depends_on("python@3.10:", type=("build", "run"))
depends_on("py-setuptools@77.0.3:", type="build")
depends_on("py-wheel", type="build")
depends_on("py-cffi@1.16:", type=("build", "run"))
depends_on("py-numpy@1.24:", type=("build", "run"))
depends_on("py-platformdirs", type=("build", "run"))
2 changes: 2 additions & 0 deletions spack/repo.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
repo:
namespace: 'moocore'
Loading