posit-dev / posit-dev/rsconnect-python
--exclude "**/*.pyc" does not exclude .pyc files on deploy
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Python
- Sterne
- 37
- Forks
- 28
- Ø Merge
- 1 T. 3 Std.
- Gemergte PRs (30 T.)
- 7
Beschreibung
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.
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Es ist keine Datei oder kein Test benannt. Beginne bei der CLI-Implementierung, die die Deploy-Exclude-Option verarbeitet, und verfolge, wie -x-Glob-Muster abgeglichen werden; reproduziere die drei Muster aus dem Issue. Fertig ist die Aufgabe, wenn rekursive .pyc-Dateien und pycache-Verzeichnisse während des Deployments ausgeschlossen werden, mit einer Abdeckung des unterstützten Verhaltens.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- python
- Bereich
- cli
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 45/100