From 5fe525d8c63c5a875117b942e1fa23a563c6a5b3 Mon Sep 17 00:00:00 2001 From: SvenKlaassen Date: Tue, 18 Nov 2025 19:00:32 +0100 Subject: [PATCH 1/2] change to python>=3.10 --- README.md | 2 +- pyproject.toml | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index aadb136f..9d2ad2d9 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ [![Conda Version](https://img.shields.io/conda/vn/conda-forge/doubleml.svg)](https://anaconda.org/conda-forge/doubleml) [![codecov](https://codecov.io/gh/DoubleML/doubleml-for-py/branch/main/graph/badge.svg?token=0BjlFPgdGk)](https://codecov.io/gh/DoubleML/doubleml-for-py) [![Codacy Badge](https://app.codacy.com/project/badge/Grade/1c08ec7d782c451784293c996537de14)](https://www.codacy.com/gh/DoubleML/doubleml-for-py/dashboard?utm_source=github.com&utm_medium=referral&utm_content=DoubleML/doubleml-for-py&utm_campaign=Badge_Grade) -[![Python version](https://img.shields.io/badge/python-3.9%20%7C%203.10%20%7C%203.11%20%7C%203.12%20%7C%203.13-blue)](https://www.python.org/) +[![Python version](https://img.shields.io/badge/python-3.10%20%7C%203.11%20%7C%203.12%20%7C%203.13-blue)](https://www.python.org/) The Python package **DoubleML** provides an implementation of the double / debiased machine learning framework of [Chernozhukov et al. (2018)](https://doi.org/10.1111/ectj.12097). diff --git a/pyproject.toml b/pyproject.toml index 3b6460c4..2ada0ba8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -13,7 +13,7 @@ authors = [ maintainers = [ {name = "Sven Klaassen", email = "sven.klaassen@uni-hamburg.de"} ] -requires-python = ">=3.9" +requires-python = ">=3.10" dependencies = [ "joblib>=1.2.0", "numpy>=2.0.0", @@ -27,7 +27,6 @@ dependencies = [ ] classifiers = [ "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", @@ -85,7 +84,7 @@ doctest_optionflags = [ [tool.black] line-length = 127 -target-version = ['py39', 'py310', 'py311', 'py312', 'py313'] +target-version = ['py310', 'py311', 'py312', 'py313'] preview = true exclude = ''' /( @@ -102,7 +101,7 @@ exclude = ''' [tool.ruff] # max line length for black line-length = 127 -target-version = "py39" +target-version = "py312" [tool.ruff.lint] From 6f67ea966dc6b7ed6c1ee6de527046e17e8a7417 Mon Sep 17 00:00:00 2001 From: SvenKlaassen Date: Tue, 18 Nov 2025 19:00:39 +0100 Subject: [PATCH 2/2] update workflow and configs for python 3.12 --- .github/workflows/deploy_pkg.yml | 2 +- .github/workflows/pytest.yml | 15 +++++++-------- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/.github/workflows/deploy_pkg.yml b/.github/workflows/deploy_pkg.yml index 1ffc2d0b..4d8fb7fa 100644 --- a/.github/workflows/deploy_pkg.yml +++ b/.github/workflows/deploy_pkg.yml @@ -19,7 +19,7 @@ jobs: - name: Install python uses: actions/setup-python@v5 with: - python-version: '3.9' + python-version: '3.12' - name: Install dependencies run: | diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index c1831d23..2c77cac5 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -22,9 +22,8 @@ jobs: strategy: matrix: config: - - {os: 'ubuntu-latest', python-version: '3.9'} - - {os: 'windows-latest', python-version: '3.9'} - - {os: 'macOS-latest', python-version: '3.9'} + - {os: 'windows-latest', python-version: '3.10'} + - {os: 'macOS-latest', python-version: '3.10'} - {os: 'ubuntu-latest', python-version: '3.10'} - {os: 'ubuntu-latest', python-version: '3.11'} - {os: 'ubuntu-latest', python-version: '3.12'} @@ -57,7 +56,7 @@ jobs: - name: Test with pytest if: | matrix.config.os != 'ubuntu-latest' || - matrix.config.python-version != '3.9' + matrix.config.python-version != '3.12' run: | pytest -m ci pytest -m ci_rdd @@ -65,7 +64,7 @@ jobs: - name: Test with pytest and coverage if: | matrix.config.os == 'ubuntu-latest' && - matrix.config.python-version == '3.9' + matrix.config.python-version == '3.12' run: | pip install pytest-cov pytest --cov=./ --cov-report=xml --cov-report=html @@ -73,7 +72,7 @@ jobs: - name: Archive code coverage results if: | matrix.config.os == 'ubuntu-latest' && - matrix.config.python-version == '3.9' + matrix.config.python-version == '3.12' uses: actions/upload-artifact@v4 with: name: code-coverage-report @@ -85,7 +84,7 @@ jobs: - name: Upload coverage to Codecov if: | matrix.config.os == 'ubuntu-latest' && - matrix.config.python-version == '3.9' + matrix.config.python-version == '3.12' uses: codecov/codecov-action@v5 with: fail_ci_if_error: false @@ -96,7 +95,7 @@ jobs: - name: Upload coverage to codacy if: | matrix.config.os == 'ubuntu-latest' && - matrix.config.python-version == '3.9' + matrix.config.python-version == '3.12' continue-on-error: true uses: codacy/codacy-coverage-reporter-action@v1 with: