Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement Python 3.12 support in UPath: * initial work on py312 support * tests: don't test private interface * core312plus: remove commented pathlib functionality * cloud, local and memory versions * upath.core version switch in init * tests: xfail some tests on python3.12 * tests: fix minor issues with tests * tests: DummyFS should overwrite _strip_protocol too * upath.core imports and minor fixes * ci: enable 3.12 tests * test: fix private url attr test * upath: fix subclassing issue * local: inherit __init__ from UPath * upath.implementations.cloud: deprecate lists as args to joinpath * upath.implementations.cloud: use correct flavour/pathmod * tests: xfail non-applicable __new__ test * upath.core312plus: fix typing issues * upath: 312 fix glob * upath: fix relative_to issues * tests: add missing nox session * tests: adjust webdav test to include base_url in storage_options * upath.implementations.local: remove debugging print * upath: make storage_options readonly * upath: minor error message improvement * upath: fix pickling issue if subclasses change __init__ args * tests: relax kwargs test * upath.implementations.webdav: working webdav implementation * upath.implementations.azure: fix touch * tests: update for empty parts paths * upath: working http implementation * upath: working hdfs implementation * upath: always add netloc to ensure fsspec compatibility * upath: add memory path and rework netloc handling for memory * upath: fix parts handling for http * tests: update pathlib 3.12 tests * upath: fix os.Pathlike support in get_upath_protocol * fix mypy issues * upath.registry: clear implementation cache when overriding registration * upath.implementations.local: on 3.12 keep UPath.with_segments and storage_options * upath: make instance creation in UPath.__new__ more explicit * upath: on 3.12 add some comments regarding missing functionality * tests: minor adjustments to pathlib compatibility tests on 3.12 * upath: py312 UPath.__new__ further clarify behavior * tests: minor fixes in tests * upath: refactor local implementation * typing: ignore types for __new__ in PosixUPath/WindowsUPath * upath.implementations.local: fix FilePath superclass * tests: windows 3.12 walk recursion tests increase recursion_limit for test * upath.implementations.memory: normalize to two slashes for py312 and adjust tests for netloc only memory path * tests: adjust pathlib tests to accommodate fix from py-3.12.1 * upath: switch to FSSpecFlavour implementation * nox: always set aiohttp workaround * nox: disable mypy in lint session for now * tests: update pytest and plugins
- Loading branch information