From f716ce99762b6f603ae1b2699921ad52d18ab589 Mon Sep 17 00:00:00 2001 From: pveigadecamargo Date: Tue, 4 Jun 2024 14:22:32 +1000 Subject: [PATCH 1/3] Adds support for Python 3.12 --- .github/workflows/python-package.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 04c1e73..fae7c0d 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -17,7 +17,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ['3.7', '3.8', '3.9', '3.10', '3.11'] + python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12'] steps: - uses: actions/checkout@v3 From 84857b0e36e992ead120be4f7f2235137c90be33 Mon Sep 17 00:00:00 2001 From: pveigadecamargo Date: Tue, 4 Jun 2024 14:37:44 +1000 Subject: [PATCH 2/3] addresses pkg_resources --- census/core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/census/core.py b/census/core.py index 0257468..5beeb4e 100644 --- a/census/core.py +++ b/census/core.py @@ -1,8 +1,8 @@ import warnings from functools import wraps, lru_cache +from importlib.metadata import version -import pkg_resources -__version__ = pkg_resources.require("census")[0].version +__version__ = version('census') ALL = '*' From 626da89f7418122d391145b039ef3b7b886a7128 Mon Sep 17 00:00:00 2001 From: pveigadecamargo Date: Tue, 4 Jun 2024 14:40:44 +1000 Subject: [PATCH 3/3] Removes support for Python 3.7 --- .github/workflows/python-package.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index fae7c0d..52744f8 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -17,7 +17,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12'] + python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] steps: - uses: actions/checkout@v3