-
Notifications
You must be signed in to change notification settings - Fork 18
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
Suggestion to help complete idiots like me #389
Comments
Hey, we're all idiots most of the time :) The question of whether to install Nox in Poetry, or Poetry via nox-poetry, or Nox and Poetry next to each other keeps coming up. So giving some guidance sounds like a good idea. Or at least clarifying what nox-poetry depends on, and doesn't. Thanks :) Generally, I advise people to install Nox and Poetry independently from each other, if only to simplify things. pipx is great for this kind of thing. In your case though, I'm wondering what your session definition looks like. Did you actually install pytest into the session, using |
@cjolowicz I actually did not. But I have one thing going for me. At least I'm self-aware.. :D Thanks for your patience. I do have One reason that I like the idea of using My version of
But when I try from
FWIW, this is the version I'm using of
I get the same error when trying to run After doing Thanks again for your patience. I hope you find this feedback useful. I really do appreciate this project and it looks super useful. I hope all the noise doesn't obscure my appreciation. Regards |
Correct. You're not the first to get confused by this, so we should probably improve the docs here.
That's a good habit. I can definitely recommend taking a look at pipx here. In any case, I would recommend to keep the Nox and Poetry installations separate; hacking a Nox installation into ~/.poetry is asking for trouble. As to installing Nox with Poetry, you're needlessly constraining the dependencies of your project, and creating complexity by nesting multiple tools that manage Python environments.
My bad, it's
I'm glad it's working for you now. I'll leave this open for now, as a reminder to clarify the docs. (Feel free to send a PR 😉) Edit: I don't think nox-poetry requires more than Poetry >= 1.0.0, but it's true that a lot of bugs got fixed in Poetry since then. |
Awesome. Thanks. If I get more comfortable with my set up, I don't mind sending a PR. I'm not sure I could write something cohesive just yet. |
Grr... I tried installing FWIW, if I just run Notice it's csv_reconcile-0.2.5-cp38-cp38-macosx_11_0_x86_64.whl, though it's a 3.7 test.
Double Grrr.. I think there's still a bug in poetry. It's not building the right binary even when I set I'll add to that poetry issue, but it seems like something you'd want a heads up on. Regards P.S. If you'd like more context, just let me know. If it helps, my project is public. |
FWIW, I opened an issue. This appears to be purely about poetry mis-naming the wheel. |
Hi there,
First, thanks for this project. It looks great.
I think I know why I'm getting the following warning when trying to run
nox
:I'm guessing that
nox
must be run outside of poetry. Might it be a good idea to make this requirement explicit in the documentation? There are a lot of us idiots out there. ;-)Thanks again
OS: iOS 11.1
Python: 3.7
nox: 2021.6.6
Expectation: That it would use the virtualenv provided by nox
The text was updated successfully, but these errors were encountered: