Repository navigation
Tags
Tags
Adds Databricks backend (#325) * Initial DB framework, ls works (no details) * Switches to using folder_url instead of path * pin_exists() works now * pin_versions() works * pin_open() works * Makes _list_folders into _list_items * Adds mkdir & put, gets pin_write() working * Formatting improvements * Removes conditional to use a custom board object * Improvements to file reading, and adds initial rm * pin_delete() works, new 'exists' aproach * Adds some test pieces * Partially runs tests * Adds support for `detail` in ls * Figures out how to properly cache the fs * Fixes teardown for tests * extends `rm` one more level (fix later) * No errors in tests, moving on to addressing failures * Adds recursive file/folder mapper * fully recursive put (clean later) * Improvements to _map_put * Starts moving to discrete functions * Finishes moving everything to discrete functions * Fixes typo * Creates custom cache class, fixes issue with reading wrong pin * Removes _open from PinsDBCache after confirming that it's not needed * Removes data.csv file * Adds get() and _databricks_get() * Removes test data * Fixes issue with not handling board versioning for test boards * Passes constructor test * Removes PinsDBCache and manual registration of dbc * Emulates the structure of the other test boards * Adds notes to the function, cleans up arguments * Restores BoardRsConnect to helpers * Adds full BoardRSconnect call * Gets fs via calling the function for the tests * Removes Databricks from CI tests * Adds databricks-sdk to requirements dev file * Updates rest of dev reqs versions * Attempts to avoid double forward slash in Linux * Checks if path_to_version is a str before removing trailing slash * Fixes typo on isinstance call * Removes protocol assignment for DatabricksFs * Passes pre-commit * Adds databricks-sdk to minimum reqs * Addresses additional issue from precommit and attempts to solve pyright error * Update pins/databricks/fs.py Co-authored-by: Isabel Zimmerman <54685329+isabelizimm@users.noreply.github.com> * Update requirements/minimum.txt Co-authored-by: Isabel Zimmerman <54685329+isabelizimm@users.noreply.github.com> * Update pins/databricks/fs.py Co-authored-by: Isabel Zimmerman <54685329+isabelizimm@users.noreply.github.com> * Update pins/databricks/fs.py Co-authored-by: Isabel Zimmerman <54685329+isabelizimm@users.noreply.github.com> * Switches from os to pathlib * Converts functions to staticmethods * add docs for board_databricks * load in quartodoc * update all tests * clean up class, make true optional import * run dbc tests * add databricks into pyright deps * load databricks creds * error earlier * pass for windows cache * resolve dependencies * resolve dependencies again * cannot clean up constructors, skip --------- Co-authored-by: Isabel Zimmerman <54685329+isabelizimm@users.noreply.github.com> Co-authored-by: isabel zimmerman <isabel.zimmerman@posit.co>
maint: add rdata as a testing dependency (#265) * Add rdata as a dependency * Don't explicitly install rdata an extra time. Don't reference [test] in `pip install -e .` * Revert removal of `[test]` in cases where it is still needed. * Add read_rds workaround for rdata on Python 3.8. * Remove `hasattr` check * Add type conversion for 3.8 support of rds load * Use f.name for 3.8 rdata call * Use f.name rather than type conversion. * Enable `reportMissingImports` in pyright * Isolate protected import for pyright * Disable pyright for protected optional import * Fix typo 🤦♂️ * dropped 3.8, no longer need workaround --------- Co-authored-by: isabelizimm <isabel.zimmerman@rstudio.com>
support unversioned boards (#230) * support unversioned boards * rsconnect boards cannot delete active version * clean up function sig * add versioned arg * updates from review * add tests * try to make smart-ish API calls for Connect * use test value * don't need to test the error twice * also, don't need to read pin
refactor(fsspec): remove upper bound on fsspec (#221) * refactor(fsspec): remove upper bound on fsspec We're using `pins` as a dependency in `ibis-framework` and ideally we can remove the upper-pin on `fsspec` so that doesn't impact our users. I think the usage of the moved `hash_name` function is the only breaking change between the current upper pin and most recent release, so I've added a small workaround to handle the change. All of the local tests pass, I didn't yet set up sufficient credentials to handle the various cloud tests. * vendor in hash_name * file or local protocols * update gcs path * file, local not protocols * move to custom CacheMappers * move PinsRscCache to its own mapper * remove same_name * fix test paths to be windows compatible * remove 3.7 support * specify get_file for RsConnectFs * keep a call to hash_name * move gh org machow-> rstudio --------- Co-authored-by: isabelizimm <isabel.zimmerman@rstudio.com>
PreviousNext