Skip to content

Commit 370ce81

Browse files
build: pin versions (#326)
1 parent c21ca41 commit 370ce81

File tree

4 files changed

+29
-28
lines changed

4 files changed

+29
-28
lines changed

.github/workflows/pr.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,9 @@ jobs:
109109
- name: Install Dependencies
110110
run: |
111111
sudo apt-get install -y pandoc
112-
python -m pip install torch torchvision --index-url https://download.pytorch.org/whl/cpu
113-
python -m pip install ".[dev,doc]"
114-
112+
python -m pip install torch~=2.9.1 torchvision~=0.24.1 --index-url https://download.pytorch.org/whl/cpu
113+
python -m pip install -U ".[dev,doc]"
114+
# '-U' upgrades dependencies based on the pyproject.toml
115115
- name: Build Documentation
116116
run: invoke docs.build
117117

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111
jobs:
1212
test:
1313
name: Tests
14-
timeout-minutes: 20
14+
timeout-minutes: 60
1515
runs-on: ${{ matrix.operating-system }}
1616
strategy:
1717
fail-fast: true
@@ -61,8 +61,8 @@ jobs:
6161
- name: Install Dependencies
6262
run: |
6363
sudo apt-get install -y pandoc
64-
python -m pip install torch torchvision --index-url https://download.pytorch.org/whl/cpu
65-
python -m pip install ".[dev,doc]"
64+
python -m pip install torch~=2.9.1 torchvision~=0.24.1 --index-url https://download.pytorch.org/whl/cpu
65+
python -m pip install -U ".[dev,doc]"
6666
- name: Build Documentation
6767
run: python -m invoke docs.build
6868
- name: Upload artifact

pyproject.toml

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -45,33 +45,34 @@ requires-python = ">=3.9"
4545
# Defines the pip packages that are required by this package. These should be
4646
# as permissive as possible, since capymoa should collaborate with other
4747
# packages.
48+
# The '~=' operator is used to specify compatible releases: newer features or bug fixes
49+
# within the same major version are allowed.
50+
# For example: ~= 2.2 is >= 2.2, == 2.*.*
51+
# See: https://packaging.python.org/en/latest/specifications/version-specifiers/#compatible-release
4852
dependencies = [
49-
"jpype1>=v1.5.1",
50-
"wget",
51-
"numpy",
52-
"pandas",
53-
"pyarrow",
54-
"matplotlib",
55-
"scikit-learn",
56-
"click",
57-
"seaborn",
58-
"tqdm",
59-
"deprecated"
53+
"deprecated~=1.3",
54+
"jpype1~=1.6",
55+
"matplotlib~=3.10",
56+
"numpy~=2.2",
57+
"pandas~=2.2",
58+
"scikit-learn~=1.7",
59+
"seaborn~=0.13",
60+
"tqdm~=4.67",
6061
]
6162

6263
[project.optional-dependencies]
6364
# Development dependencies
6465
dev=[
65-
"pytest",
66-
"pytest-subtests",
67-
"jupyter",
68-
"nbmake",
69-
"pytest-xdist",
70-
"invoke",
71-
"stubgenj",
72-
"wget",
73-
"commitizen~=3.24.0",
74-
"ruff",
66+
"commitizen~=3.24",
67+
"invoke~=2.2",
68+
"jupyter~=1.1",
69+
"nbmake~=1.5",
70+
"pytest-subtests~=0.15",
71+
"pytest-xdist~=3.8",
72+
"pytest~=9.0",
73+
"ruff~=0.14",
74+
"stubgenj~=0.2",
75+
"wget~=3.2",
7576
]
7677

7778
doc=[

src/capymoa/classifier/_sgd_classifier.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def __init__(
4949
epsilon: float = 0.1,
5050
n_jobs: Optional[int] = None,
5151
learning_rate: Literal["constant", "optimal", "invscaling"] = "optimal",
52-
eta0: float = 0.0,
52+
eta0: float = 0.01,
5353
random_seed: Optional[int] = None,
5454
):
5555
"""Construct stochastic gradient descent classifier.

0 commit comments

Comments
 (0)