-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
58 lines (51 loc) · 1.51 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
[build-system]
# wget is used to download the MOA jar file
requires = ["hatchling", "hatch-build-scripts", "wget"]
# Build system: https://hatch.pypa.io
# The main reason I chose hatch is its support for plugins allowing us to
# download the MOA jar file before the build starts.
build-backend = "hatchling.build"
[project]
name = "capymoa"
version = "0.0.1"
description = "Python wrapper for MOA to allow efficient use of existing algorithms with a more modern API."
requires-python = ">=3.8"
# Defines the pip packages that are required by this package. These should be
# as permissive as possible, since capymoa should collaborate with other
# packages.
dependencies = [
"jpype1",
"wget",
"numpy",
"pandas",
"pyarrow",
"river",
]
[project.optional-dependencies]
dev=[
"pytest",
"jupyter",
"torch",
"torchvision",
]
[tool.pytest.ini_options]
addopts = ["--import-mode=importlib"]
pythonpath = [
"src",
"." # Used to import the test_utility module
]
[tool.hatch]
[tool.hatch.build.targets.wheel]
# Defines the directories included in the wheel package
packages = ["src/capymoa"]
artifacts = ["src/capymoa/jar/moa.jar"]
[tool.hatch.build.targets.sdist]
# Defines the directories included in the source distribution package (sdist).
packages = ["src/capymoa"]
artifacts = ["src/capymoa/jar/moa.jar"]
[[tool.hatch.build.hooks.build-scripts.scripts]]
# Ensures that the MOA jar file is downloaded before the build starts.
commands = [
"python scripts/download_moa.py",
]
artifacts = []