admin管理员组文章数量:1351527
I'm using tox and wonder what is the intended way to build my package for distribution. I see that tox is building the package as part of the normal execution. It even provides a dedicated pkgenv
section, but does not explain much how to use it.
There seem to be two options on how to build a package:
- Explicitly, using a testenv:
[testenv:build]
commands = python3 -m build
- Implicitly, relying on the package being created in
.tox/.pkg/dist
during the test process
Option (1) seems odd, given that there's a pkgenv
available which would not be used in that case, but Option (2) cannot be called directly and is only created as a side effect of calling any of the targets.
Does anyone which one it is? And what is the purpose of pkgenv
? Can one use it like:
[pkgenv:build]
commands = python3 -m build
本文标签: pythonProper way of building a package with toxStack Overflow
版权声明:本文标题:python - Proper way of building a package with tox - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1743898274a2558194.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论