Title: package_name used different ways should set/validated differently · Issue #621 · NLeSC/python-template · GitHub
Open Graph Title: package_name used different ways should set/validated differently · Issue #621 · NLeSC/python-template
X Title: package_name used different ways should set/validated differently · Issue #621 · NLeSC/python-template
Description: Checklist before submitting an issue I have checked the existing issues and couldn't find an issue about this bug. When #211 was fixed there was package_name and directory_name questions. Issue details The package_name question value is ...
Open Graph Description: Checklist before submitting an issue I have checked the existing issues and couldn't find an issue about this bug. When #211 was fixed there was package_name and directory_name questions. Issue det...
X Description: Checklist before submitting an issue I have checked the existing issues and couldn't find an issue about this bug. When #211 was fixed there was package_name and directory_name questions. Issue...
Opengraph URL: https://github.com/NLeSC/python-template/issues/621
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"package_name used different ways should set/validated differently","articleBody":"## Checklist before submitting an issue\r\n\r\n- [x] I have checked the [existing issues](https://github.com/NLeSC/python-template/issues) and couldn't find an issue about this bug.\r\n\r\nWhen #211 was fixed there was package_name and directory_name questions.\r\n\r\n## Issue details\r\n\r\nThe `package_name` question value is used in multiple places:\r\n1. name on pypi, in `template/pyproject.toml:project.name`\r\n2. name when importing, in `template/src/{{package_name}}`\r\n\r\nThe name on pypi and import could be different for an existing package or a template user might want to have them different.\r\n\r\nSee https://blogs.gentoo.org/mgorny/2023/02/09/the-inconsistencies-around-python-package-naming-and-the-new-policy/ for a comparison what naming styles there are.\r\n\r\nCould there be a warning when given package name does not follow PEP8?\r\nCould package_name be split into package_name and directory_name? Maybe have the second question have default of the first answer.\r\n","author":{"url":"https://github.com/sverhoeven","@type":"Person","name":"sverhoeven"},"datePublished":"2024-08-28T11:06:22.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/621/python-template/issues/621"}
| 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:7cbe0697-184b-98b3-f6a7-6f73fa6ee9bd |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BF3C:14D25E:1262DD:19359A:6981CC50 |
| html-safe-nonce | 620e7dff39b12a8e7a372e8e1ec4a8924254a01c224d7a03e2353c31c8d0fe02 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRjNDOjE0RDI1RToxMjYyREQ6MTkzNTlBOjY5ODFDQzUwIiwidmlzaXRvcl9pZCI6IjcyNTQzNzgzMzY1NjkzNzk5MjAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 9e59cc50b7e9fbac06435c2b4d542b678dcd2d57c555e88879723f89607d20ef |
| hovercard-subject-tag | issue:2491774668 |
| 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/NLeSC/python-template/621/issue_layout |
| twitter:image | https://opengraph.githubassets.com/118f31aeb5514094a27eae16d0f3eb5fd4d4330ede2835ebaee4627df8ee2940/NLeSC/python-template/issues/621 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/118f31aeb5514094a27eae16d0f3eb5fd4d4330ede2835ebaee4627df8ee2940/NLeSC/python-template/issues/621 |
| og:image:alt | Checklist before submitting an issue I have checked the existing issues and couldn't find an issue about this bug. When #211 was fixed there was package_name and directory_name questions. Issue det... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sverhoeven |
| hostname | github.com |
| expected-hostname | github.com |
| None | 95dd6eb30a064b87bd2c653e622fe2eb6a2ec1d12751c5463c252220548e75a4 |
| turbo-cache-control | no-preview |
| go-import | github.com/NLeSC/python-template git https://github.com/NLeSC/python-template.git |
| octolytics-dimension-user_id | 1705862 |
| octolytics-dimension-user_login | NLeSC |
| octolytics-dimension-repository_id | 68704490 |
| octolytics-dimension-repository_nwo | NLeSC/python-template |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 68704490 |
| octolytics-dimension-repository_network_root_nwo | NLeSC/python-template |
| 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 | 7f9fe298cbc605034955dde47054b68dbf531efd |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width