-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsystem_test.py
64 lines (45 loc) · 1.38 KB
/
system_test.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#!/usr/bin/env python
""" This is the system test for texasbbq.
It tests that the latest released version of Numba with the latest released
version of umap. If anything fails, it's probably due to a bug in texasbbq.
"""
from texasbbq import (main,
git_latest_tag,
CondaSource,
GitTarget,
)
class NumbaSource(CondaSource):
module = __name__
@property
def name(self):
return "numba"
@property
def conda_package(self):
return "numba"
class UmapTests(GitTarget):
@property
def name(self):
return "umap"
@property
def clone_url(self):
return "https://github.com/lmcinnes/umap"
@property
def git_ref(self):
return git_latest_tag(self.clone_url,
vprefix=False,
exclude_filter=lambda x: x.startswith("v"))
@property
def conda_dependencies(self):
return ["numpy pytest nose scikit-learn pynndescent scipy pandas bokeh "
"matplotlib datashader holoviews tensorflow scikit-image"]
@property
def pip_dependencies(self):
return []
@property
def install_command(self):
return "pip install -e ."
@property
def test_command(self):
return "pytest"
if __name__ == "__main__":
main(NumbaSource())