-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
106 lines (100 loc) · 2.74 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
[tool.poetry]
name = "pytorch-datastream"
version = "0.0.0"
description = "Simple dataset to dataloader library for pytorch"
authors = ["NextML"]
license = "Apache-2.0"
readme = "README.md"
repository = "https://github.com/nextml-code/pytorch-datastream"
documentation = "https://nextml-code.github.io/pytorch-datastream"
keywords = [
"pytorch",
"machine",
"learning",
"dataset",
"pipeline",
"dataloader"
]
# some classifiers are added automatically, see https://python-poetry.org/docs/pyproject/#classifiers
classifiers = [
"Development Status :: 3 - Alpha",
"Environment :: Other Environment",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Software Development",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules"
]
packages = [
{ include = "datastream" },
]
[tool.poetry.dependencies]
python = "^3.9"
torch = ">=1.4.0"
numpy = "^1.17.0"
pandas = "^1.0.5"
pydantic = "^2.0.0"
[tool.poetry.group.dev.dependencies]
pylint = "^2.6.0"
flake8 = "^3.8.4"
pytest = "^7.0.0"
black = "^23.1.0"
mkdocs = "^1.5.0"
mkdocs-material = "^9.0.0"
pytest-codeblocks = "^0.17.0"
mkdocstrings = {extras = ["python"], version = "^0.24.0"}
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.black]
line-length = 88
target-version = ['py38']
include = '\.pyi?$'
exclude = '''
(
/(
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
)
'''
[tool.pytest.ini_options]
testpaths = ["datastream", "docs", "tests"]
python_files = ["*.py", "*.md"]
addopts = "--doctest-modules --doctest-glob=*.md"
doctest_optionflags = "NORMALIZE_WHITESPACE IGNORE_EXCEPTION_DETAIL ELLIPSIS"
markers = [
"codeblocks: mark test to be collected from code blocks",
]
[tool.pytest-codeblocks]
pattern = "python"
test_files = ["docs/*.md"]
test_namespace = [
"Dataset = datastream.Dataset",
"Datastream = datastream.Datastream",
"numpy_seed = datastream.tools.numpy_seed",
"verify_split = datastream.tools.verify_split",
"star = datastream.tools.star",
"starcompose = datastream.tools.starcompose",
"repeat_map_chain = datastream.tools.repeat_map_chain",
"stratified_split = datastream.tools.stratified_split",
"unstratified_split = datastream.tools.unstratified_split",
"pd = pandas",
"np = numpy",
"torch = torch",
"Image = PIL.Image",
"Path = pathlib.Path",
"datastream = datastream"
]