Skip to content

Commit e226be8

Browse files
authored
Merge pull request #370 from DoubleML/sk-update-python-version
Update python version to 3.10
2 parents a97907d + 0b0db50 commit e226be8

File tree

4 files changed

+12
-14
lines changed

4 files changed

+12
-14
lines changed

.github/workflows/deploy_pkg.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Install python
2020
uses: actions/setup-python@v5
2121
with:
22-
python-version: '3.9'
22+
python-version: '3.12'
2323

2424
- name: Install dependencies
2525
run: |

.github/workflows/pytest.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,8 @@ jobs:
2222
strategy:
2323
matrix:
2424
config:
25-
- {os: 'ubuntu-latest', python-version: '3.9'}
26-
- {os: 'windows-latest', python-version: '3.9'}
27-
- {os: 'macOS-latest', python-version: '3.9'}
25+
- {os: 'windows-latest', python-version: '3.10'}
26+
- {os: 'macOS-latest', python-version: '3.10'}
2827
- {os: 'ubuntu-latest', python-version: '3.10'}
2928
- {os: 'ubuntu-latest', python-version: '3.11'}
3029
- {os: 'ubuntu-latest', python-version: '3.12'}
@@ -57,23 +56,23 @@ jobs:
5756
- name: Test with pytest
5857
if: |
5958
matrix.config.os != 'ubuntu-latest' ||
60-
matrix.config.python-version != '3.9'
59+
matrix.config.python-version != '3.12'
6160
run: |
6261
pytest -m ci
6362
pytest -m ci_rdd
6463
6564
- name: Test with pytest and coverage
6665
if: |
6766
matrix.config.os == 'ubuntu-latest' &&
68-
matrix.config.python-version == '3.9'
67+
matrix.config.python-version == '3.12'
6968
run: |
7069
pip install pytest-cov
7170
pytest --cov=./ --cov-report=xml --cov-report=html
7271
7372
- name: Archive code coverage results
7473
if: |
7574
matrix.config.os == 'ubuntu-latest' &&
76-
matrix.config.python-version == '3.9'
75+
matrix.config.python-version == '3.12'
7776
uses: actions/upload-artifact@v4
7877
with:
7978
name: code-coverage-report
@@ -85,7 +84,7 @@ jobs:
8584
- name: Upload coverage to Codecov
8685
if: |
8786
matrix.config.os == 'ubuntu-latest' &&
88-
matrix.config.python-version == '3.9'
87+
matrix.config.python-version == '3.12'
8988
uses: codecov/codecov-action@v5
9089
with:
9190
fail_ci_if_error: false
@@ -96,7 +95,7 @@ jobs:
9695
- name: Upload coverage to codacy
9796
if: |
9897
matrix.config.os == 'ubuntu-latest' &&
99-
matrix.config.python-version == '3.9'
98+
matrix.config.python-version == '3.12'
10099
continue-on-error: true
101100
uses: codacy/codacy-coverage-reporter-action@v1
102101
with:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
[![Conda Version](https://img.shields.io/conda/vn/conda-forge/doubleml.svg)](https://anaconda.org/conda-forge/doubleml)
66
[![codecov](https://codecov.io/gh/DoubleML/doubleml-for-py/branch/main/graph/badge.svg?token=0BjlFPgdGk)](https://codecov.io/gh/DoubleML/doubleml-for-py)
77
[![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)
8-
[![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/)
8+
[![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/)
99

1010
The Python package **DoubleML** provides an implementation of the double / debiased machine learning framework of
1111
[Chernozhukov et al. (2018)](https://doi.org/10.1111/ectj.12097).

pyproject.toml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ authors = [
1313
maintainers = [
1414
{name = "Sven Klaassen", email = "sven.klaassen@uni-hamburg.de"}
1515
]
16-
requires-python = ">=3.9"
16+
requires-python = ">=3.10"
1717
dependencies = [
1818
"joblib>=1.2.0",
1919
"numpy>=2.0.0",
@@ -27,7 +27,6 @@ dependencies = [
2727
]
2828
classifiers = [
2929
"Programming Language :: Python :: 3",
30-
"Programming Language :: Python :: 3.9",
3130
"Programming Language :: Python :: 3.10",
3231
"Programming Language :: Python :: 3.11",
3332
"Programming Language :: Python :: 3.12",
@@ -85,7 +84,7 @@ doctest_optionflags = [
8584

8685
[tool.black]
8786
line-length = 127
88-
target-version = ['py39', 'py310', 'py311', 'py312', 'py313']
87+
target-version = ['py310', 'py311', 'py312', 'py313']
8988
preview = true
9089
exclude = '''
9190
/(
@@ -102,7 +101,7 @@ exclude = '''
102101
[tool.ruff]
103102
# max line length for black
104103
line-length = 127
105-
target-version = "py39"
104+
target-version = "py312"
106105

107106

108107
[tool.ruff.lint]

0 commit comments

Comments
 (0)