You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@steve.apache.org by "tisonkun (via GitHub)" <gi...@apache.org> on 2025/11/05 01:22:24 UTC

[PR] Migrate from poetry to uv [steve]

tisonkun opened a new pull request, #60:
URL: https://github.com/apache/steve/pull/60

   The next steps in list:
   
   1. Use `uv run` for `v3/server/bin` scripts. This needs to correspondingly update dependencies and `asf-load-ldap.py` & `load_fakedata.py` content.
   2. Run code format `uv run ruff format` and assert the format in CI workflow.
   3. Write a quickstart document based on the new setup.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@steve.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Migrate from poetry to uv [steve]

Posted by "tisonkun (via GitHub)" <gi...@apache.org>.
tisonkun commented on code in PR #60:
URL: https://github.com/apache/steve/pull/60#discussion_r2492658043


##########
v3/pyproject.toml:
##########
@@ -33,5 +33,15 @@ lint = [
     "types-aiofiles>=24.1.0,<25",
 ]
 
+
+[build-system]
+requires = ["uv_build"]
+build-backend = "uv_build"
+
 [tool.uv]
 default-groups = "all"
+
+# see https://docs.astral.sh/uv/reference/settings/#build-backend_module-name
+[tool.uv.build-backend]
+module-root = ""
+module-name = "steve"

Review Comment:
   `module-root = ""` to allow a flat layout. The default `uv` setup requires a `src` layout while we won't follow that at least for now.
   
   Ref -
   
   * https://docs.astral.sh/uv/reference/settings/#build-backend_module-root
   * https://docs.astral.sh/uv/concepts/build-backend/



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@steve.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Migrate from poetry to uv [steve]

Posted by "tisonkun (via GitHub)" <gi...@apache.org>.
tisonkun merged PR #60:
URL: https://github.com/apache/steve/pull/60


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@steve.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org