posit-dev / posit-dev/rsconnect-python
Manifest generation for projects only using Python in pre-rendering should include Python
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 37
- Forks
- 28
- Avg merge
- 1d 3h
- Merged PRs (30d)
- 7
Description
I have a project in which I only use a Python script in pre-rendering, but not in any .qmd files. Generating a manifest through:
rsconnect write-manifest quarto . --overwrite
causes the "python" section to not appear, which prevents the requirements.txt from being included, and it seems no Python environment is set up when deploying. The pre-render scripts then fail because they can't import my dependencies.
As a workaround I just added an empty Python cell to one of my .qmd files.
It would be nice if the manifest would also include Python things when there are Python scripts used in pre-rendering.
Contributor guide
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 by reproducing rsconnect write-manifest quarto . --overwrite with a project that uses Python only in a pre-render script, then inspect the Quarto manifest-generation path. Compare the result with a project containing a Python cell; done means the manifest includes the Python section and requirements.txt so deployment sets up the environment for the pre-render script.
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
- 45/100