admin管理员组文章数量:1393874
I'm looking for a way to programmatically list all minor Python releases consistent with a required_python
string parsed from a pyproject.toml
file.
For example, suppose the parsed required_python
string is >=3.10
. Then as of today the script should return:
["3.10", "3.11", "3.12", "3.13"] # note: doesn't include pre-releases
(Unless other scripting languages or tools simplify the job considerably, I have a slight preference for the solution to be in python itself as the rest of the script used to get the required_python
string is in python.)
Background: I am trying to set up a Github Actions workflow with a matrix
strategy that includes all supported Python versions of a package. The plan is to first extract those versions in a prior job and then feed them into the matrix.
My best plan so far involves parsing / to manually check all releases consistent with the requirement string. But this seems an awful lot of code for something that seems like there should be a much easier solution.
本文标签: continuous integrationList all Python releases satisfying requirementsStack Overflow
版权声明:本文标题:continuous integration - List all Python releases satisfying requirements - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744083948a2588166.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论