-
-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clarifiaction on install from git+ssh URL #81
Comments
Could you share the pyproject.toml, or at least the |
Yes. Looks like this: [build-system]
requires = ["poetry>=1.2.0b1", "poetry-dynamic-versioning-plugin"]
build-backend = "poetry.masonry.api"
[tool.poetry-dynamic-versioning]
enable = true
vcs = "git"
format = "v{base}" I also came across these issues:
which seems to suggest that this plugin would not work for my use case. Apparently the developers from poetry seem to have a rather strong opinion on supporting this particular use case :(. |
Well, those tickets are just talking about whether Poetry should support it natively, but that's definitely a use case that this plugin tries to enable. Looking at the code for from poetry.core.masonry.api import build_sdist
from poetry.core.masonry.api import build_wheel
from poetry.core.masonry.api import get_requires_for_build_sdist
from poetry.core.masonry.api import get_requires_for_build_wheel
from poetry.core.masonry.api import prepare_metadata_for_build_wheel I'm surprised it doesn't have some plugin-aware wrappers, and I'm not sure if that's intentional or just outstanding work. Could you try with [build-system]
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning"]
build-backend = "poetry.core.masonry.api" |
Let me give it a try and I'll let you know. |
Yup, that did the trick.
which eventually leads to:
and because this is a CLI tool (build on top of click), I can now see the version coming from the tag: orchestra --version
orchestra, version 1.0.1 Pretty neat stuff! Out of curiosity, what was the issue here? |
I still want/need to do some more testing to ensure everything installs properly when starting from a clean environment but I think I'm good now. Big thanks!!! |
Great! I'm glad that helped.
There's some more info here: python-poetry/poetry#5701 . Basically, |
I've just ran into the same issue. I've tried with [build-system]
requires = ["poetry>=1.0.0", "poetry-dynamic-versioning-plugin"]
build-backend = "poetry.masonry.api" [build-system]
requires = ["poetry>=1.0.0", "poetry-dynamic-versioning"]
build-backend = "poetry.masonry.api" [build-system]
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning"]
build-backend = "poetry.core.masonry.api" [build-system]
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning-plugin"]
build-backend = "poetry.core.masonry.api" and can't get versioning to be set correctly when installing via I'm using Poetry version My entire [tool.poetry]
name = "gitbackup"
version = "0.0.0"
description = ""
authors = ["<...>"]
include = ["log.yaml"]
[tool.poetry.dependencies]
python = "^3.10"
GitPython = "^3.1.27"
PyYAML = "^6.0"
poetry = "^1.1.14"
[tool.poetry.dev-dependencies]
[tool.poetry.scripts]
git-backup = 'gitbackup:main'
[tool.poetry-dynamic-versioning]
enable = true
pattern = "^(?P<base>\\d+(\\.\\d+)*)$"
[build-system]
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning-plugin"]
build-backend = "poetry.core.masonry.api"
[tool.isort]
<...>
[tool.black]
<...> Do you have any ideas as to what else to try? |
What version is it generating? Exactly This one should work: [build-system]
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning"]
build-backend = "poetry.core.masonry.api" What output do you get for the following commands?
(future reference: https://github.com/mtkennerly/playground/tree/eb35d0da7978e806144e17ff60102a3332645a27) For me, I get:
...where |
Exactly
I've just retried with these build settings and have the same issue. I get the following output, where
The same as you:
|
Well, that's bizarre. That narrows it down to just a difference between the two repositories, but I don't know what it could be. Is it a private repo? I'd like to try installing it on my end, if you wouldn't mind temporarily giving me view-only access. |
Of course. You should have an invite. There's a |
Ah, so that's what the
Pip was ignoring |
🤦 That's entirely a typo I should have spotted! Thanks!! |
Hi there,
I followed the instructions as described in the README.md and things work pretty well as long as I use poetry related commands to build/install my package. However I'm when I try this:
the actual package version gets set to
0.0.0
. I'm using pip==22.1.1 and python 3.8.12. I suspect it has something to do with that caveat you mention in the README that relates to PEP-517, but I was under the impression that this tools should work provided that a recent version of pip is used.Any ideas, what I might be doing wrong?
The text was updated successfully, but these errors were encountered: