Closed rd4398 closed 1 month ago
A test would definitely be good. I'm not sure how easy it would be to create a unit test, but see what you can come up with. If that looks really complicated, maybe an e2e test would make more sense in this case? There are some other e2e tests that do things like run a build, remove some of the artifacts, then build again that could serve as a starting point for an example. The test can also do things like look for specific log messages indicating that fromager is building the sdist.
Okay, I will try to come up with a unit test first else e2e test if things get complicated. Thanks
Does this look like a good unit test?
I added an e2e test. Can you please check?
Also, not sure why pkglint
checks are failing
Fixed failing pkglint
checks
Changed error messages as per suggestion and used --log-file to generate log file Let me know if anymore changes are required!
Can you please approve and merge if everything looks fine?
I added to check whether sdist is already built before. If I get a
None
, call tobuild_sdist()
else
case? (Reference to my latest comment on issue)