From 3fe313e1fed41c75669a0cc99516f848eb539708 Mon Sep 17 00:00:00 2001 From: Abhishek Dasgupta Date: Wed, 13 Nov 2024 12:13:23 +0000 Subject: [PATCH] Enable Python 3.13 support with latest pint version --- .github/workflows/tests.yml | 6 +++--- README.md | 3 +-- pyproject.toml | 4 ++-- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index a018b9b..233cd40 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -22,11 +22,11 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.8", "3.9", "3.10", "3.11"] + python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] steps: - uses: actions/checkout@v4 - - name: Set up Python 3.10 + - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} @@ -43,5 +43,5 @@ jobs: run: | python3 -m pytest --cov - name: Upload coverage to Codecov - if: matrix.python-version == 3.8 + if: matrix.python-version == "3.10" uses: codecov/codecov-action@v3 diff --git a/README.md b/README.md index 69bae66..8912003 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,6 @@ # adtl – another data transformation language -[![Python 3.8+](https://img.shields.io/badge/python-3.8+-blue.svg)](https://www.python.org/downloads/) -[![Python 3.13](https://img.shields.io/badge/python-3.13-red.svg)](https://www.python.org/downloads/release/python-3130/) +[![Python 3.9+](https://img.shields.io/badge/python-3.9+-blue.svg)](https://www.python.org/downloads/) [![tests](https://github.com/globaldothealth/adtl/actions/workflows/tests.yml/badge.svg)](https://github.com/globaldothealth/adtl/actions/workflows/tests.yml) [![codecov](https://codecov.io/gh/globaldothealth/adtl/branch/main/graph/badge.svg?token=QTD7HRR3TO)](https://codecov.io/gh/globaldothealth/adtl) diff --git a/pyproject.toml b/pyproject.toml index e8dd880..033232b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -14,13 +14,13 @@ authors = [ {name = "Pip Liggins", email = "philippa.liggins@dtc.ox.ac.uk"} ] license = {file = "LICENSE"} -requires-python = ">=3.8, <3.13" # 3.13 not supported by pint, so temporary upper bound +requires-python = ">=3.9" readme = "README.md" classifiers = ["License :: OSI Approved :: MIT License"] dependencies = [ "backports.zoneinfo;python_version<'3.9'", "tomli>=2.0.0", - "pint>=0.20", + "pint>=0.24.4", "requests>=2.0.0", "fastjsonschema==2.16.*", "tqdm",