Skip to content

Commit

Permalink
Add support for lightgbm 4.2 (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelzw authored Dec 22, 2023
1 parent 389a0f5 commit 12c30be
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 9 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,10 @@ jobs:
with:
name: artifact
path: dist/*
- name: Make sure version in pyproject.toml and pixi.toml are in sync
run: |
[ "$(yq '.project.version' pixi.toml)" = "$(yq '.project.version' pyproject.toml)" ]
- uses: Quantco/ui-actions/version-metadata@v1
id: version-metadata
with:
file: ./pixi.toml
file: ./pyproject.toml
token: ${{ secrets.GITHUB_TOKEN }}
version-extraction-override: 'regex:version = "(.*)"'

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:
- { PYTHON_VERSION: '3.8', SKLEARN_VERSION: '', LGBM_VERSION: 'lightgbm=3.3' }
- { PYTHON_VERSION: '3.8', SKLEARN_VERSION: '', LGBM_VERSION: 'lightgbm=4.0' }
- { PYTHON_VERSION: '3.8', SKLEARN_VERSION: '', LGBM_VERSION: 'lightgbm=4.1' }
- { PYTHON_VERSION: '3.8', SKLEARN_VERSION: '', LGBM_VERSION: 'lightgbm=4.2' }
- { PYTHON_VERSION: '3.8', SKLEARN_VERSION: '', LGBM_VERSION: '' }
- { PYTHON_VERSION: '3.9', SKLEARN_VERSION: '', LGBM_VERSION: '' }
- { PYTHON_VERSION: '3.10', SKLEARN_VERSION: '', LGBM_VERSION: '' }
Expand Down
2 changes: 1 addition & 1 deletion environment-deprecated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ channels:
- conda-forge
- nodefaults
dependencies:
- lightgbm >=3.2,<4.2
- lightgbm >=3.2,<4.3
- numpy
- python >=3.8
- pre-commit
Expand Down
3 changes: 1 addition & 2 deletions pixi.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
[project] # TODO: move to pyproject.toml once pixi supports it
name = "slim-trees"
version = "0.2.5"
description = "A python package for efficient pickling of ML models."
authors = ["Pavel Zwerschke <[email protected]>"]
channels = ["conda-forge"]
Expand All @@ -14,7 +13,7 @@ lint = "pre-commit run -a"
[dependencies]
python = ">=3.8"
pip = "*"
lightgbm = ">=3.2,<4.2"
lightgbm = ">=3.2,<4.3"
numpy = "*"
pre-commit = "*"
pandas = "*"
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ build-backend = "hatchling.build"
[project]
name = "slim-trees"
description = "A python package for efficient pickling of ML models."
version = "0.2.5"
version = "0.2.6"
readme = "README.md"
license = "MIT"
requires-python = ">=3.8"
Expand All @@ -26,7 +26,7 @@ dependencies = [

[project.optional-dependencies]
lightgbm = [
"lightgbm >=3.2,<4.2",
"lightgbm >=3.2,<4.3",
]
scikit-learn = [
"scikit-learn >=1.1.0,<1.4",
Expand Down

0 comments on commit 12c30be

Please sign in to comment.