From 86cd1c2e388970b34acd7c15a13e19bdd29994a6 Mon Sep 17 00:00:00 2001 From: "Li-Huai (Allan) Lin" Date: Thu, 28 Nov 2024 19:12:11 -0800 Subject: [PATCH] Support 3.13 & Restrict httpx version --- .github/workflows/CI.yml | 2 +- .gitignore | 1 + requirements.txt | 4 ++-- setup.py | 18 ++++++------------ 4 files changed, 10 insertions(+), 15 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index f24c995..5646b1a 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -16,7 +16,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, windows-latest] - python-version: ['3.10', '3.11', '3.12'] + python-version: ['3.10', '3.11', '3.12', '3.13'] steps: - uses: actions/checkout@v4 diff --git a/.gitignore b/.gitignore index b93208c..d2f9b5d 100644 --- a/.gitignore +++ b/.gitignore @@ -6,4 +6,5 @@ coverage.xml private_example.py /dist +/build *.egg-info \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index 8ed33b2..91fcb5e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -awsiotsdk==1.20.0 -httpx +awsiotsdk>=1.22.0 +httpx<0.28.0 paho-mqtt<=1.6.1 setuptools \ No newline at end of file diff --git a/setup.py b/setup.py index 3a12183..546ea16 100644 --- a/setup.py +++ b/setup.py @@ -5,18 +5,11 @@ with open("README.md", "r", encoding="utf-8") as f: long_description = f.read() -install_requires = [ - "awsiotsdk==1.20.0", - "httpx", - "paho-mqtt<=1.6.1", - "setuptools", -] -tests_require = [ - "pre-commit", - "pytest>=6.2", - "pytest-cov", - "pytest-rerunfailures", -] +with open("requirements.txt", "r", encoding="utf-8") as f: + install_requires = f.read().split("\n") + +with open("requirements_test.txt", "r", encoding="utf-8") as f: + tests_require = f.read().split("\n") if __name__ == "__main__": @@ -37,6 +30,7 @@ "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", ],