pdm.lock is missing groups dependencies (and pdm generate wrong requirements.txt) #3625
jeanmichel-nwsb
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi
I'm quite new to using PDM and I may have missed some important points.
I'm using PDM to manage a repo which is about an AWS stack created through CloudFormation and CDK
The repo includes mainly those folders/sections:
stack/which is the CDK base code to build the stack in CloudFormationsqs2db_lambda/which is the 1st lambdametrics_aggregator/is a 2nd lambdatests/sqs2db/andtests/metrics_aggregator/.github/workflows/folder for GitHub actionsI used
pdm add [-dG groupname] modulecommands to add my dependcies which then appeared in thepyproject.tomlfile as belowAs you can see:
aws-lambda-powertoolsand the same private module, the aggregator has additional dependenciesFor deploying the lambda code to AWS, I need a
requirements.txtfile in the folder of each lambda which I create dynamically in the GitHub Actions using:The problem is that the dependency on the private module is missing from one of the 2
requirements.txtfile. At the very beginning it was in the one foraggregator, but now it's in the one for 'sqs2db`I have tracked down to the
pdm.lockfile where thegroupsentry is wrong forprivate-modulebut correct foraws-lambda-powertoolsIf I manually change the
groupsentry, the creation ofrequirements.txtworks fine.But anytime I run either
pdm lockorpdm update, thegroupsentry for the the private module gets wrong again.The private module is also managed using PDM.
Any idea if I'm doing something wrong ?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions