Skip to content

Commit 837e5c6

Browse files
authored
NCDNTS-653 (#120)
* multiple runs * bump up requests-toolbelt dep version * bump up requests-toolbelt dep version in setup.py * fix all deps versions * run using multiple python versions * fix * fix some deps fails for other python version * multiple runs * cleanup && bump up sdk version
1 parent 80df8ab commit 837e5c6

File tree

6 files changed

+25
-23
lines changed

6 files changed

+25
-23
lines changed

.github/actions/test/action.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,23 +23,26 @@ inputs:
2323
description: 'Optional http headers'
2424
default: '{}'
2525

26+
python_version:
27+
required: false
28+
description: 'Python version to test with'
29+
default: '3.7'
30+
2631
runs:
2732
using: 'composite'
2833
steps:
2934
- uses: actions/checkout@v3
3035
with:
3136
repository: RelationalAI/rai-sdk-python
3237

33-
- name: Initialize Python 3.7
38+
- name: Initialize Python
3439
uses: actions/setup-python@v2
3540
with:
36-
python-version: 3.7
41+
python-version: ${{ matrix.python-version || inputs.python_version }}
3742

3843
- name: Install dependencies
3944
run: |
4045
python -m pip install --upgrade pip
41-
pwd
42-
ls
4346
pip install -r requirements.txt
4447
pip install -e ./
4548
shell: bash

.github/workflows/build.yaml

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,13 @@ on:
88
jobs:
99
build:
1010
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
python-version: [3.7, 3.8, 3.9]
14+
fail-fast: false
15+
1116
steps:
1217
- uses: actions/checkout@v3
13-
14-
- name: Initialize Python 3.7
15-
uses: actions/setup-python@v2
16-
with:
17-
python-version: 3.7
18-
19-
- name: Install dependencies
20-
run: |
21-
python -m pip install --upgrade pip
22-
pip install flake8
23-
24-
- name: flake8 linter
25-
run: flake8 .
26-
2718
- uses: ./.github/actions/test
2819
with:
2920
client_id: ${{ secrets.CLIENT_ID }}

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## v0.6.10
4+
5+
* Fix for `ImportError: cannot import name 'appengine' from 'urllib3.contrib'`
6+
* Run tests using multiple python versions `[3.7, 3.8, 3.9]`
7+
38
## v0.6.9
49

510
* Added `poll_with_specified_overhead`

railib/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
__version_info__ = (0, 6, 9)
15+
__version_info__ = (0, 6, 10)
1616
__version__ = ".".join(map(str, __version_info__))

requirements.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
grpcio==1.54.0
12
grpcio-tools==1.47.0
23
protobuf==3.20.2
34
pyarrow==6.0.1
4-
requests-toolbelt==0.9.1
5-
5+
requests==2.30.0
6+
requests-toolbelt==1.0.0
7+
urllib3==2.0.2

setup.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,13 @@
2929
"Programming Language :: Python :: 3",
3030
"Programming Language :: Python :: 3.7",
3131
"Programming Language :: Python :: 3.8",
32+
"Programming Language :: Python :: 3.9",
3233
],
3334
description="The RelationalAI Software Development Kit for Python",
3435
install_requires=[
3536
"ed25519==1.5",
36-
"pyarrow>=6.0.1",
37-
"requests-toolbelt==0.9.1",
37+
"pyarrow==6.0.1",
38+
"requests-toolbelt==1.0.0",
3839
"protobuf==3.20.2"],
3940
license="http://www.apache.org/licenses/LICENSE-2.0",
4041
long_description="Enables access to the RelationalAI REST APIs from Python",

0 commit comments

Comments
 (0)