From 7d6a8692934340e97f0a9e22457db1ae1a0e78ac Mon Sep 17 00:00:00 2001 From: Abhishek Singh Date: Thu, 31 Dec 2020 13:00:33 -0800 Subject: [PATCH] Testing for Windows OS --- .travis.yml | 18 ++++++++++++------ README.md | 6 ++++-- 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index 80fd7f5..a46c4c7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,12 +11,18 @@ matrix: python: 3.9 - os: linux python: pypy3.6-7.1.1 - - os: linux - python: pypy3.6-7.2.0 - - os: linux - python: pypy3.6-7.3.3 - - os: linux - python: pypy3.7-7.3.3 + - os: windows # Windows 10.0.17134 N/A Build 17134 + language: shell # 'language: python' is an error on Travis CI Windows + before_install: + - choco install python --version 3.8.0 + - python -m pip install --upgrade pip + env: PATH=/c/Python38:/c/Python38/Scripts:$PATH + - os: windows # Windows 10.0.17134 N/A Build 17134 + language: shell # 'language: python' is an error on Travis CI Windows + before_install: + - choco install python --version 3.9.0 + - python -m pip install --upgrade pip + env: PATH=/c/Python39:/c/Python39/Scripts:$PATH install: - pip install --upgrade pip - pip install pytest coverage coveralls diff --git a/README.md b/README.md index 745afc0..a214f29 100644 --- a/README.md +++ b/README.md @@ -131,7 +131,9 @@ purchases = [('2006-03-28', 'BUY', 'IBM', 1000, 45.00), ('2006-04-05', 'BUY', 'MSFT', 1000, 72.00), ('2006-04-06', 'SELL', 'XOM', 500, 53.00)] -result = client.execute("INSERT INTO stocks VALUES (?,?,?,?,?)", *purchases, execute_many=True) +result = client.execute("INSERT INTO stocks VALUES (?,?,?,?,?)", + *purchases, + execute_many=True) pprint(result) ``` @@ -189,7 +191,7 @@ OUTPUT 'lastrowid': 27} ``` -Select the rows inserted using the above sql_script +Select the rows inserted using the above SQL script ```python result = client.execute("SELECT * FROM users")