Title: Decide on how we handle different source layouts · Issue #316 · usethis-python/usethis-python · GitHub
Open Graph Title: Decide on how we handle different source layouts · Issue #316 · usethis-python/usethis-python
X Title: Decide on how we handle different source layouts · Issue #316 · usethis-python/usethis-python
Description: Motivation A development of #242. One of the really nasty things about source layouts in Python is the level of duplcation required to get it right. setuptools has [tool.setuptools.packages.find] where = ["src"] and hatch has src implici...
Open Graph Description: Motivation A development of #242. One of the really nasty things about source layouts in Python is the level of duplcation required to get it right. setuptools has [tool.setuptools.packages.find] w...
X Description: Motivation A development of #242. One of the really nasty things about source layouts in Python is the level of duplcation required to get it right. setuptools has [tool.setuptools.packages.find] w...
Opengraph URL: https://github.com/usethis-python/usethis-python/issues/316
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Decide on how we handle different source layouts","articleBody":"**Motivation**\nA development of #242.\n\nOne of the really nasty things about source layouts in Python is the level of duplcation required to get it right. `setuptools` has \n\n```TOML\n[tool.setuptools.packages.find]\nwhere = [\"src\"]\n```\n\nand `hatch` has `src` implicitly by default.\n\nAnd then we have more duplication with tools, for example\n\n```\n[tool.coverage.run]\nsource = [ \"src\" ]\n```\n\n```\n[tool.ruff]\nsrc = [ \"src\" ]\n```\n\nWouldn't it be great if this was available at the `project.layout = [\"src\"]` level with a PEP specification or similar? That's a very complicated question but I think we can at least have a `[tool.usethis.layout]` and [make the problem worse](https://xkcd.com/927/) while allowing us to at least keep all these fields in sync and effectively migrate between layouts.\n\n**Summary of desired enhancement**\nConsider the above and how we want to handle layouts in general.\n","author":{"url":"https://github.com/nathanjmcdougall","@type":"Person","name":"nathanjmcdougall"},"datePublished":"2025-02-20T23:10:51.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/316/usethis-python/issues/316"}
| 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:25f73df3-c388-2c7f-606a-8fcf2751aa46 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D004:18BA88:4691B8F:626A06F:6A4F75EC |
| html-safe-nonce | 9f0b1d53ca4b66fa92bcafcaae3353e77864cf13c673b674e8ae47318d9e1c56 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMDA0OjE4QkE4ODo0NjkxQjhGOjYyNkEwNkY6NkE0Rjc1RUMiLCJ2aXNpdG9yX2lkIjoiMjY5NTE4NjIwNzMxMTA5OTM3MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | f0213449fa17bcf7b9171b1b741982ef5d6ff2ba482c08dfd5bd45855d5510e8 |
| hovercard-subject-tag | issue:2867480546 |
| 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/316/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2d11c968650ec132f169ebbcf05dd95ffd3d697625f2ce876332841fe35b335c/usethis-python/usethis-python/issues/316 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2d11c968650ec132f169ebbcf05dd95ffd3d697625f2ce876332841fe35b335c/usethis-python/usethis-python/issues/316 |
| og:image:alt | Motivation A development of #242. One of the really nasty things about source layouts in Python is the level of duplcation required to get it right. setuptools has [tool.setuptools.packages.find] w... |
| 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 | 4b249b445842943ed31549e027f57a8ade9881ed |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width