-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
132 lines (117 loc) · 3.14 KB
/
pyproject.toml
File metadata and controls
132 lines (117 loc) · 3.14 KB
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
[build-system]
requires = ["setuptools>=68", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "boost-sales"
version = "0.1.0"
description = "Production-ready XGBoost sales forecasting toolkit with FastAPI web UI & API, configurable pipeline (global or per-group), holiday features, and price/promo what-if simulations."
readme = "README.md"
requires-python = ">=3.9"
license = { text = "MIT" }
authors = [{ name = "Dimitrios S. Sfyris", email = "dmsfiris@otenet.gr" }]
keywords = ["forecasting", "xgboost", "time-series", "retail", "ml"]
classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Scientific/Engineering :: Information Analysis"
]
dependencies = [
"pandas>=2.0",
"numpy>=1.24",
"xgboost>=2.0",
"typer>=0.12",
"pydantic>=2.7",
"holidays>=0.55",
# optional: speeds CSV I/O, but skip on Apple Silicon macOS
"pyarrow>=12; sys_platform != 'darwin' or platform_machine != 'arm64'",
]
[project.optional-dependencies]
dev = [
"pytest>=8.0.0",
"pytest-cov>=4.1.0",
"ruff>=0.5.0",
"black>=24.3.0",
"mypy>=1.8.0",
]
webui = [
"fastapi>=0.114,<0.116",
"uvicorn[standard]>=0.30,<0.31",
"jinja2>=3.1,<4",
"python-multipart>=0.0.9",
# optional nicety:
"orjson>=3.9 ; sys_platform != 'win32'",
]
# Union of dev + webui (explicit list per PEP 621)
all = [
"pytest>=8.0.0",
"pytest-cov>=4.1.0",
"ruff>=0.5.0",
"black>=24.3.0",
"mypy>=1.8.0",
"fastapi>=0.114,<0.116",
"uvicorn[standard]>=0.30,<0.31",
"jinja2>=3.1,<4",
"python-multipart>=0.0.9",
"orjson>=3.9 ; sys_platform != 'win32'",
]
[project.scripts]
boost-sales = "boost_sales.cli:app"
[project.urls]
Repository = "https://github.com/dmsfiris/boost-sales"
Homepage = "https://github.com/dmsfiris/boost-sales"
Issues = "https://github.com/dmsfiris/boost-sales/issues"
Documentation = "https://github.com/dmsfiris/boost-sales#readme"
[tool.setuptools]
include-package-data = true
# Ensure templates/static are packaged with the wheel
[tool.setuptools.package-data]
"boost_sales" = [
"templates/*.html",
"templates/**/*.html",
"static/*",
"static/**/*",
]
[tool.setuptools.package-dir]
"" = "src"
[tool.setuptools.packages.find]
where = ["src"]
include = ["boost_sales*"]
namespaces = false
# ---- Dev tool configs ----
[tool.ruff]
line-length = 120
target-version = "py39"
exclude = ["src/legacy"]
[tool.ruff.lint]
select = ["E", "F", "I", "B"]
[tool.ruff.lint.isort]
known-first-party = ["boost_sales"]
force-sort-within-sections = true
[tool.black]
line-length = 120
target-version = ["py39"]
exclude = '''
/(
\.venv
| build
| dist
| src/legacy
)/
'''
[tool.pytest.ini_options]
pythonpath = ["src"]
addopts = "-q"
testpaths = ["tests"]
[tool.mypy]
python_version = "3.9"
ignore_missing_imports = true
warn_unused_ignores = true
warn_redundant_casts = true
exclude = "src/legacy"