Skip to content

Commit

Permalink
try this
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxHalford committed Nov 2, 2023
1 parent 117348d commit 737761b
Show file tree
Hide file tree
Showing 3 changed files with 84 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
},
)

rust_extensions = ([RustExtension("river.stats._rust_stats", binding=Binding.PyO3)],)
rust_extensions = [RustExtension("river.stats._rust_stats", binding=Binding.PyO3)]


class BuildFailed(Exception):
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ description = "Online machine learning in Python"
authors = ["Max Halford <[email protected]>"]

[tool.poetry.build]
generate-setup-file = false
script = "build.py"
generate-setup-file = true

[tool.poetry.dependencies]
python = ">=3.9,<3.13"
Expand Down
82 changes: 82 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
# -*- coding: utf-8 -*-
from setuptools import setup

packages = \
['river',
'river.active',
'river.anomaly',
'river.bandit',
'river.bandit.datasets',
'river.bandit.envs',
'river.base',
'river.checks',
'river.cluster',
'river.compat',
'river.compose',
'river.conf',
'river.covariance',
'river.datasets',
'river.datasets.synth',
'river.drift',
'river.drift.binary',
'river.drift.datasets',
'river.ensemble',
'river.evaluate',
'river.facto',
'river.feature_extraction',
'river.feature_selection',
'river.forest',
'river.imblearn',
'river.linear_model',
'river.metrics',
'river.metrics.efficient_rollingrocauc',
'river.metrics.multioutput',
'river.misc',
'river.model_selection',
'river.multiclass',
'river.multioutput',
'river.naive_bayes',
'river.neighbors',
'river.neighbors.ann',
'river.neural_net',
'river.optim',
'river.preprocessing',
'river.proba',
'river.reco',
'river.rules',
'river.sketch',
'river.stats',
'river.stream',
'river.time_series',
'river.tree',
'river.tree.mondrian',
'river.tree.nodes',
'river.tree.split_criterion',
'river.tree.splitter',
'river.utils']

package_data = \
{'': ['*'], 'river.metrics.efficient_rollingrocauc': ['cpp/*']}

install_requires = \
['pandas>=2.1,<3.0', 'scipy>=1.8.1,<2.0.0']

setup_kwargs = {
'name': 'river',
'version': '0.19.0',
'description': 'Online machine learning in Python',
'long_description': 'None',
'author': 'Max Halford',
'author_email': '[email protected]',
'maintainer': 'None',
'maintainer_email': 'None',
'url': 'None',
'packages': packages,
'package_data': package_data,
'install_requires': install_requires,
'python_requires': '>=3.9,<3.13',
}
from build import *
build(setup_kwargs)

setup(**setup_kwargs)

0 comments on commit 737761b

Please sign in to comment.