Title: Internal config to avoid subprocessing uv · Issue #296 · usethis-python/usethis-python · GitHub
Open Graph Title: Internal config to avoid subprocessing uv · Issue #296 · usethis-python/usethis-python
X Title: Internal config to avoid subprocessing uv · Issue #296 · usethis-python/usethis-python
Description: Motivation As a pre-requisite to #241. Will also make tests a lot faster if we can avoid subprocess calls. Similar to how we use frozen=True by default, I think we could use use_uv=False by default for tests and just make exceptions for ...
Open Graph Description: Motivation As a pre-requisite to #241. Will also make tests a lot faster if we can avoid subprocess calls. Similar to how we use frozen=True by default, I think we could use use_uv=False by default...
X Description: Motivation As a pre-requisite to #241. Will also make tests a lot faster if we can avoid subprocess calls. Similar to how we use frozen=True by default, I think we could use use_uv=False by default...
Opengraph URL: https://github.com/usethis-python/usethis-python/issues/296
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Internal config to avoid subprocessing uv","articleBody":"**Motivation**\nAs a pre-requisite to #241. Will also make tests a lot faster if we can avoid subprocess calls. Similar to how we use `frozen=True` by default, I think we could use `use_uv=False` by default for tests and just make exceptions for the cases where we need to have `frozen=False` - i.e. cases where we need to access the venv and actually install something. Hopefully this would speed up the test suite. \n\n**Summary of desired enhancement**\nAdd internal config state which allows us to avoid a uv subprocess call. Will need to create alternative functions for each call; for example, instead of `uv add` we will need to manually add to the dependencies lists (without lower bounds, presumably).\n\nThis wouldn't be exposed in the interface anywhere, it would just be internal for now.\n\nWe wouldn't re-configure the tests to use this new config yet, that can be done later.","author":{"url":"https://github.com/nathanjmcdougall","@type":"Person","name":"nathanjmcdougall"},"datePublished":"2025-02-11T09:07:14.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/296/usethis-python/issues/296"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:388de956-c8de-fa8d-754f-f5092bf9111e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E05C:6D260:D77753:126AD01:6A4D5B17 |
| html-safe-nonce | c7ad5c61ef7878a5a497cf953d0606e5928f9ce7288b1ac808b30fb4335077ab |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMDVDOjZEMjYwOkQ3Nzc1MzoxMjZBRDAxOjZBNEQ1QjE3IiwidmlzaXRvcl9pZCI6Ijc0MTY1OTUyMzE3MzE1ODYzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 01c4a77da0135686693e5b74d2303b211ed33e7f9a3ea5cd3a26b891f8672367 |
| hovercard-subject-tag | issue:2844745204 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/usethis-python/usethis-python/296/issue_layout |
| twitter:image | https://opengraph.githubassets.com/03b2c26809bf2d0c21890e2b134636293425db3dbbd67b0351654cce98ef8b19/usethis-python/usethis-python/issues/296 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/03b2c26809bf2d0c21890e2b134636293425db3dbbd67b0351654cce98ef8b19/usethis-python/usethis-python/issues/296 |
| og:image:alt | Motivation As a pre-requisite to #241. Will also make tests a lot faster if we can avoid subprocess calls. Similar to how we use frozen=True by default, I think we could use use_uv=False by default... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | nathanjmcdougall |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2a1443ff9733a3016431263ea73c93d8fe00c195eb4a7670ac30e7848f045441 |
| turbo-cache-control | no-preview |
| go-import | github.com/usethis-python/usethis-python git https://github.com/usethis-python/usethis-python.git |
| octolytics-dimension-user_id | 216362695 |
| octolytics-dimension-user_login | usethis-python |
| octolytics-dimension-repository_id | 842189705 |
| octolytics-dimension-repository_nwo | usethis-python/usethis-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 842189705 |
| octolytics-dimension-repository_network_root_nwo | usethis-python/usethis-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f3bdd3157ea1f0fd738d408eceeead721acf1dc3 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width