Repository navigation
Switch to uv for development - #1315
Conversation
- Configure tox to work with uv
…vale, doctest, html, and linkcheckbroken - Remove unused all target - Draft test target to run tox
…vale, doctest, html, and linkcheckbroken - Remove unused `all` target - Add `test` target to run tox - Add `format` target to run ruff - Update `tox.ini` to work with uv and uv-tox
…onfigure git, and start development or documenting.
|
@niccokunzmann I can't remember what we did to fix this error https://github.com/collective/icalendar/actions/runs/24280322355/job/70901092097?pr=1315#step:6:74. Do you remember? |
This is one indicator. These are our edits for the problem:
I think, it somehow instructs UV to use icalendar from that source. Also the clash between uv and hatchling is something I don't know much about. We could also change from hatchling to uv as a build backend. I am not attached. The only thing that I like having is the ability to release a new version based on tags. But that could be possible anyway with this: https://stackoverflow.com/a/32965521/1320237, so we can keep the same interface we have having at the moment, with |
|
Thanks for doing the big load. Whenever you feel like it, I can start tinkering with this branch :) |
|
The test environment should not need the sphinx-icalendar package. |
|
The tests are running. We need to open an issue that the pytz tests are not working. |
stevepiercy
left a comment
There was a problem hiding this comment.
Please see my suggestions and questions.
Sorry, I don't understand which would be better. Do we need nopytz tests? Removing tests would not remove the feature, but would remove testing the absence of the feature. Additionally, the feature has been deprecated since 6.0.0, although we said it "may still be used" per https://icalendar.readthedocs.io/en/stable/how-to/upgrade.html#pytz-support. I think we should announce that pytz support will be removed in 8.0.0, since that would be a change in the promise. I think that we should make an announcement in the 7.0.4 release that pytz support, deprecated since 6.0.0, shall be removed in 8.0.0. That would give fair warning. Does that help? |
Co-authored-by: Steve Piercy <web@stevepiercy.com>
Co-authored-by: Steve Piercy <web@stevepiercy.com>
Co-authored-by: Steve Piercy <web@stevepiercy.com>
niccokunzmann
left a comment
There was a problem hiding this comment.
This is good to go.
@stevepiercy have a final look if you like and merge it if you are satisfied!
Yes, that helps. There is the pytz issue and it is good if we drop pytz. It is outdated now. #1101 - can you update that on how you would like this to go or put in a PR? |
s/uv run pip list/uv tree
|
@SashankBhamidi would you please do a review, per your request? I think this is ready to merge. We decided to defer the replacement of tox with uv for another PR. This PR moves us forward, and makes it a lot easier to get started for contributors. |
Should have been removed with f5bbd96 Co-authored-by: Sashank <hello@sashank.wiki>
Co-authored-by: Sashank <hello@sashank.wiki>
|
@SashankBhamidi thanks for the review! I double-checked I'm going ahead and merge this monster. Thanks everyone! |
|
@stevepiercy You're right, apologies. I didn't actually test the command locally. Thanks for the patience. |
This is a follow up to the just merged #1315, per a discussion with @SashankBhamidi in Signal. tox actually handles this black magic, not Make. https://github.com/tox-dev/tox/blob/4dcde44c0746138421bef38f1c0dac42ee505223/src/tox/config/cli/env_var.py#L24 No change log is needed, since it's removing dead code.
Closes issue
Description
Switch to uv for development.
Update documentation with new commands.
Checklist
CHANGES.rst.I've added or updated tests if applicable.📚 Documentation preview 📚: https://icalendar--1315.org.readthedocs.build/