posit-dev / posit-dev/py-shinylive
Jinja2 wheel not bundled unless explicitly imported in the app
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 56
- Forks
- 6
- Avg merge
- 3m
- Merged PRs (30d)
- 1
Description
Putting Jinja2 in a requirements.txt file, as suggested e.g. here, doesn't seem to be enough for the shinylive CLI tool to actually bundle the Jinja2 wheel in the output dir. But if I explicitly import jinja2 in app.py, the wheel gets included and rendering tables works.
Is this intentional? If so, it should probably be documented?
As an aside, thank you for bringing Shiny to Python in great style!
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the shinylive CLI flow using the requirements.txt and app.py examples described in the issue, and reproduce the difference between declaring Jinja2 and importing it. Determine whether this behavior is intentional; done means either Jinja2 is bundled from requirements.txt or the expected import requirement is clearly documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100