Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python3 support #3

Closed
wants to merge 3 commits into from
Closed

python3 support #3

wants to merge 3 commits into from

Conversation

petronny
Copy link

现在ls,rm,upload,download是可以工作的了

@petronny petronny changed the title fix ifilter and urljoin for python3 python3 support Nov 20, 2017
@Kxrr
Copy link
Owner

Kxrr commented Nov 20, 2017

如果要兼容 python3 希望直接用 six 来做。
另外项目不支持 python3 的主要原因是 easywebdav 是基于python2 且现该项目无人维护。

@petronny
Copy link
Author

还是有其他的维护得比较好的webdav python api的
比如webdavclient

@petronny
Copy link
Author

用six重写兼容那块了
easywebdav的问题回来再说吧,webdavclient返回的结构体和easywebdav不太一样,改着费劲

@petronny
Copy link
Author

我看到你已经fork了一个easywebdav并做了python3兼容了
所以我用了 80a92e2 把你这个作为这个的子模块了
这样相关的问题应该就解决了吧

@Kxrr
Copy link
Owner

Kxrr commented Nov 24, 2017

老哥,走远了。用submodule就无法解决打包的问题了。

@Kxrr
Copy link
Owner

Kxrr commented Nov 24, 2017

我起初是 fork 了一个 easywebdav 试图解决 python3 的兼容问题, 并通过在 nutstore-cli 中加入 dependency-links 来使 pip 安装时使用修改后的 easywebdav 。
但后来我升级了pip, 遇到了 pypa/pip#4187 (comment) 里面提到的问题,简而言之,不同版本的pip对 dependency-links 的处理方式不同,某些极端情况甚至会忽略 dependency-links,这会导致通过 pip 安装的 nutstore-cli 仍然无法在 python3 下正常工作。之后我就移除了对 python3 的兼容。
目前看来,这些问题除了换一个支持 python3 且有完善测试用例的 webdav 库外依旧没有好的解决方案……

@petronny
Copy link
Author

我现在把文件夹的symlink换成下面3个文件的symlink就可以打包了

@Kxrr Kxrr closed this Mar 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants