Skip to content

Commit d1d4bbb

Browse files
bumped min python version to 3.10 (#2913)
* bumped min python version to 3.10 * changelog update * update docker imaged and others --------- Co-authored-by: dennisbader <[email protected]>
1 parent 8523628 commit d1d4bbb

File tree

13 files changed

+37
-36
lines changed

13 files changed

+37
-36
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ Steps to reproduce the behavior, preferably code snippet.
1717
A clear and concise description of what you expected to happen.
1818

1919
**System (please complete the following information):**
20-
- Python version: [e.g. 3.10]
21-
- darts version [e.g. 0.31.0]
20+
- Python version: [e.g. 3.11]
21+
- darts version [e.g. 0.38.0]
2222

2323
**Additional context**
2424
Add any other context about the problem here.

.github/workflows/develop.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ jobs:
1212
- name: "Clone repository"
1313
uses: actions/checkout@v4
1414

15-
- name: "Set up Python 3.10"
15+
- name: "Set up Python 3.11"
1616
uses: actions/setup-python@v5
1717
with:
18-
python-version: '3.10'
18+
python-version: '3.11'
1919

2020
- name: "Install Dev Dependencies"
2121
run: |
@@ -32,7 +32,7 @@ jobs:
3232
strategy:
3333
matrix:
3434
os: [macos-14, ubuntu-latest]
35-
python-version: ['3.10']
35+
python-version: ['3.11']
3636
flavour: ['all']
3737

3838
steps:
@@ -92,10 +92,10 @@ jobs:
9292
- name: "Clone repository"
9393
uses: actions/checkout@v4
9494

95-
- name: "Set up Python 3.10"
95+
- name: "Set up Python 3.11"
9696
uses: actions/setup-python@v5
9797
with:
98-
python-version: '3.10'
98+
python-version: '3.11'
9999

100100
# use `uv` to retrieve the latest dependency versions
101101
- name: "Compile Dependency Versions"
@@ -146,10 +146,10 @@ jobs:
146146
- name: "Clone repository"
147147
uses: actions/checkout@v4
148148

149-
- name: "Set up Python 3.10"
149+
- name: "Set up Python 3.11"
150150
uses: actions/setup-python@v5
151151
with:
152-
python-version: '3.10'
152+
python-version: '3.11'
153153

154154
# use `uv` to retrieve the latest dependency versions
155155
- name: "Compile Dependency Versions"

.github/workflows/doc.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ jobs:
1010
- name: "Clone repository"
1111
uses: actions/checkout@v4
1212

13-
- name: "Set up Python 3.10"
13+
- name: "Set up Python 3.11"
1414
uses: actions/setup-python@v5
1515
with:
16-
python-version: '3.10'
16+
python-version: '3.11'
1717

1818
# use `uv` to retrieve the latest dependency versions
1919
- name: "Compile Dependency Versions"

.github/workflows/merge.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ jobs:
1212
- name: "Clone repository"
1313
uses: actions/checkout@v4
1414

15-
- name: "Set up Python 3.11"
15+
- name: "Set up Python 3.12"
1616
uses: actions/setup-python@v5
1717
with:
18-
python-version: '3.11'
18+
python-version: '3.12'
1919

2020
- name: "Install Dev Dependencies"
2121
run: |
@@ -31,7 +31,7 @@ jobs:
3131
strategy:
3232
matrix:
3333
os: [macos-14, ubuntu-latest]
34-
python-version: ['3.9', '3.11']
34+
python-version: ['3.10', '3.12']
3535
flavour: ['core', 'torch', 'all']
3636

3737
steps:
@@ -90,10 +90,10 @@ jobs:
9090
- name: "Clone repository"
9191
uses: actions/checkout@v4
9292

93-
- name: "Set up Python 3.10"
93+
- name: "Set up Python 3.11"
9494
uses: actions/setup-python@v5
9595
with:
96-
python-version: '3.10'
96+
python-version: '3.11'
9797

9898
# use `uv` to retrieve the latest dependency versions
9999
- name: "Compile Dependency Versions"
@@ -138,10 +138,10 @@ jobs:
138138
- name: "Clone repository"
139139
uses: actions/checkout@v4
140140

141-
- name: "Set up Python 3.10"
141+
- name: "Set up Python 3.11"
142142
uses: actions/setup-python@v5
143143
with:
144-
python-version: '3.10'
144+
python-version: '3.11'
145145

146146
# use `uv` to retrieve the latest dependency versions
147147
- name: "Compile Dependency Versions"

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ jobs:
1717
token: ${{ secrets.RELEASE_WORKFLOW_TOKEN_NEW_FINE_GRAINED }}
1818
fetch-depth: '1'
1919

20-
- name: "2. Set up Python 3.10"
20+
- name: "2. Set up Python 3.11"
2121
uses: actions/setup-python@v5
2222
with:
23-
python-version: '3.10'
23+
python-version: '3.11'
2424

2525
- name: "Setup Pip"
2626
run: |
@@ -108,10 +108,10 @@ jobs:
108108
- name: "Clone repository"
109109
uses: actions/checkout@v4
110110

111-
- name: "Set up Python 3.10"
111+
- name: "Set up Python 3.11"
112112
uses: actions/setup-python@v5
113113
with:
114-
python-version: '3.10'
114+
python-version: '3.11'
115115

116116
# use `uv` to retrieve the latest dependency versions
117117
- name: "Compile Dependency Versions"

.github/workflows/update-cache.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
matrix:
1414
os: [macos-14, ubuntu-latest]
15-
python-version: ['3.10']
15+
python-version: ['3.11']
1616
flavour: ['all']
1717

1818
steps:

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,10 @@ but cannot always guarantee backwards compatibility. Changes that may **break co
3434

3535
**Dependencies**
3636

37-
- We raised the minimum pytorch-lightning version to `pytorch-lightning>=2.0.0`. [#2888](https://github.com/unit8co/darts/pull/2888) by [Dennis Bader](https://github.com/dennisbader).
37+
- 🔴 Removed support for Python 3.9. The new minimum Python version is 3.10. [#2913](https://github.com/unit8co/darts/pull/2913) by [Jakub Chłapek](https://github.com/jakubchlapek)
3838
- We made the Darts core and `torch` packages lighter by removing XGBoost and StatsForecast from the dependencies. All our forecasting models wrapping around these libraries will still be supported. To use them simply install the packages manually or via `u8darts[notorch]` and `u8darts[all]`. [#2906](https://github.com/unit8co/darts/pull/2906) by [Jakub Chłapek](https://github.com/jakubchlapek)
39+
- We raised the minimum pytorch-lightning version to `pytorch-lightning>=2.0.0`. [#2888](https://github.com/unit8co/darts/pull/2888) by [Dennis Bader](https://github.com/dennisbader).
40+
- Bumped the Python version of the Darts Docker image from 3.9 to 3.12. [#2913](https://github.com/unit8co/darts/pull/2913) by [Jakub Chłapek](https://github.com/jakubchlapek)
3941

4042
### For developers of the library:
4143

Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Use a specific Python version for better reproducibility
2-
FROM python:3.10
2+
FROM python:3.12
33

44
# Set work directory
55
WORKDIR /app
@@ -14,9 +14,8 @@ RUN pip install --no-cache-dir -r /app/requirements/dev-all.txt
1414
COPY setup.py pyproject.toml MANIFEST.in README.md /app/
1515
COPY darts/ /app/darts/
1616

17-
# Install darts in development mode
17+
# Install darts in development mode and clean up pip cache
1818
RUN pip install --no-cache-dir -e . && \
19-
# Clean up pip cache
2019
rm -rf ~/.cache/pip
2120

2221
# Copy examples

INSTALL.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ we also maintain the `u8darts` package, which provides the following alternate l
1717
* Install core + neural networks (PyTorch): `pip install "u8darts[torch]"` (equivalent to `pip install darts`)
1818

1919
## From conda-forge
20-
Create a conda environment (e.g., for Python 3.10):
20+
Create a conda environment (e.g., for Python 3.11):
2121
(after installing [conda](https://docs.conda.io/en/latest/miniconda.html)):
2222

23-
conda create --name <env-name> python=3.10
23+
conda create --name <env-name> python=3.11
2424

2525
Activate the environment
2626

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
---
66
[![PyPI version](https://badge.fury.io/py/u8darts.svg)](https://badge.fury.io/py/darts)
77
[![Conda Version](https://img.shields.io/conda/vn/conda-forge/u8darts-all.svg)](https://anaconda.org/conda-forge/u8darts-all)
8-
![Supported versions](https://img.shields.io/badge/python-3.9+-blue.svg)
8+
![Supported versions](https://img.shields.io/badge/python-3.10+-blue.svg)
99
[![Docker Image Version (latest by date)](https://img.shields.io/docker/v/unit8/darts?label=docker&sort=date)](https://hub.docker.com/r/unit8/darts)
1010
![GitHub Release Date](https://img.shields.io/github/release-date/unit8co/darts)
1111
![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/unit8co/darts/release.yml?branch=master)
@@ -50,7 +50,7 @@ fledged anomaly detection models.
5050

5151
## Quick Install
5252

53-
We recommend to first setup a clean Python environment for your project with Python 3.9+ using your favorite tool
53+
We recommend to first setup a clean Python environment for your project with Python 3.10+ using your favorite tool
5454
([conda](https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html "conda-env"),
5555
[venv](https://docs.python.org/3/library/venv.html), [virtualenv](https://virtualenv.pypa.io/en/latest/) with
5656
or without [virtualenvwrapper](https://virtualenvwrapper.readthedocs.io/en/latest/)).

0 commit comments

Comments
 (0)