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

Update to allow use with tox-uv #11

Merged
merged 1 commit into from
Oct 29, 2024
Merged

Update to allow use with tox-uv #11

merged 1 commit into from
Oct 29, 2024

Conversation

sirosen
Copy link
Owner

@sirosen sirosen commented Oct 29, 2024

Some issues were raised when putting the repo through a trial run of tox with tox-uv installed.

"pip" is not included in package dependencies, but the pip wrapper, pip-install-dependency-groups uses it.

To resolve, tox.ini is updated to use the new dependency_groups support from v4.22.0+

EDIT: this no longer adds pip to the test deps.


📚 Documentation preview 📚: https://dependency-groups--11.org.readthedocs.build/en/11/

@henryiii
Copy link
Contributor

Do the tests need pip? Didn't see that in #10. It is needed for the entry point, of course.

@sirosen
Copy link
Owner Author

sirosen commented Oct 29, 2024

🤦 I thought to myself "surely I have a test for the pip-wrapper which will need this" and you're 100% right that it isn't needed. I'll consider that to be a testing gap which I can address separately. I'll back that out -- good catch!

@sirosen
Copy link
Owner Author

sirosen commented Oct 29, 2024

(And here I was about to pop over to #10 and say I was helping get it all set, but you're already on top of the changes. 😁 )

Some issues were raised when putting the repo through a trial
run of `tox` with `tox-uv` installed.

"pip" is not included in package dependencies, but the pip wrapper,
`pip-install-dependency-groups` uses it. `tox` environments were still
using the wrapper.

To resolve, `tox.ini` is updated to use the new `dependency_groups`
support from v4.22.0+
@henryiii
Copy link
Contributor

I can rebase after this, several things are better, like min version and skip install. :)

allowlist_externals = rm
changedir = docs/
# clean the build dir before rebuilding
commands_pre =
pip-install-dependency-groups -f {toxinidir}/pyproject.toml docs
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FWIW, I left this one to keep a run with pip-install-dependency-groups. but a proper test would be better.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll work up some tests, so let's not worry about it and just get to a more ideal config. (But I'll probably focus on working up pip support before I come back to this, since ideally the pip wrapper can just be dropped in a 2.0 release at some point.)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Personally, I think I'd prefer a dependency-groups command that produced a list of deps that I could feed to pip install or uv pip install or requirements.txt or whatever. :)

@sirosen sirosen merged commit 0d247c7 into main Oct 29, 2024
11 checks passed
@sirosen sirosen deleted the add-pip-dep branch October 29, 2024 22:19
@sirosen sirosen mentioned this pull request Oct 29, 2024
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.

2 participants