Skip to content
Merged
Show file tree
Hide file tree
Changes from 29 commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
6c4ada5
first pyproject version
authierj Jan 21, 2026
02652ed
updated to work with pip install
authierj Jan 21, 2026
28f08a4
changed dev-all structure
authierj Jan 21, 2026
cbb9721
updated develop and merge yaml files
authierj Jan 21, 2026
114f5b6
locked flag is back
authierj Jan 22, 2026
c9ed4f4
removed locked, it was not the issue, added cap on pandas 300
authierj Jan 22, 2026
d1eaa4a
changed the branches that trigger actions
authierj Jan 22, 2026
65dc249
return to py39, not the focus right now
authierj Jan 22, 2026
ffebbaf
use uv cache, removed setup and manifest.in
authierj Jan 22, 2026
7443ff0
changed the built packages names
authierj Jan 22, 2026
069a6c7
updated install instructions
authierj Jan 22, 2026
fb40996
simplified release
authierj Jan 22, 2026
11cb9d0
added an explicit choice of possible releases
authierj Jan 22, 2026
0521cd8
changed docker file and conda. test tbd
authierj Jan 22, 2026
d459b4d
correction in conda recipe
authierj Jan 22, 2026
39f7c77
updated descriptions
authierj Jan 26, 2026
c5cb604
u8darts package, temporary, Dennis doesn't like it
authierj Jan 26, 2026
585a6db
deleted u8darts folder, moved everything to pyproject
authierj Jan 26, 2026
8d87237
just storing
authierj Jan 27, 2026
89aa74f
revert to basic dependencies
authierj Jan 28, 2026
72beac2
removed formatting
authierj Jan 28, 2026
4b2bd34
solved some of dustin's comments
authierj Jan 28, 2026
cb98d2c
removed unused gitgnore
authierj Jan 29, 2026
84ebe96
added a u8 readme and updated it in pyproject_u8darts
authierj Jan 29, 2026
e5514f2
Update Dockerfile
authierj Jan 29, 2026
aee6fe6
Update Dockerfile
authierj Jan 29, 2026
2ff195a
Merge remote-tracking branch 'upstream/master' into uv
authierj Jan 29, 2026
9068ae1
added plotly and version cap on pandas
authierj Jan 29, 2026
e74e8b4
lock updated
authierj Jan 29, 2026
4add7d4
installation with uv added
authierj Jan 30, 2026
83bc691
followed dustin idea
authierj Jan 30, 2026
32f39eb
Fix UV Python version selection in workflows
authierj Jan 30, 2026
87b8420
Merge branch 'master' into uv
authierj Jan 30, 2026
5cb8be6
Update CONTRIBUTING.md
authierj Feb 2, 2026
9123a3b
Update pyproject.toml
authierj Feb 2, 2026
e58c846
Update pyproject.toml
authierj Feb 2, 2026
aa3d1b1
Update .github/workflows/release.yml
authierj Feb 2, 2026
faa09ec
dennis comment part1
authierj Feb 2, 2026
21a79c2
dennis review, part2
authierj Feb 3, 2026
742d4bd
removed conda recipe
authierj Feb 4, 2026
7ea4390
moved torch cpu from a flavor to a dependency group
authierj Feb 4, 2026
2ad3266
Merge branch 'master' into uv
dennisbader Feb 6, 2026
dac4bc5
minor updates
dennisbader Feb 6, 2026
4d89685
update changelog
dennisbader Feb 6, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions .bumpversion.cfg

This file was deleted.

125 changes: 54 additions & 71 deletions .github/workflows/develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
pull_request:
branches:
- master

jobs:
lint:
runs-on: ubuntu-latest
Expand All @@ -17,15 +16,26 @@ jobs:
with:
python-version: '3.11'

- name: "Install uv"
uses: astral-sh/setup-uv@v7
with:
version: "0.9.26"
enable-cache: true

- name: "Install Dev Dependencies"
run: |
python -m pip install --upgrade pip
pip install -r requirements/dev.txt
# Testing against latest compatible versions
uv sync --group dev

- name: "Lint"
run: |
pre-commit run --all-files
uv run pre-commit run --all-files

- name: "Optimize cache for CI"
run: |
# Remove pre-built wheels but keep source-built wheels
# This reduces cache size while retaining expensive-to-rebuild packages
uv cache prune --ci

tests:
runs-on: ${{ matrix.os }}
Expand All @@ -44,40 +54,27 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

# use `uv` to retrieve the latest dependency versions
- name: "Compile Dependency Versions"
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
uv pip compile requirements/dev-all.txt requirements/optional.txt > requirements-latest.txt

- name: "Cache python environment"
uses: actions/cache@v4
id: pythonenv-cache
- name: "Install uv"
uses: astral-sh/setup-uv@v7
with:
path: ${{ env.pythonLocation }}
key: ${{ runner.os }}-${{ env.pythonLocation }}-${{ hashFiles('requirements/*.txt', 'requirements-latest.txt') }}

- name: "Setup Pip"
run: |
python -m pip install --upgrade pip
version: "0.9.26"
enable-cache: true

- name: "Install Dependencies"
run: |
# install latest dependencies (potentially updating cached dependencies)
pip install -U -r requirements/torch-cpu.txt && pip install -U -r requirements/dev-all.txt -r requirements/optional.txt
# Testing against latest compatible versions
# dev-all group includes everything: dev, optional, release, torch, notorch
# --extra torch-cpu uses CPU-only PyTorch from the configured index
uv sync --group dev-all --extra torch-cpu

- name: "Install libomp (for LightGBM)"
run: |
chmod +x ./.github/scripts/libomp-${{ runner.os }}.sh
./.github/scripts/libomp-${{ runner.os }}.sh

- name: "Install Darts Locally"
run: |
pip install . --no-deps

- name: "Run tests"
run: |
pytest --durations=50 --cov=darts --cov-config=.coveragerc --cov-report=xml darts/tests
uv run pytest --durations=50 --cov=darts --cov-config=.coveragerc --cov-report=xml darts/tests

- name: "Codecov upload"
if: ${{ matrix.flavour == 'all' }}
Expand All @@ -86,6 +83,12 @@ jobs:
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}

- name: "Optimize cache for CI"
run: |
# Remove pre-built wheels but keep source-built wheels
# This reduces cache size while retaining expensive-to-rebuild packages
uv cache prune --ci

docs:
runs-on: ubuntu-latest
steps:
Expand All @@ -97,45 +100,35 @@ jobs:
with:
python-version: '3.11'

# use `uv` to retrieve the latest dependency versions
- name: "Compile Dependency Versions"
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
uv pip compile requirements/dev-all.txt requirements/optional.txt > requirements-latest.txt

# only restore cache but do not upload
- name: "Restore cached python environment"
uses: actions/cache/restore@v4
id: pythonenv-cache
- name: "Install uv"
uses: astral-sh/setup-uv@v7
with:
path: ${{ env.pythonLocation }}
key: ${{ runner.os }}-${{ env.pythonLocation }}-${{ hashFiles('requirements/*.txt', 'requirements-latest.txt') }}
version: "0.9.26"
enable-cache: true

- name: "Install pandoc"
run: |
sudo apt-get install -y pandoc

- name: "Setup Pip"
run: |
python -m pip install --upgrade pip

- name: "Install Dependencies"
run: |
# install latest dependencies (potentially updating cached dependencies)
pip install -U -r requirements/torch-cpu.txt && pip install -U -r requirements/dev-all.txt -r requirements/optional.txt
# Testing against latest compatible versions
uv sync --group dev-all --extra torch-cpu

- name: "Install libomp (for LightGBM)"
run: |
chmod +x ./.github/scripts/libomp-${{ runner.os }}.sh
./.github/scripts/libomp-${{ runner.os }}.sh

- name: "Install Darts Locally"
- name: "Build docs"
run: |
pip install . --no-deps
uv run make --directory ./docs build-all-docs

- name: "Build docs"
- name: "Optimize cache for CI"
run: |
make --directory ./docs build-all-docs
# Remove pre-built wheels but keep source-built wheels
# This reduces cache size while retaining expensive-to-rebuild packages
uv cache prune --ci

check-examples:
runs-on: ubuntu-latest
Expand All @@ -151,39 +144,29 @@ jobs:
with:
python-version: '3.11'

# use `uv` to retrieve the latest dependency versions
- name: "Compile Dependency Versions"
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
uv pip compile requirements/dev-all.txt requirements/optional.txt > requirements-latest.txt

# only restore cache but do not upload
- name: "Restore cached python environment"
uses: actions/cache/restore@v4
id: pythonenv-cache
- name: "Install uv"
uses: astral-sh/setup-uv@v7
with:
path: ${{ env.pythonLocation }}
key: ${{ runner.os }}-${{ env.pythonLocation }}-${{ hashFiles('requirements/*.txt', 'requirements-latest.txt') }}

- name: "Setup Pip"
run: |
python -m pip install --upgrade pip
version: "0.9.26"
enable-cache: true

- name: "Install Dependencies"
run: |
# install latest dependencies (potentially updating cached dependencies)
pip install -U -r requirements/torch-cpu.txt && pip install -U -r requirements/dev-all.txt -r requirements/optional.txt
# Testing against latest compatible versions
uv sync --group dev-all --extra torch-cpu

- name: "Install libomp (for LightGBM)"
run: |
chmod +x ./.github/scripts/libomp-${{ runner.os }}.sh
./.github/scripts/libomp-${{ runner.os }}.sh

- name: "Install Darts Locally"
run: |
pip install . --no-deps

- name: "Run example ${{matrix.example-name}}"
working-directory: ./examples
run: |
papermill ${{matrix.example-name}} ${{matrix.example-name}}
uv run papermill ${{matrix.example-name}} ${{matrix.example-name}}

- name: "Optimize cache for CI"
run: |
# Remove pre-built wheels but keep source-built wheels
# This reduces cache size while retaining expensive-to-rebuild packages
uv cache prune --ci
34 changes: 12 additions & 22 deletions .github/workflows/doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,45 +15,35 @@ jobs:
with:
python-version: '3.11'

# use `uv` to retrieve the latest dependency versions
- name: "Compile Dependency Versions"
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
uv pip compile requirements/dev-all.txt > requirements-latest.txt

# only restore cache but do not upload
- name: "Restore cached python environment"
uses: actions/cache/restore@v4
id: pythonenv-cache
- name: "Install uv"
uses: astral-sh/setup-uv@v7
with:
path: ${{ env.pythonLocation }}
key: ${{ runner.os }}-${{ env.pythonLocation }}-${{ hashFiles('requirements/*.txt', 'requirements-latest.txt') }}
version: "0.9.26"
enable-cache: true

- name: "Install pandoc"
run: |
sudo apt-get install -y pandoc

- name: "Setup Pip"
run: |
python -m pip install --upgrade pip

- name: "Install Dependencies"
run: |
# install latest dependencies (potentially updating cached dependencies)
pip install -U -r requirements/torch-cpu.txt && pip install -U -r requirements/dev-all.txt
# Testing against latest compatible versions
uv sync --group dev-all --extra torch-cpu

- name: "Install libomp (for LightGBM)"
run: |
chmod +x ./.github/scripts/libomp-${{ runner.os }}.sh
./.github/scripts/libomp-${{ runner.os }}.sh

- name: "Install Darts Locally"
- name: "Build docs"
run: |
pip install . --no-deps
uv run make --directory ./docs build-all-docs

- name: "Build docs"
- name: "Optimize cache for CI"
run: |
make --directory ./docs build-all-docs
# Remove pre-built wheels but keep source-built wheels
# This reduces cache size while retaining expensive-to-rebuild packages
uv cache prune --ci

- name: "Publish documentation to gh-pages"
uses: s0/git-publish-subdir-action@v2.2.0
Expand Down
Loading