草庐IT

python - 使用 Python 处理 GitHub Wiki 存储库

有没有办法以编程方式(使用PyGithub、GitPython或dulwich)将任何文件直接加载到MyRepo.wiki.git存储库中?当然是使用Python。在PyGithub的帮助下,我可以轻松地将文件直接上传到MyRepo.git存储库,但不幸的是,这个库没有使用MyRepo.wiki.git存储库的API或方法。以下是我如何将文件上传到MyRepo.git存储库:github_repo=github_account.get_user().get_repo('MyRepo')head_ref=gh_repo.get_git_ref("heads/%s"%github_bran

python - 如何正确安装 dulwich 以使 hg-git 在 Windows 上运行?

我正在尝试在Windows(具体来说是Windows764位)上使用hg-gitMercurial扩展。我安装了Mercurial和Git。我安装了Python2.5(32位)。我按照http://hg-git.github.com/上的说明进行操作安装扩展。最初的easy_install失败,因为没有VisualStudio2003就无法编译dulwich。我通过以下方式手动安装了德威:gitclonegit://git.samba.org/jelmer/dulwich.gitcd德威c:\Python25\pythonsetup.py--pureinstall现在当我运行easy_