question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

  • I have searched the issues of this repo and believe that this is not a duplicate.
  • I have searched the documentation and believe that my question is not covered.

Question

I’m migrating a project to poetry

I would like to make the version based on the contents of a file, say JSON or __init__.py any advice you can offer?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:4
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
finswimmercommented, Sep 11, 2019

I’m looking for the exact same thing.

The reason for this is, that I need the version number within my package as well.

I could imagine somthing like this:

[tool.poetry]
name = "my_package"
version = {path = "/path/to/package.json"}

Where package.json must contain a key version:

{
  "version": "0.1.0"
}
0reactions
stale[bot]commented, Nov 29, 2019

Closing this issue automatically because it has not had any activity since it has been marked as stale. If you think it is still relevant and should be addressed, feel free to open a new one.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Handling versions which change over time
Using dynamic versions and changing modules can lead to unreproducible builds. ... By default, Gradle caches dynamic versions of dependencies for 24 hours....
Read more >
Using dynamic versions | Gradle Dependency Management
Using dynamic versions ; [1.0, 2.0]. We can use all versions greater than or equal to 1.0 and lower than or equal to...
Read more >
poetry-dynamic-versioning - PyPI
Dynamic versioning plugin for Poetry. This is a Python 3.7+ plugin for Poetry 1.2.0+ and Poetry Core 1.0.0+ to enable dynamic versioning based...
Read more >
Dynamic versions in editable installations - Packaging
I'm curious if dynamic version metadata for editable installations has been considered, rejected, tabled, or something else. Thanks!
Read more >
Is there a way to specify a dynamic version for a GitHub Action?
Semantic versioning essentially allows all users of your actions to reference only the major version and profit from patches and new features as ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found