Код: Выделить всё
hatch new trainerКод: Выделить всё
[build-system]
requires = ["hatchling", "hatch-datavolo-nar"]
build-backend = "hatchling.build"
[project]
name = "trainer"
dynamic = ["version"]
description = "Simple trainer processor"
readme = "README.md"
requires-python = ">=3.11"
license = "MIT"
keywords = ["trainer"]
authors = [
{ name = "U.N. Owen", email = "void@some.where" },
]
dependencies = ["neuralprophet", "numpy", "pandas",]
[tool.hatch.version]
path = "src/trainer/__about__.py"
[tool.hatch.build.targets.nar]
packages = ["src/trainer"]
Код: Выделить всё
hatch build --target narКод: Выделить всё
Processing dependencies...
Loading dependencies
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "C:\Users\ayush.raj\AppData\Local\hatch\env\virtual\neuralprophet\IXYHy4qS\neuralprophet-build\Lib\site-packages\hatchling\__main__.py", line 6, in
sys.exit(hatchling())
^^^^^^^^^^^
File "C:\Users\ayush.raj\AppData\Local\hatch\env\virtual\neuralprophet\IXYHy4qS\neuralprophet-build\Lib\site-packages\hatchling\cli\__init__.py", line 26, in hatchling
command(**kwargs)
File "C:\Users\ayush.raj\AppData\Local\hatch\env\virtual\neuralprophet\IXYHy4qS\neuralprophet-build\Lib\site-packages\hatchling\cli\build\__init__.py", line 82, in build_impl
for artifact in builder.build(
File "C:\Users\ayush.raj\AppData\Local\hatch\env\virtual\neuralprophet\IXYHy4qS\neuralprophet-build\Lib\site-packages\hatchling\builders\plugin\interface.py", line 155, in build
artifact = version_api[version](directory, **build_data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\ayush.raj\AppData\Local\hatch\env\virtual\neuralprophet\IXYHy4qS\neuralprophet-build\Lib\site-packages\hatch_datavolo_nar\builder.py", line 115, in build_standard
self.process_dependencies(build_directory, nar)
File "C:\Users\ayush.raj\AppData\Local\hatch\env\virtual\neuralprophet\IXYHy4qS\neuralprophet-build\Lib\site-packages\hatch_datavolo_nar\builder.py", line 125, in process_dependencies
self.install_dependencies(dependencies_dir, cache_dir)
File "C:\Users\ayush.raj\AppData\Local\hatch\env\virtual\neuralprophet\IXYHy4qS\neuralprophet-build\Lib\site-packages\hatch_datavolo_nar\builder.py", line 163, in install_dependencies
check_call(install_arguments, stdout=PIPE, stderr=PIPE, shell=False)
File "C:\Users\ayush.raj\AppData\Local\Programs\Python\Python312\Lib\subprocess.py", line 413, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['C:\\Users\\ayush.raj\\AppData\\Local\\hatch\\env\\virtual\\neuralprophet\\IXYHy4qS\\neuralprophet-build\\Scripts\\python.EXE', '-m', 'pip', 'install', 'neuralprophet', 'numpy', 'pandas', '--upgrade', '--no-python-version-warning', '--no-input', '--cache-dir', "'C:\\Users\\ayush.raj\\Desktop\\POCs\\new\\pyproject\\trainer\\dist/pip-cache'", '--quiet', '--target', "'C:\\Users\\ayush.raj\\Desktop\\POCs\\new\\pyproject\\trainer\\dist\\NAR-INF\\bundled-dependencies'"]' returned non-zero exit status 2.
Я ожидая, что nar будет объединен со всеми связанными зависимостями процессора
Подробнее здесь: https://stackoverflow.com/questions/790 ... i-2-0-0-m4