Title: `pytest` test discovery doesn't work well with a `src` layout without a build backend · Issue #347 · usethis-python/usethis-python · GitHub
Open Graph Title: `pytest` test discovery doesn't work well with a `src` layout without a build backend · Issue #347 · usethis-python/usethis-python
X Title: `pytest` test discovery doesn't work well with a `src` layout without a build backend · Issue #347 · usethis-python/usethis-python
Description: Motivation If we create the pyproject.toml without a build backend then uv won't install the package in editable mode and so it won't be importable by pytest. Ideally the user wouldn't need to start with uv init --lib to get a smooth exp...
Open Graph Description: Motivation If we create the pyproject.toml without a build backend then uv won't install the package in editable mode and so it won't be importable by pytest. Ideally the user wouldn't need to star...
X Description: Motivation If we create the pyproject.toml without a build backend then uv won't install the package in editable mode and so it won't be importable by pytest. Ideally the user wouldn't ...
Opengraph URL: https://github.com/usethis-python/usethis-python/issues/347
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`pytest` test discovery doesn't work well with a `src` layout without a build backend","articleBody":"**Motivation**\nIf we create the `pyproject.toml` without a build backend then `uv` won't install the package in editable mode and so it won't be importable by `pytest`. Ideally the user wouldn't need to start with `uv init --lib` to get a smooth experience - it would be better that we default to including a build backend.\n\n**Summary of desired enhancement**\nInclude a build backend by default when creating ensuring `pyproject.toml`.","author":{"url":"https://github.com/nathanjmcdougall","@type":"Person","name":"nathanjmcdougall"},"datePublished":"2025-02-25T20:57:14.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/347/usethis-python/issues/347"}
| 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:a301d509-ba84-83c3-53a1-59487eae5419 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9224:1A1F1B:18C7337:225E456:6A4EB67F |
| html-safe-nonce | 64caf757caa2cce9737e626d65b6d80cb348682791bbcee7abd74acbe140961f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MjI0OjFBMUYxQjoxOEM3MzM3OjIyNUU0NTY6NkE0RUI2N0YiLCJ2aXNpdG9yX2lkIjoiNzk2ODUyODAzOTUxOTYzMDk3NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 02c9eee6d941a439c5ee74e99fe154e4ffc79a2c3ac234c0de3bed32a1c65d5c |
| hovercard-subject-tag | issue:2879546283 |
| 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/347/issue_layout |
| twitter:image | https://opengraph.githubassets.com/60c5a55f5b5c7f887cd349661e3e9d7169751ca1ad1ad68d2bc8bec53dfdef8b/usethis-python/usethis-python/issues/347 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/60c5a55f5b5c7f887cd349661e3e9d7169751ca1ad1ad68d2bc8bec53dfdef8b/usethis-python/usethis-python/issues/347 |
| og:image:alt | Motivation If we create the pyproject.toml without a build backend then uv won't install the package in editable mode and so it won't be importable by pytest. Ideally the user wouldn't need to star... |
| 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 | 41b6ab3ba6d20a71766ac245b5a4a94c6fc672a9cd4da7d44c1b33ab8bf6a21c |
| 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 | e6a744804e8e70f97b4d5a18a94dcc63db22f97a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width