Skip to content

Commit 1a41831

Browse files
authored
Upgrade dependencies to up to python 3.12 (#146)
* update dependencies to support py3.12 * bump version * update version constraints to be more lenient to still allow py 3.7 and 3.8 support * relax pandas requirement / make conditional on support * add newly supported python versions to build matrix * quote 3.10 so it doesnt get collapsed into 3.1
1 parent 0a337ef commit 1a41831

File tree

4 files changed

+14
-9
lines changed

4 files changed

+14
-9
lines changed

.github/workflows/build.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
strategy:
1212
matrix:
13-
python-version: [3.7, 3.8, 3.9]
13+
python-version: [3.7, 3.8, 3.9, '3.10', 3.11, 3.12]
1414
fail-fast: false
1515

1616
steps:

railib/__init__.py

+1-1
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, 20)
15+
__version_info__ = (0, 7, 0)
1616
__version__ = ".".join(map(str, __version_info__))

requirements.txt

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
grpcio==1.54.0
2-
grpcio-tools==1.47.0
3-
protobuf==3.20.3
4-
pyarrow==10.0.1
5-
requests-toolbelt==1.0.0
1+
grpcio>=1.54.0,<=1.60.1
2+
grpcio-tools>=1.47.0,<=1.60.1
3+
protobuf>=3.20.3,<5.0.0
4+
pandas<3.0.0
5+
pyarrow>=10.0.0,<16.0.0
6+
requests-toolbelt==1.0.0

setup.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,16 @@
3030
"Programming Language :: Python :: 3.7",
3131
"Programming Language :: Python :: 3.8",
3232
"Programming Language :: Python :: 3.9",
33+
"Programming Language :: Python :: 3.10",
34+
"Programming Language :: Python :: 3.11",
35+
"Programming Language :: Python :: 3.12",
3336
],
3437
description="The RelationalAI Software Development Kit for Python",
3538
install_requires=[
36-
"pyarrow==10.0.1",
39+
"pandas>=2.0.0,<3.0.0;python_version>'3.8'",
40+
"pyarrow>=10.0.0,<16.0.0",
3741
"requests-toolbelt==1.0.0",
38-
"protobuf==3.20.3"],
42+
"protobuf>=3.20.3,<5.0.0"],
3943
license="http://www.apache.org/licenses/LICENSE-2.0",
4044
long_description="Enables access to the RelationalAI REST APIs from Python",
4145
long_description_content_type="text/markdown",

0 commit comments

Comments
 (0)