You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ pdm installThe saved Python interpreter doesn't match the project's requirement. Trying to find another one.python.use_venv is on, creating a virtualenv for this project...Virtualenv is created successfully at /Users/lqhuang/Src/pdm-example-monorepo/.venvSee /var/folders/9n/q2xsxp9x1l79r6rvgl_9h4sw0000gn/T/pdm-install-resolve-42si7wtx.log for detailed debug log.[ResolutionImpossible]: [RequirementInformation(requirement=FileRequirement(name='pkg-core', marker=None, extras=set(), specifier=<SpecifierSet('')>, editable=True,prerelease=False, url='file:///${PROJECT_ROOT}/packages/pkg-core', path=PosixPath('packages/pkg-core'), subdirectory=None), parent=None),RequirementInformation(requirement=FileRequirement(name='pkg-core', marker=None, extras=set(), specifier=<SpecifierSet('')>, editable=False, prerelease=False,url='file:///Users/fming/wkspace/github/pdm-example-monorepo/packages/pkg-first/../pkg-core',path=PosixPath('/Users/fming/wkspace/github/pdm-example-monorepo/packages/pkg-first/../pkg-core'), subdirectory=None), parent=<Candidatepkg-first@file:///Users/lqhuang/Src/pdm-example-monorepo/packages/pkg-first>)]Add '-v' to see the detailed traceback
No alias to build specific sub packages or all defined sub-packages ?
If run pdm build directly under root project, pdm will info us current pyproject.toml is broken or missing essential metadata.
$ pdm buildBuilding sdist...See /var/folders/9n/q2xsxp9x1l79r6rvgl_9h4sw0000gn/T/pdm-build-pfyzz2v9.log for detailed debug log.[BuildError]: Build backend raised error: Showing the last 10 lines of the build output: File "/var/folders/9n/q2xsxp9x1l79r6rvgl_9h4sw0000gn/T/pdm-build-env-uyzzgc4z-shared/lib/python3.10/site-packages/setuptools/dist.py", line 908, in parse_config_files pyprojecttoml.apply_configuration(self, filename, ignore_option_errors) File "/var/folders/9n/q2xsxp9x1l79r6rvgl_9h4sw0000gn/T/pdm-build-env-uyzzgc4z-shared/lib/python3.10/site-packages/setuptools/config/pyprojecttoml.py", line 66, inapply_configuration config = read_configuration(filepath, True, ignore_option_errors, dist) File "/var/folders/9n/q2xsxp9x1l79r6rvgl_9h4sw0000gn/T/pdm-build-env-uyzzgc4z-shared/lib/python3.10/site-packages/setuptools/config/pyprojecttoml.py", line 129, inread_configuration validate(subset, filepath) File "/var/folders/9n/q2xsxp9x1l79r6rvgl_9h4sw0000gn/T/pdm-build-env-uyzzgc4z-shared/lib/python3.10/site-packages/setuptools/config/pyprojecttoml.py", line 55, invalidate raise ValueError(f"{error}\n{summary}") from NoneValueError: invalid pyproject.toml config: `project`.configuration error: `project` must contain ['name'] propertiesAdd '-v' to see the detailed traceback
Building packages by -p path option works well.
$ pdm build -p ./packages/pkg-coreBuilding sdist...Built sdist at /Users/lqhuang/Src/pdm-example-monorepo/packages/pkg-core/dist/pkg_core-0.1.0.tar.gzBuilding wheel...Built wheel at /Users/lqhuang/Src/pdm-example-monorepo/packages/pkg-core/dist/pkg_core-0.1.0-py3-none-any.whl
What I expect?
Could we add an option like --all to easily build all sub packages?
(Optional) Using project alias or name (pdm build -n pkg-core) instead of path (-p) to build sub packages
Thanks for your efforts!
Best wishes,
Lanqing
The text was updated successfully, but these errors were encountered:
Env setup
pdm-example-monorepo: a6b3f47
pdm: 2.5.3
python: 3.10
OS: macOS 13.3.1
Problem
build
specific sub packages or all defined sub-packages ?If run
pdm build
directly under root project,pdm
will info us currentpyproject.toml
is broken or missing essential metadata.Building packages by
-p
path option works well.What I expect?
--all
to easily build all sub packages?pdm build -n pkg-core
) instead of path (-p
) to build sub packagesThanks for your efforts!
Best wishes,
Lanqing
The text was updated successfully, but these errors were encountered: