Skip to content

Conversation

@giograno
Copy link
Member

@giograno giograno commented Dec 15, 2025

This PR aims at simplifying/modernizing the dev UX and the project structure. In particular:

  • It replaces tox with uv for Package management.
  • Moves to ruff for formatting & linting;
  • Improves the GitHub workflow to test and publish the package.
  • Removes all the unnecessary configurations and artifacts we inherited from the previous project.

@giograno giograno changed the title Move to UV Introduce uv and simplify project Dec 15, 2025
@giograno giograno requested a review from bentsku December 15, 2025 16:10
@giograno giograno self-assigned this Dec 15, 2025
@giograno giograno marked this pull request as ready for review December 15, 2025 16:11
Copy link

@bentsku bentsku left a comment

Choose a reason for hiding this comment

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

Nice, this looks great! A nice clean up 🧹

I have a few questions in comments, and I'm not sure I'm fully aware of all the best practices when it comes to packaging/library we provide and how we want that to look like.

A lot of the PR is type clean up after fixing this library to 3.13 too 😄


# This workflow will upload a Python Package using Twine when a release is created
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
Copy link

Choose a reason for hiding this comment

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

question: I guess this workflow still releases a new package, right? This is not mentioned anymore

Copy link

Choose a reason for hiding this comment

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

question: should we keep precommit, but maybe use the same as LocalStack? ruff, etc?

"Download" = "https://pypi.python.org/pypi/py-avro-schema"
"Source Code" = "https://github.com/localstack/py-avro-schema"

[tool.ruff]
Copy link

Choose a reason for hiding this comment

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

nit: I wonder if we should move the [tool...] parts under the dependency parts, so that they are visible first and and they are "top-level" fields?


install:
uv venv --clear
uv sync --no-dev
Copy link

Choose a reason for hiding this comment

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

interesting new API 😄 I haven't really used uv yet, but I guess this is somewhat compatible with the pip commands. I wonder which direction we're going to go for LS!

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.

3 participants