From 26ca6c495b005f701cdf6c766ecdf470f4b2dc17 Mon Sep 17 00:00:00 2001 From: Tanay Soni Date: Wed, 27 Nov 2019 18:07:08 +0100 Subject: [PATCH 1/5] Add __init__ files --- haystack/api/__init__.py | 0 haystack/reader/__init__.py | 0 2 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 haystack/api/__init__.py create mode 100644 haystack/reader/__init__.py diff --git a/haystack/api/__init__.py b/haystack/api/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/haystack/reader/__init__.py b/haystack/reader/__init__.py new file mode 100644 index 000000000..e69de29bb From 962fb8ffe42cf938e521660b5d7e767538bd6e2a Mon Sep 17 00:00:00 2001 From: Tanay Soni Date: Wed, 27 Nov 2019 18:13:40 +0100 Subject: [PATCH 2/5] Update version --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 1e7e59a1c..afb5db9aa 100644 --- a/setup.py +++ b/setup.py @@ -14,7 +14,7 @@ parsed_requirements = [ setup( name="farm-haystack", - version="0.1.2", + version="0.1.3", author="Malte Pietsch, Timo Moeller, Branden Chan, Tanay Soni", author_email="malte.pietsch@deepset.ai", description="Neural Question Answering at Scale. Use modern transformer based models like BERT to find answers in large document collections", @@ -23,7 +23,7 @@ setup( keywords="QA Question-Answering Reader Retriever BERT roberta albert squad mrc transfer-learning language-model transformer", license="Apache", url="https://github.com/deepset-ai/haystack", - download_url="https://github.com/deepset-ai/haystack/archive/0.1.2.tar.gz", + download_url="https://github.com/deepset-ai/haystack/archive/0.1.3.tar.gz", packages=find_packages(exclude=["*.tests", "*.tests.*", "tests.*", "tests"]), install_requires=parsed_requirements, python_requires=">=3.6.0", From 9988633c7dcd0a0d69f3e3e9d6d9c6e673b5b240 Mon Sep 17 00:00:00 2001 From: Tanay Soni Date: Wed, 27 Nov 2019 18:33:58 +0100 Subject: [PATCH 3/5] Add TravisCI --- .travis.yml | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 000000000..c848addfa --- /dev/null +++ b/.travis.yml @@ -0,0 +1,9 @@ +language: python +sudo: false +cache: pip +python: + - "3.7" +install: + - "pip install -e ." +script: + - "cd test && pytest" \ No newline at end of file From 9bf6e645295c0a7ad42f5f797aa07e17a78400f9 Mon Sep 17 00:00:00 2001 From: Tanay Soni Date: Wed, 27 Nov 2019 18:47:59 +0100 Subject: [PATCH 4/5] Add TravisCI --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index c848addfa..90578ad3d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,4 +6,4 @@ python: install: - "pip install -e ." script: - - "cd test && pytest" \ No newline at end of file + - "cd test && pytest" From d2c77f307788899eb562d3cb6e42c69b968b9f2a Mon Sep 17 00:00:00 2001 From: Tanay Soni Date: Wed, 27 Nov 2019 19:34:10 +0100 Subject: [PATCH 5/5] Fix test --- test/test_db.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/test_db.py b/test/test_db.py index 6451554a5..24bbd5fcf 100644 --- a/test/test_db.py +++ b/test/test_db.py @@ -8,7 +8,6 @@ def test_db_write_read(): db.create_all() write_documents_to_db(document_dir="samples/docs") - documents = db.session.query(Document).all() + documents = db.session.query(Document).order_by(Document.text).all() assert len(documents) == 2 assert documents[0].text == 'A Doc specifically talking about haystack.\nHaystack can be used to scale QA models to large document collections.' - print(documents) \ No newline at end of file