It's a bit troublesome that if I forget to add the...
# general
s
It's a bit troublesome that if I forget to add the requirements on the
pyproject.toml
, the tests works anyway ... 🤔 Can't pants make sure that I've included them in the
METADATA
or something like that?
ah, I need to do some kind of smoke test, right?
h
I don't think I understand what you mean?The tests still work?
how are you using pyproject.toml? Do you mean when building a distribution you distribute? Or like specifying your project's deps via Poetry and
poetry_requirements
on this last link
if I forget to add "starlette" as dependency
my tests will still pass
h
s
so I need to add all of them there?
h
it's not enough to do that: you would then want to inside your actual test do something like
subprocess.run(["path/to/foo.pex"])
for example. This would be an integration style test. All that
runtime_package_dependencies
will do is have Pants build your binaries and insert the results into the sandbox used by your test run. It's on you to then do something interesting with those files inside your integration test
s
any good repo to share about a good setup regarding all this?
h