Python项目推荐的.gitignore文件? [英] Recommended .gitignore file for Python projects?
问题描述
我正在尝试收集我的一些默认设置,有一件事我意识到我没有标准的是.gitignore文件。有一个很棒的线索,显示了适用于Visual Studio项目的好的.gitignore ,但是我没有看到有关Python和相关工具(PyGTK,Django)的许多建议。
I'm trying to collect some of my default settings, and one thing I realized I don't have a standard for is .gitignore files. There's a great thread showing a good .gitignore for Visual Studio projects, but I don't see many recommendations for Python and related tools (PyGTK, Django).
到目前为止,我有...
So far, I have...
*.pyc
*.pyo
...编译对象和...
...for the compiled objects and...
build/
dist/
...用于setuptools输出。
...for the setuptools output.
任何更多的建议给我?
推荐答案
使用 buildout 我在 .gitignore
(以及 *。pyo
和 *。pyc
):
.installed.cfg
bin
develop-eggs
dist
downloads
eggs
parts
src/*.egg-info
lib
lib64
T hanks Jacob Kaplan-Moss
此外,我倾向于将 .svn
加入,因为我们使用了几个SCM-s,我在工作。
Also I tend to put .svn
in since we use several SCM-s where I work.
这篇关于Python项目推荐的.gitignore文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!