From b1bf726fd715cf41a848a477c18af3592324586d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juuso=20Str=C3=B6mberg?= Date: Mon, 27 Oct 2025 10:53:15 +0200 Subject: [PATCH 1/3] feat: support python 3.11 Downgrade the requires-python version so we can utilize the library in an AWS Glue environment, which is locked to python 3.11 version --- pyproject.toml | 58 +++++++++++++++++--------------------------------- 1 file changed, 20 insertions(+), 38 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index ba08b76..eb478c7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,28 +6,25 @@ build-backend = "pdm.backend" name = "funidata-utils" dynamic = ["version"] description = "A collection of utility packages for interacting with Funidata products" -requires-python = ">=3.12" +requires-python = ">=3.11" readme = "README.md" classifiers = [ - "Development Status :: 3 - Alpha", - "Programming Language :: Python :: 3 :: Only", - "Programming Language :: Python :: 3.12", - "Programming Language :: Python", - "Framework :: Pydantic", - "Framework :: Pydantic :: 2", - "Intended Audience :: Developers", - "Private :: Do Not Upload" -] -authors = [ - { name = "EssKayz" }, - { name = "xTooth" } + "Development Status :: 3 - Alpha", + "Programming Language :: Python :: 3 :: Only", + "Programming Language :: Python :: 3.12", + "Programming Language :: Python", + "Framework :: Pydantic", + "Framework :: Pydantic :: 2", + "Intended Audience :: Developers", + "Private :: Do Not Upload", ] +authors = [{ name = "EssKayz" }, { name = "xTooth" }] dependencies = [ - "httpx>=0.28.1, <1.0.0", - "requests>=2.32.3, <3.0.0", - "pydantic-settings>=2.7.1, <3.0.0", - "pydantic>=2.10.6, <3.0.0", - "simplejson>=3.20.1, <4.0.0" + "httpx>=0.28.1, <1.0.0", + "requests>=2.32.3, <3.0.0", + "pydantic-settings>=2.7.1, <3.0.0", + "pydantic>=2.10.6, <3.0.0", + "simplejson>=3.20.1, <4.0.0", ] [project.urls] @@ -35,41 +32,26 @@ Repository = "https://github.com/funidata/funidata-python-utils.git" [project.optional-dependencies] -sql = [ - "SQLAlchemy>=2.0.38, <3.0.0", - "psycopg2-binary>=2.9.10, <3.0.0", -] +sql = ["SQLAlchemy>=2.0.38, <3.0.0", "psycopg2-binary>=2.9.10, <3.0.0"] -all = [ - "SQLAlchemy>=2.0.38, <3.0.0", - "psycopg2-binary>=2.9.10, <3.0.0", -] +all = ["SQLAlchemy>=2.0.38, <3.0.0", "psycopg2-binary>=2.9.10, <3.0.0"] [tool.pdm] version = { source = "scm", fallback_version = "0.0.0" } [tool.pdm.build] -source-includes = [ - "tests/", - "requirements*.txt", -] +source-includes = ["tests/", "requirements*.txt"] [tool.pytest.ini_options] -addopts = [ - "--strict-config", - "--strict-markers", -] +addopts = ["--strict-config", "--strict-markers"] xfail_strict = true junit_family = "xunit2" [tool.coverage.run] parallel = true data_file = "coverage/.coverage" -source = [ - "tests", - "funidata_utils" -] +source = ["tests", "funidata_utils"] context = '${CONTEXT}' dynamic_context = "test_function" From 686eb657cf2f5aba97540f61e4cbb533c4668f32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juuso=20Str=C3=B6mberg?= Date: Mon, 27 Oct 2025 10:55:56 +0200 Subject: [PATCH 2/3] fix: update version in classifier --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index eb478c7..1000ffa 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -11,7 +11,7 @@ readme = "README.md" classifiers = [ "Development Status :: 3 - Alpha", "Programming Language :: Python :: 3 :: Only", - "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.11", "Programming Language :: Python", "Framework :: Pydantic", "Framework :: Pydantic :: 2", From e2207cecb1f407e78341d7c2855235453f1de8ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juuso=20Str=C3=B6mberg?= Date: Mon, 27 Oct 2025 12:13:50 +0200 Subject: [PATCH 3/3] fix: downgrade requests lower limit to 2.32.2 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 1000ffa..d39d186 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -21,7 +21,7 @@ classifiers = [ authors = [{ name = "EssKayz" }, { name = "xTooth" }] dependencies = [ "httpx>=0.28.1, <1.0.0", - "requests>=2.32.3, <3.0.0", + "requests>=2.32.2, <3.0.0", "pydantic-settings>=2.7.1, <3.0.0", "pydantic>=2.10.6, <3.0.0", "simplejson>=3.20.1, <4.0.0",