Skip to content

Commit e9587f8

Browse files
committed
uv works
1 parent f6ed3ba commit e9587f8

File tree

3 files changed

+200
-994
lines changed

3 files changed

+200
-994
lines changed

pyproject.toml

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ name = "river"
33
version = "0.23.0"
44
description = "Online machine learning in Python"
55
authors = [{ name = "Max Halford", email = "maxhalford25@gmail.com" }]
6-
requires-python = "~=3.10"
6+
requires-python = ">=3.11"
77
readme = "README.md"
88
license = "BSD-3-Clause"
99
dependencies = [
10-
"numpy>=1.23.0",
11-
"scipy>=1.14.1,<2",
12-
"pandas>=2.2.3,<3",
10+
"scipy>=1.16,<2",
11+
"pandas>=2.2,<3",
12+
"numpy>=2.3.4,<3",
1313
]
1414

1515
[project.urls]
@@ -18,10 +18,9 @@ Repository = "https://github.com/online-ml/river/"
1818

1919
[build-system]
2020
requires = [
21-
"poetry-core>=1.0.0",
22-
"cython>3",
23-
"numpy>=2.0.0",
24-
"setuptools>=70.1.0",
21+
"Cython",
22+
"numpy",
23+
"setuptools",
2524
"setuptools-rust",
2625
]
2726
build-backend = "setuptools.build_meta"
@@ -35,7 +34,7 @@ dev = [
3534
"pre-commit>=3.5.0,<4",
3635
"pytest>=7.4.2,<8",
3736
"ruff>=0.4.10,<0.5",
38-
"scikit-learn>=1.5.1,<2",
37+
"scikit-learn>=1.7.2,<2",
3938
"sqlalchemy>=2.0.22,<3",
4039
"sympy>=1.12.1,<2",
4140
"pytest-xdist[psutil]>=3.3.1,<4",
@@ -63,18 +62,16 @@ docs = [
6362
"nbconvert",
6463
"numpydoc",
6564
"python-slugify",
66-
"spacy",
6765
"tabulate",
6866
"watermark",
6967
"notebook<7",
7068
"jupyter-contrib-nbextensions>=0.7.0,<0.8",
7169
]
7270
benchmark = [
73-
"dominate==2.8.0",
74-
"scikit-learn==1.5.1",
75-
"tabulate==0.9.0",
76-
"vowpalwabbit==9.9.0",
77-
"watermark==2.4.3",
71+
"dominate",
72+
"scikit-learn",
73+
"tabulate",
74+
"watermark",
7875
]
7976

8077
[tool.setuptools]

build.py renamed to setup.py

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
import platform
24

35
import numpy
@@ -34,7 +36,7 @@ class ExtBuilder(build_ext):
3436
def run(self):
3537
try:
3638
build_ext.run(self)
37-
except (FileNotFoundError):
39+
except FileNotFoundError:
3840
raise BuildFailed("File not found. Could not compile C extension.")
3941

4042
def build_extension(self, ext):
@@ -44,16 +46,10 @@ def build_extension(self, ext):
4446
raise BuildFailed("Could not compile C extension.")
4547

4648

47-
def build(setup_kwargs):
48-
"""
49-
This function is mandatory in order to build the extensions.
50-
"""
51-
setup_kwargs.update(
52-
{
53-
"ext_modules": ext_modules,
54-
"cmdclass": {"build_ext": ExtBuilder},
55-
"rust_extensions": rust_extensions,
56-
"zip_safe": False,
57-
"include_package_data": True,
58-
}
59-
)
49+
setuptools.setup(
50+
ext_modules=ext_modules,
51+
rust_extensions=rust_extensions,
52+
cmdclass={"build_ext": ExtBuilder},
53+
zip_safe=False,
54+
include_package_data=True,
55+
)

0 commit comments

Comments
 (0)