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

uv_sync_flags and tox 4.21 native toml configuration #116

Closed
azmeuk opened this issue Oct 29, 2024 · 2 comments · Fixed by #119
Closed

uv_sync_flags and tox 4.21 native toml configuration #116

azmeuk opened this issue Oct 29, 2024 · 2 comments · Fixed by #119

Comments

@azmeuk
Copy link

azmeuk commented Oct 29, 2024

I tested passing groups to uv_sync_flags with this configuration (with the new tox 4.21 native toml configuration support), as suggested in #113, but without success at the moment:

[tool.tox.env.doc]
runner = "uv-venv-lock-runner"
uv_sync_flags = ["--group=doc"]
commands = [
    ["sphinx-build", "--builder", "html", "doc", "build/sphinx/html"],
    ["sphinx-build", "--builder", "man", "doc", "build/sphinx/html"],
]

It fails with TypeError: '--group=doc' is not list.

When passing a simple string like uv_sync_flags = "--group=doc" it also fails with the same error message.

Originally posted by @azmeuk in #114 (comment)

@gaborbernat
Copy link
Member

https://github.com/tox-dev/tox-uv/releases/tag/1.16.0 also now have support for dedicated field https://github.com/tox-dev/tox-uv#dependency_groups to be more unified with upstream tox

@azmeuk
Copy link
Author

azmeuk commented Oct 30, 2024

Thank you for the quick fix!

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 a pull request may close this issue.

2 participants