From e1d8d60d2d1bc12bf5433de8130dd81c08375747 Mon Sep 17 00:00:00 2001 From: "lucas.kim" Date: Tue, 3 Sep 2019 17:17:40 +0900 Subject: [PATCH] correct sdist MANIFEST, unittest for parallel --- MANIFEST.in | 6 +++++- docs/conf.py | 2 +- docs/intro.rst | 4 ++-- tests/parallel/test_algo.py | 3 ++- 4 files changed, 10 insertions(+), 5 deletions(-) diff --git a/MANIFEST.in b/MANIFEST.in index e3344c8..204801f 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -2,9 +2,13 @@ include cuda_setup.py include CMakeLists.txt include requirements.txt include tests/res/*.json -recursive-exclude buffalo/ *.cpp +recursive-exclude buffalo/ *.cpp recursive-include buffalo/ *.pyx recursive-include buffalo/ *.hpp +recursive-include include/ *.hpp +recursive-include include/ *.cuh +recursive-include lib/ *.cc +recursive-include lib/ *.cu recursive-include 3rd/n2/ * recursive-include 3rd/json11/ * diff --git a/docs/conf.py b/docs/conf.py index 9ee1512..47ec9e0 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -31,7 +31,7 @@ master_doc = 'index' # The full version, including alpha/beta/rc tags -release = '1.0.5' +release = '1.0.6' # -- General configuration --------------------------------------------------- diff --git a/docs/intro.rst b/docs/intro.rst index 1f1c938..524adae 100644 --- a/docs/intro.rst +++ b/docs/intro.rst @@ -20,7 +20,7 @@ Plus, Buffalo provides a variety of convenient features for research and product Installation ------------ -Type `pip install buffalo`. +Type `sudo pip install buffalo`. Requirements @@ -39,7 +39,7 @@ From source code $> cd buffalo $> git submodule update --init $> pip install -r requirements.txt - $> python setup.py install + $> sudo python setup.py install # need root permission Basic Usage diff --git a/tests/parallel/test_algo.py b/tests/parallel/test_algo.py index 3f7d199..6520765 100644 --- a/tests/parallel/test_algo.py +++ b/tests/parallel/test_algo.py @@ -49,6 +49,7 @@ def get_ml100k_mm_opt(self): data_opt.input.main = self.ml_100k + 'main' data_opt.input.uid = self.ml_100k + 'uid' data_opt.input.iid = self.ml_100k + 'iid' + data_opt.data.use_cache = True data_opt.data.path = './ml100k.h5py' return data_opt @@ -144,7 +145,7 @@ def test04_text8_most_similar(self): self.assertTrue(naive_elapsed > par_elapsed * 3.0) - def test05_topk(self): + def test05_topk_MT(self): set_log_level(2) data_opt = self.get_ml100k_mm_opt() opt = ALSOption().get_default_option()