洞察探索open banking如何通过小程序容器技术助力金融企业实现数据安全和数字化转型
522
2022-10-26
一种新的方式来声明Python应用程序的依赖关系
Pipfile
Warning: this project is under active development.
A Pipfile is a new (and much better!) way to declare dependencies for your Python applications. It will be a full replacement for the well-pervasive requirements.txt files, currently installable with $ pip install -r.
The Concept
A Pipfile will be superior to a requirements.txt file in a number of ways:
Expressive Python syntax for declaring all types of Python dependencies.Grouping of sub-dependency groups (e.g. a testing group).Use of a single file only will be extremely encouraged.Pipfile.lock
Example Pipfile
Note—this is an evolving work in progress:
# Note: There will be a default source, and context manager can also be used.source('https://pypi.org/', verify_ssl=True)package('requests')package('Django', '==1.6')package('pinax', git='git://github.com/pinax/pinax.git', ref='1.4', editable=True)with group('development'): package('nose')
Example Pipfile.lock
Note—this file is always to be generated, not modified or constructed by a user:
{ "_meta": { "sources": [ {"url": "https://pypi.org/", "verify_ssl": true}, ] }, "default": [ {"name": "requests", "version": "0.11.2", "hash": "..."}, {"name": "Django", "version": "1.6", "hash": "..."}, {"name": "pinax", "git": "git://...", "ref": "1.4", "editable": true}, ], "development": [ {"name": "nose", "version": "1.3.7", "hash": "..."}, ]}
Useful Links
pypa/pip#1795: Requirements 2.0Basic Concept Gist (fork of @dstufft's)
Documentation
The documentation for this project will (eventually) reside at pypi.org.
Discussion
If you run into bugs, you can file them in our issue tracker.
You can also join #pypa on Freenode to ask questions or get involved.
Code of Conduct
Everyone interacting in the pipfile project's codebases, issue trackers, chat rooms, and mailing lists is expected to follow the PyPA Code of Conduct.
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~