Skip to content

Commit 16a0837

Browse files
author
“bingtao”
committed
chore: 更新依赖并清理ossutil驱动代码
- 将项目版本从2.0.43升级到2.0.44 - 更新ossutil依赖从funinstall 1.0.54到1.0.56 - 清理ossutil驱动代码中的冗余导入和空行 - 优化导入路径从funinstall.install.ossutil到funinstall.install
1 parent 0c941bc commit 16a0837

2 files changed

Lines changed: 3 additions & 18 deletions

File tree

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "fundrive"
3-
version = "2.0.43"
3+
version = "2.0.44"
44
description = "fundrive"
55
readme = "README.md"
66
requires-python = ">=3.8"
@@ -39,7 +39,7 @@ amazon = [ "boto3>=1.34.0",]
3939
tsinghua = [ "requests>=2.32.4",]
4040
github = [ "requests>=2.32.4", "orjson>=3.10.10",]
4141
gitee = [ "requests>=2.32.4", "orjson>=3.10.10",]
42-
ossutil = [ "funinstall>=1.0.54",]
42+
ossutil = [ "funinstall>=1.0.56",]
4343

4444
[project.urls]
4545
Organization = "https://github.com/farfarfun"

src/fundrive/drives/ossutil/drive.py

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
import os
2-
import platform
3-
import shutil
42
import subprocess
53
import tempfile
6-
import zipfile
74
from typing import Any, List, Optional
8-
import requests
9-
from funinstall.install.ossutil import OSSUtilInstall
5+
from funinstall.install import OSSUtilInstall
106
from funsecret import read_secret
117
from funutil import getLogger
128
from fundrive.core import BaseDrive, DriveFile
@@ -15,13 +11,6 @@
1511
logger = getLogger("fundrive-ossutil")
1612

1713

18-
19-
20-
21-
22-
23-
24-
2514
class OSSUtilDrive(BaseDrive):
2615
"""基于ossutil命令行工具的阿里云OSS存储驱动实现
2716
@@ -53,8 +42,6 @@ def __init__(self, *args, **kwargs):
5342
self._access_key = None
5443
self._access_secret = None
5544

56-
57-
5845
def _create_config_file(self) -> bool:
5946
"""创建ossutil配置文件
6047
@@ -1047,5 +1034,3 @@ def get_upload_url(
10471034
except Exception as e:
10481035
logger.error(f"获取上传链接失败: {e}")
10491036
return ""
1050-
1051-

0 commit comments

Comments
 (0)