Title: Better handling of `hatch` package location declaration · Issue #386 · usethis-python/usethis-python · GitHub
Open Graph Title: Better handling of `hatch` package location declaration · Issue #386 · usethis-python/usethis-python
X Title: Better handling of `hatch` package location declaration · Issue #386 · usethis-python/usethis-python
Description: Motivation Following from #347 and #383; we are explicitly pointing hatch to the package location. So we need some way of deciding layout structure. It's time to make a heuristic function for this, and test the case where the src dir exi...
Open Graph Description: Motivation Following from #347 and #383; we are explicitly pointing hatch to the package location. So we need some way of deciding layout structure. It's time to make a heuristic function for this,...
X Description: Motivation Following from #347 and #383; we are explicitly pointing hatch to the package location. So we need some way of deciding layout structure. It's time to make a heuristic function for t...
Opengraph URL: https://github.com/usethis-python/usethis-python/issues/386
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Better handling of `hatch` package location declaration","articleBody":"**Motivation**\nFollowing from #347 and #383; we are explicitly pointing hatch to the package location. So we need some way of deciding layout structure. It's time to make a heuristic function for this, and test the case where the `src` dir exists but is empty (since in that case hatch will still need explicit help beyond its heuristics).\n\nThis needs to be considered as a part of #316. We also don't know how the `uv` build backend will affect this.\n\n**Summary of desired enhancement**\nTest and improve handling of this case.\n","author":{"url":"https://github.com/nathanjmcdougall","@type":"Person","name":"nathanjmcdougall"},"datePublished":"2025-03-05T01:33:10.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/386/usethis-python/issues/386"}
| 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:cdad4cf8-9cfc-630b-59c8-c92a09165800 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A3B2:3007FC:3056648:42432CA:6A4F03F0 |
| html-safe-nonce | ae25c690ec678aa9a6a768f99b4419211865507428401b2752fad4c0767d4104 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBM0IyOjMwMDdGQzozMDU2NjQ4OjQyNDMyQ0E6NkE0RjAzRjAiLCJ2aXNpdG9yX2lkIjoiNDk1MzIwMDYxNTMzNTMzMDgwMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 3f9b0bd3eb1f105c1235f8b0dbb986ac20e7c0240f51ab5cec85545febf6475b |
| hovercard-subject-tag | issue:2895855185 |
| 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/386/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9589ab95a50aa901ac9d239ca7c4dd57687700e498eb220553f3dbf578ff3108/usethis-python/usethis-python/issues/386 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9589ab95a50aa901ac9d239ca7c4dd57687700e498eb220553f3dbf578ff3108/usethis-python/usethis-python/issues/386 |
| og:image:alt | Motivation Following from #347 and #383; we are explicitly pointing hatch to the package location. So we need some way of deciding layout structure. It's time to make a heuristic function for this,... |
| 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 | b92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9 |
| 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 | 2b8f23afb982271f1b22258a94aede67a6b77760 |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width