-
-
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
Not working correctly on Fedora when installing from git #48
Comments
Hello, and thanks for the report! I do think #39 will ultimately be the solution to this, just as soon as Poetry 1.2.x is released with the plugin functionality. In the meantime, I'm not sure if there's a good fix. Maybe the plugin could delay some of its own imports until the patched Poetry functions execute? If you'd be willing to test it, I could give you a wheel with that change. In the linked bug report, I see some references to |
I had to
|
Thanks for confirming. If you could test this on your system, here's a version of the plugin that delays its third-party imports until they're needed: poetry_dynamic_versioning-0.12.7+issue.48.r1.zip The standard library imports still happen when the plugin is loaded, but I'm hoping those are fine. |
Thank you. How am I supposed to test that? I tried adding this diff to my Diff: diff --git a/pyproject.toml b/pyproject.toml
index 3f6bd83..835563b 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -115,5 +115,5 @@ multi_line_output = 3 # black interop
use_parentheses = true
[build-system]
-requires = ["poetry_core>=1.0.0", "poetry-dynamic-versioning"]
+requires = ["poetry_core>=1.0.0", "https://github.com/mtkennerly/poetry-dynamic-versioning/files/6515915/poetry_dynamic_versioning-0.12.7%2Bissue.48.r1.zip#egg=poetry-dynamic-versioning"]
build-backend = "poetry.core.masonry.api" Failure:
|
The simplest option would probably be to extract and manually install the wheel, then run Here's an example of what I get on Windows:
|
The directory is the build isolation environment, not out of tree build dir. |
@mtkennerly If you give me a patch/commit instead of a tar, I can verify the fix. |
Ah, right 😅
Sure, you can use 302fb47. Thanks! |
This make me quite confident the fix works. |
Awesome, thank you for confirming :D In that case, I'll put a release together shortly. |
I just released v0.13.0 with this fix. Please let me know if you encounter any further issues. |
🎉 ❯ pipx install git+https://github.com/copier-org/copier.git
installed package copier 6.0.0a6.post31.dev0+20c151e, Python 3.9.5
These apps are now globally available
- copier
done! ✨ 🌟 ✨
❯ copier --version
copier 6.0.0a6.post31.dev0+20c151e |
Copied from https://bugzilla.redhat.com/show_bug.cgi?id=1960138
According to Fedora maintainer, probably fixing #39 should fix this issue as a side effect.
However, since this is a separate explicit issue, I think it's better for it to be tracked separately.
See https://bugzilla.redhat.com/show_bug.cgi?id=1960138#c2 for an analysis about why this is happening and how it could be fixed.
Thanks!
The text was updated successfully, but these errors were encountered: