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

add support for .connectignore

Open edavidaja opened this issue 2 years ago • 3 comments

  • specifying files to ignore via the --exclude option makes for very long command line arguments
  • the exclude patterns do not work consistently, see #320
  • our current globbing implementation is a bit limited
  • the meaning of extra_files is not easy to reason about across app modes, see #354
❯ rsconnect deploy voila
Usage: rsconnect deploy voila [OPTIONS] PATH [EXTRA_FILES]...

❯ rsconnect deploy notebook
Usage: rsconnect deploy notebook [OPTIONS] FILE [EXTRA_FILES]...

❯ rsconnect deploy streamlit
Usage: rsconnect deploy streamlit [OPTIONS] DIRECTORY [EXTRA_FILES]...

Introducing a .connectignore would make it simpler to document which files should be ignored by a deployment. pathspec looks like an appealing candidate for enhanced wildcard support.

edavidaja avatar Mar 17 '23 20:03 edavidaja

The rsconnect R package has rudimentary support for an .rscignore file. Should the two packages support the same file name and format?

aronatkins avatar Mar 17 '23 21:03 aronatkins

Ideally (to me):

  • they should both support a .connectignore
  • .connectignore should follow the same rules as .gitignore

edavidaja avatar Mar 20 '23 13:03 edavidaja

+1 for this feature. I have a bunch of local tables with differing vintages. I only want to include the latest marked with a datetime filename. Being able to take max() from a globstring would be perfect,

r-leyshon avatar Dec 20 '24 12:12 r-leyshon