rsconnect-python icon indicating copy to clipboard operation
rsconnect-python copied to clipboard

--exclude "**/*.pyc" does not exclude .pyc files on deploy

Open rkaramc opened this issue 1 month ago • 0 comments

Trying to deploy to shinyapps.io and noticed that rsconnect-python is including the .pyc files from local.

Tried adding "-x '**/*.pyc'" to the command but rsc-p continues to upload/deploy the .pyc files.

Tried adding "-x **/pycache/" --> no effect.

Tried "-x *.pyc" --> no effect. I expect this glob to only find files in the working directory anyway.

Expected: Either **/*.pyc OR *.pyc should exclude all .pyc files through all subdirectories. Though I would prefer the first glob!

Worst case, **/pycache/ should exclude all pycache sub-directories below current directory.

rkaramc avatar Nov 04 '25 15:11 rkaramc