-
Notifications
You must be signed in to change notification settings - Fork 1
Try uv setup #652
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
base: main
Are you sure you want to change the base?
Try uv setup #652
Conversation
| { name = "Nicola Coretti", email = "[email protected]" }, | ||
| { name = "Ariel Schulz", email = "[email protected]" }, | ||
| ] | ||
| requires-python = ">=3.10,<4.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ re-orders section, I think consistently - could check docu
| "infrastructure", | ||
| ] | ||
| dynamic = ["dependencies"] | ||
| dependencies = [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ does correctly and orders
| "exasol", | ||
| "infrastructure", | ||
| ] | ||
| dynamic = ["dependencies"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
➖ needed to remove this manually, as it remains
| "twine>=6.1.0,<7", | ||
| ] | ||
|
|
||
| [project.urls] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
originally this was incorrectly labeled, so it didn't get converted.
neither poetry nor uv were angry about that.
| Issues = "https://github.com/exasol/python-toolbox/issues" | ||
| Changelog = "https://exasol.github.io/python-toolbox/changelog.html" | ||
|
|
||
| [project.scripts] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ correctly converted & works in CLI (after creating new env)
| tbx = "exasol.toolbox.tools.tbx:CLI" | ||
| sphinx-multiversion = "exasol.toolbox.sphinx.multiversion:main" | ||
|
|
||
| # unused entry point as using project.scripts instead |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
➖ kept/added this and it should be manually removed
| # manually remove | ||
| #[project.entry-points] | ||
|
|
||
| [dependency-groups] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ did this correctly and ordered it
pyproject.toml
Outdated
| "cookiecutter>=2.6.0,<3", | ||
| ] | ||
|
|
||
| # Needed for poetry intsall to run again |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
➖ I don't think there's a way to preserve poetry too much, so this needed to be manually copied back over these two sections (see intermediate commits).
| sphinx-inline-tabs = "^2023.4.21" | ||
| sphinx-design = ">=0.5.0,<1" | ||
| sphinx-toolbox = "^4.0.0" | ||
| typer = { extras = ["all"], version = ">=0.7.0" } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ uv told us typer[all] isn't a thing, but ➖ we needed to manually do
078a17f to
f5233d3
Compare
| sphinx-multiversion = 'exasol.toolbox.sphinx.multiversion:main' | ||
|
|
||
| # manually re-add as needed for code | ||
| [tool.poetry.requires-plugins] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
➖ need to manually re-add
| "F", # Pyflakes rules (excluding F401) | ||
| "UP", # pyupgrade rules | ||
| "D", # Docstring rules | ||
| "E", # Syntax errors |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sometimes it removes comments. Here it kept them, but this would be something to watch out for.
| "cookiecutter>=2.6.0,<3", | ||
| ] | ||
|
|
||
| # Needed for poetry install to run again |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
➖ needed to override these two sections with what we had before
| { name = "Nicola Coretti", email = "[email protected]" }, | ||
| { name = "Ariel Schulz", email = "[email protected]" }, | ||
| ] | ||
| requires-python = ">=3.10,<4.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that this migration mostly works for PTB as most dependencies are main ones but would need to switch to Poetry 2.2.x or update PTB otherwise to handle dev dependencies moving to groups.
Checklist
Note: If any of the items in the checklist are not relevant to your PR, just check the box.
For any Pull Request
Is the following correct:
When Changes Were Made
Did you:
When Preparing a Release
Have you: