Skip to content
Open
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
21 changes: 21 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
on: [push, pull_request]

defaults:
run:
shell: bash

jobs:

test:
runs-on: ubuntu-18.04
strategy:
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]
fail-fast: false
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- run: sudo apt-get install -y --no-install-recommends libmlpack-dev
- run: pip install .
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ MALA
====

Training and evaluation scripts for MALA (https://arxiv.org/abs/1709.02974).

Depends on mlpack (`mlpack` on AUR, `libmlpack-dev` on debian-based).
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["setuptools", "cython", "numpy", "wheel"]
build-backend = "setuptools.build_meta"
3 changes: 3 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
numpy
cython
setuptools
tensorflow
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from setuptools import setup, Extension
from setuptools.command.build_ext import build_ext as _build_ext
import os
import builtins

include_dirs = [
os.path.join(os.path.dirname(os.path.abspath(__file__)), "mala"),
Expand All @@ -18,7 +19,7 @@ class build_ext(_build_ext):
def finalize_options(self):
_build_ext.finalize_options(self)
# Prevent numpy from thinking it is still in its setup process:
__builtins__.__NUMPY_SETUP__ = False
builtins.__NUMPY_SETUP__ = False
import numpy
self.include_dirs.append(numpy.get_include())

Expand Down