Open lqhuang opened 1 year ago
Yes, this requires the interface change which is planned in https://github.com/pdm-project/pdm/issues/1505.
We have to use what we have now.
@lqhuang you can do something like this:
ls packages | xargs -I % sh -c "pdm build -p packages/%"
or taking one step further, create a pdm.sh
:
ls packages | xargs -I % sh -c "pdm ${@} -p packages/%"
@sinogermany Oh, thanks! That's a good idea and could be wrapped as an alias or shell function 😂
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