What is PasteDeploy and do I need to learn it if Eggs in Python are considered gone?

泄露秘密 提交于 2019-12-05 05:40:41

The egg format is absolutely not deprecated and anywhere that you read that is lying to you. There are a lot of issues with Python packaging, but Pyramid embraces the state of the art.

Your link discusses goals for the future, but you can't deprecate something that does not yet have a replacement. It will be many years before egg support is actually dropped (there are thousands of packages that use it). That document is just discussing the futuristic goals of where things should go, and (ignoring Python 3) the community has a strong sentiment toward backward compatibility so even if new formats come out, eggs will continue to be supported for a long time.

PasteDeploy is the package that Pyramid uses for parsing INI files, configuring a WSGI pipeline and configuring a WSGI server.

The documentation for PasteDeploy can be a little rough if you don't have something specific in mind that you are trying to find. Pyramid's docs cover the basic INI settings well enough that you should be able to live off of that for a while and if you have something you are trying to accomplish that you can't find, ask another question on SO or use the mailing list.

Aside from all of this, PasteDeploy is again just used for parsing INI files. Pyramid itself does not actually require the use of an INI in this way, but it's the simplest way to get people off the ground.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!