django - 特定 GIT 应用作为 PIP 包安装要求

标签 django git packaging pip

我有这个应用 https://github.com/staticdev/django-crud-utils需要安装 django-sorting 才能工作。但是不可能是原来的django-sorting,而是我做的一个fork:https://github.com/staticdev/django-sorting

如何放到setup.py文件中打包?

谢谢。

最佳答案

编辑您的setup.py 并添加一个条目到dependency_links :

dependency_links = [
    'https://github.com/staticdev/django-sorting/tarball/master#egg=django-sort',
],

虽然您的install_requires 有类似的内容:

install_requires=[
    'Django>=1.3.1',
    'django-pagination>=1.0.7',
    'django-sort',
],

如果你想使用需求文件,请关注Yuval Adam's advice .

关于django - 特定 GIT 应用作为 PIP 包安装要求,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12141762/

相关文章:

python - 无法解析余数 : '==obj.id' from 'sobj.id==obj.id'

git - 无法访问远程存储库以导入 Go 模块

r - 在安装过程中从互联网下载数据的包

python - Python 打包的当前 future 是否发生了变化?

Django默认语言

django - 反向访问器冲突

python - Django- "python manage.py runserver"不工作

windows - Git,切换分支时出现错误 : "Deletion of directory ' <dirname >' failed. Should I try again?" Started after I set custom folder icon

git - 如何编写 Git 本地分支检查脚本?

php - 你如何为 LAMP 项目实现 "one step build"?