最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Poetry publish with custom version - Stack Overflow

programmeradmin4浏览0评论

Currently we are using poetry version 1.7.1 and we have a requirement to build and publish the artifacts by adding random suffix to the version. The version <1.2.3> is the version that will be passed from pyproject.toml and now i need the packages to be published to jfrog with the version 1.2.3- (random suffix in our case is the timestamp).

Is there a way to achieve this without actually changing the version from pyproject.toml file

Commands used to build and publish are- Poetry build Poetry publish

Note - We are not incrementing the version and for every build run we need a unique package to be published by adding timestamp and how to achieve this feature dynamically

I have tried using poetry version $version to bump the version i need but still it is not detecting the packages to get published

Currently we are using poetry version 1.7.1 and we have a requirement to build and publish the artifacts by adding random suffix to the version. The version <1.2.3> is the version that will be passed from pyproject.toml and now i need the packages to be published to jfrog with the version 1.2.3- (random suffix in our case is the timestamp).

Is there a way to achieve this without actually changing the version from pyproject.toml file

Commands used to build and publish are- Poetry build Poetry publish

Note - We are not incrementing the version and for every build run we need a unique package to be published by adding timestamp and how to achieve this feature dynamically

I have tried using poetry version $version to bump the version i need but still it is not detecting the packages to get published

Share Improve this question asked yesterday JV44JV44 111 bronze badge New contributor JV44 is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct. 1
  • Please provide enough code so others can better understand or reproduce the problem. – Community Bot Commented yesterday
Add a comment  | 

1 Answer 1

Reset to default 0

Since Poetry 2.0 Poetry provides a --local-version parameter for poetry build. See https://python-poetry.org/docs/cli/#build

发布评论

评论列表(0)

  1. 暂无评论