Skip to content
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

Add nox-poetry #570

Merged
merged 10 commits into from Sep 29, 2020
Merged

Add nox-poetry #570

merged 10 commits into from Sep 29, 2020

Conversation

cjolowicz
Copy link
Owner

@cjolowicz cjolowicz commented Sep 29, 2020

This PR adds nox-poetry, a spinoff of this project, as a global dependency. This package replaces the boilerplate that was previously injected into the noxfile.py of generated projects to integrate Nox and Poetry.

Having this on PyPI means this glue code no longer needs to be copied into every project, and users can receive bugfixes in a normal way, without the hassle of updating their project from the template. Also, moving this into a separate package made it possible to provide a much better integration of Poetry and Nox than a bunch of functions in noxfile.py were able to. With nox-poetry, users can write Nox sessions just as they would with a setuptools-based project; only a single import at the top of the file is required.

There are also some drawbacks, which should be named here: This package needs to be installed into the global developer environment, alongside Nox. So we're no longer only depending on Poetry and Nox. Furthermore, nox-poetry currently relies on monkey-patching to intercept calls to session.install. (Maybe a plugin architecture for Nox could help here?)

Closes #567

@cjolowicz cjolowicz added the enhancement New feature or request label Sep 29, 2020
@cjolowicz cjolowicz added this to the 2020.10.15 milestone Sep 29, 2020
@cjolowicz cjolowicz merged commit 17e3ed9 into master Sep 29, 2020
@cjolowicz cjolowicz deleted the retrocookie-pr/nox-poetry branch September 29, 2020 21:09
@cjolowicz cjolowicz mentioned this pull request Sep 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use nox-poetry
1 participant