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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

python: poetry: add groups and extras options #631

Merged

Conversation

bobvanderlinden
Copy link
Contributor

Resolves #621

This adds two options.

groups = [ <group> ] is the equivalent of using poetry install --with <group>.
It only supports adding groups, as I have not looked into supporting --only nor --without. Maybe someone else could give an opinion of this, as I have never used these cli options before 馃槄.

extras = [ <extra> ] is the equivalent of using poetry install --extras <extra>.

I have now also made sure that the command line option of poetry install are included in the checksum that determines whether poetry install should be re-run. If any of the arguments changes, it will run poetry install the next time devenv shell initializes.

@bobvanderlinden
Copy link
Contributor Author

@sersorrel @mirkolenz could you have a look?

@domenkozar domenkozar merged commit f6c9ce7 into cachix:main Jun 1, 2023
92 checks passed
@bobvanderlinden bobvanderlinden deleted the pr-poetry-install-groups-extras branch June 1, 2023 08:19
@mirkolenz
Copy link
Contributor

@bobvanderlinden Thank you for creating this PR! I especially like the fact that you incorporated the generated install command into the hash 馃槃

@bobvanderlinden
Copy link
Contributor Author

Np 馃槃 Since I'm not using it at the moment, let me whether you run into problems

@mirkolenz mirkolenz mentioned this pull request Jun 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can't automatically poetry install --sync or poetry install --with dev
3 participants