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
Some of these dependencies, such as Jinja2, aren't listed in the poetry.lock file generated by poetry, which computes the transitive closure of the dependencies needed in the pyproject.toml file. This leads me to wonder if we can remove some of the dependencies in requirements.txt, especially since we semi-frequently receive notifications from @dependabot to upgrade things like Jinja2.
The text was updated successfully, but these errors were encountered:
I also don't see Sphinx et al in the poetry.lock, which we've used to automatically generate documentation, some of which is/can be formatted in HTML. Still not sure the root cause, but I suspect whatever it is might explain both these things.
I also don't see Sphinx et al in the poetry.lock, which we've used to automatically generate documentation, some of which is/can be formatted in HTML.
This is a good point, and a nuance that I didn't really convey when submitting this issue. Namely, not all of the dependencies listed in the requirements.txt file are actually needed to build the core saw package itself. Rather, some of these dependencies are only used for developer-only workflows, such as generating Sphinx documentation. Poetry calls these dev-dependencies (see cryptol's pyproject.toml file for an example), and indeed, the pyproject.toml files for cryptol and saw should probably include Sphinx et al. as dev-dependencies.
Still, I'm unclear if jinja2 is included in service of a developer-specific workflow. I could believe that jinja2 is a dependency of some other library in the requirements.txt file, but if that's the case, it seems like it should be safe to remove it, since installing the other library would bring in jinja2 anyway.
As a side note, this is one of the reasons I prefer using Poetry to manage dependencies over requirements.txt, as Poetry can figure out a lot of this guesswork for you. I recognize the importance of keeping requirements.txt files for the sake of those who would prefer to just install a virtualenv instead of using fancy tools, but still.
The
requirements.txt
file lists a surprising number of dependencies:saw-script/saw-remote-api/python/requirements.txt
Lines 1 to 30 in 226a33d
Some of these dependencies, such as
Jinja2
, aren't listed in thepoetry.lock
file generated bypoetry
, which computes the transitive closure of the dependencies needed in thepyproject.toml
file. This leads me to wonder if we can remove some of the dependencies inrequirements.txt
, especially since we semi-frequently receive notifications from @dependabot to upgrade things likeJinja2
.The text was updated successfully, but these errors were encountered: