Skip to content

Commit 64ddec1

Browse files
committedJul 14, 2020
Updated workflow files to not run pytest.
1 parent 8931d95 commit 64ddec1

File tree

5 files changed

+51
-4
lines changed

5 files changed

+51
-4
lines changed
 

‎.github/workflows/devito-book.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,6 @@ jobs:
4343
run: |
4444
pip install -e .
4545
pip install matplotlib
46-
- name: Tests in examples
47-
shell: bash -l {0}
48-
run: py.test --cov --cov-config=.coveragerc --cov-report=xml fdm-devito-notebooks/waves/
46+
# - name: Tests in examples
47+
# shell: bash -l {0}
48+
# run: py.test --cov --cov-config=.coveragerc --cov-report=xml fdm-devito-notebooks/

‎fdm-devito-notebooks/testFile.py ‎fdm-devito-notebooks/test_waves.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import devito
12
from devito import Grid
23

34
def gridTest():

‎requirements.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,5 @@ pytest-cov
1717
multidict
1818
anytree>=2.4.3
1919
pyrevolve>=2.1.3
20-
distributed<2.20
20+
distributed<2.20
21+
devito

‎setup.cfg

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[tool:pytest]
2+
python_files = test_*.py *_example.py example_*.py
3+
addopts = --durations=20 --maxfail=5

‎setup.py

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
import os
2+
from setuptools import setup, find_packages
3+
4+
with open('requirements.txt') as f:
5+
required = f.read().splitlines()
6+
7+
8+
reqs = []
9+
for ir in required:
10+
if ir[0:3] == 'git':
11+
name = ir.split('/')[-1]
12+
reqs += ['%s @ %s@master' % (name, ir)]
13+
else:
14+
reqs += [ir]
15+
16+
17+
# If interested in benchmarking devito, we need the `examples` too
18+
exclude = ['docs', 'tests']
19+
try:
20+
if not bool(int(os.environ.get('DEVITO_BENCHMARKS', 0))):
21+
exclude += ['examples']
22+
except (TypeError, ValueError):
23+
exclude += ['examples']
24+
25+
setup(name='devito',
26+
description="Finite Difference Tutorials using Devito.",
27+
long_description="""The Devito Book is a set of tutorials adapted from
28+
The Craft of Finite Difference Computing with Partial Differential Equations
29+
by Hans Petter Langtangen and Svein Linge. These tutorials use Devito,
30+
a new tool for performing optimised Finite Difference (FD) computation
31+
from high-level symbolic problem definitions. Devito performs automated code
32+
generation and Just-In-time (JIT) compilation based on symbolic
33+
equations defined in SymPy to create and execute highly
34+
optimised Finite Difference kernels on multiple computer
35+
platforms.""",
36+
url='http://www.devitoproject.org',
37+
author="Imperial College London",
38+
author_email='g.gorman@imperial.ac.uk',
39+
license='MIT',
40+
packages=find_packages(exclude=exclude),
41+
install_requires=reqs,
42+
test_suite='tests')

0 commit comments

Comments
 (0)
Please sign in to comment.