From 9b3cfbf9ab4b05d5503c2d13eb8feb9fa28e37d5 Mon Sep 17 00:00:00 2001 From: "kfir.goldberg" Date: Tue, 18 Jun 2024 23:20:12 +0300 Subject: [PATCH 1/2] 1. updated package version 2. added changelog 3. updated TODOs in readme --- CHANELOG.md | 4 ++++ README.md | 4 ++-- anypathlib/__init__.py | 2 +- requirements.txt | 4 ++-- setup.py | 4 ++-- 5 files changed, 11 insertions(+), 7 deletions(-) create mode 100644 CHANELOG.md diff --git a/CHANELOG.md b/CHANELOG.md new file mode 100644 index 0000000..a75deda --- /dev/null +++ b/CHANELOG.md @@ -0,0 +1,4 @@ +# Version 0.2.0 + - Type `AnyPathLikeType` was added, which can be used to init an `AnyPath` instance or in `copy` target + - `listdir` is now deprecated, replaced by `iterdir`, `rglob`, and `glob` + - `copy` not supports the case where the source is a file and target is a directory \ No newline at end of file diff --git a/README.md b/README.md index fd00aae..7838d20 100644 --- a/README.md +++ b/README.md @@ -134,11 +134,11 @@ export AWS_ACCESS_KEY_ID="your-key" - [ ] Improve API -> Add support for file-to-dir in copy +> Add __open__ method for reading files, etc. - [ ] Implement cloud-to-cloud ops more efficiently. -> For example, s3->azure can use AZCopy +> cache azure credentials to avoid repeated logins - [ ] Improve logging and add verbose mode. diff --git a/anypathlib/__init__.py b/anypathlib/__init__.py index 854a5c0..bd1f7d7 100644 --- a/anypathlib/__init__.py +++ b/anypathlib/__init__.py @@ -1,4 +1,4 @@ -__version__ = "0.1" +__version__ = "0.2.0" from anypathlib.anypath import AnyPath from anypathlib.path_handlers.path_types import PathType diff --git a/requirements.txt b/requirements.txt index 168fc31..110d8e4 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,7 +2,7 @@ azure-storage-blob>=12.14.0 azure-identity>=1.10.0 azure-mgmt-storage>=21.1.0 boto3>=1.34.23 -loguru>=0.7.2 -tqdm>=4.66.2 +loguru +tqdm click==8.1.7 pytest==8.2.0 \ No newline at end of file diff --git a/setup.py b/setup.py index fbc597e..775e789 100644 --- a/setup.py +++ b/setup.py @@ -42,8 +42,8 @@ def find_version(*file_paths: str) -> str: "azure-identity>=1.15.0", "azure-mgmt-storage>=21.1.0", "boto3>=1.34.23", - "loguru>=0.7.2", - "tqdm>=4.66.2", + "loguru", + "tqdm", 'Click' ], setup_requires=["pre-commit"], From 6df790ef5bd11bfd7c0f9040408a6cf1d6c7124e Mon Sep 17 00:00:00 2001 From: "kfir.goldberg" Date: Tue, 18 Jun 2024 23:21:21 +0300 Subject: [PATCH 2/2] fix typo --- CHANELOG.md => CHANGELOG.md | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename CHANELOG.md => CHANGELOG.md (100%) diff --git a/CHANELOG.md b/CHANGELOG.md similarity index 100% rename from CHANELOG.md rename to CHANGELOG.md