René's URL Explorer Experiment


Title: feat: stamp a canonical dev version instead of semver · Issue #1000 · python-semantic-release/python-semantic-release · GitHub

Open Graph Title: feat: stamp a canonical dev version instead of semver · Issue #1000 · python-semantic-release/python-semantic-release

X Title: feat: stamp a canonical dev version instead of semver · Issue #1000 · python-semantic-release/python-semantic-release

Description: Question I'm running into issues with python-semantic-release and poetry with my dev builds. I probably have some config set wrong, but python-semantic-release has generated version = "0.8.0-dev.2" in my pyproject.toml and when I run poe...

Open Graph Description: Question I'm running into issues with python-semantic-release and poetry with my dev builds. I probably have some config set wrong, but python-semantic-release has generated version = "0.8.0-dev.2"...

X Description: Question I'm running into issues with python-semantic-release and poetry with my dev builds. I probably have some config set wrong, but python-semantic-release has generated version = "0.8...

Opengraph URL: https://github.com/python-semantic-release/python-semantic-release/issues/1000

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"feat: stamp a canonical dev version instead of semver","articleBody":"## Question\r\n\r\nI'm running into issues with python-semantic-release and poetry with my dev builds. I probably have some config set wrong, but `python-semantic-release` has generated `version = \"0.8.0-dev.2\"` in my `pyproject.toml` and when I run `poetry build` I end up with\r\n\r\n```\r\nBuilding my-project (0.8.0-dev.2)\r\n  - Building sdist\r\n  - Built my-project-0.8.0.dev2.tar.gz\r\n  - Building wheel\r\n  - Built my-project-0.8.0.dev2-py3-none-any.whl\r\n``` \r\n\r\nNote there's a `.` (period) between the dev token and the number 2 in the python-semantic-release generated version string but not in the filename. This is causing me grief because in my build script I'm using `poetry version` to find the file that was created, and I cannot because they don't match.\r\n\r\nIt looks to me like `python-semantic-release` is generating a version that matches the longer regex from https://peps.python.org/pep-0440/#appendix-b-parsing-version-strings-with-regular-expressions but it doesn't match the \"canonical\" version (`r'^([1-9][0-9]*!)?(0|[1-9][0-9]*)(\\.(0|[1-9][0-9]*))*((a|b|rc)(0|[1-9][0-9]*))?(\\.post(0|[1-9][0-9]*))?(\\.dev(0|[1-9][0-9]*))?$'`)\r\n\r\nhttps://packaging.python.org/en/latest/specifications/version-specifiers/#version-specifiers also states\r\n\r\n```\r\nThe canonical public version identifiers MUST comply with the following scheme:\r\n\r\n[N!]N(.N)*[{a|b|rc}N][.postN][.devN]\r\n```\r\n\r\nWhich isn't true for `0.8.0-dev.2` (should be `0.8.0.dev2` if I'm reading this correctly).\r\n\r\nI'm assuming that `poetry build` \"canonicalizes\" the version when creating the sdist/wheel files?\r\n\r\nIs it possible to ensure that `python-semantic-release` only generates \"canonical\" version strings in the first place? Or am I missing something?\r\n\r\n### Configuration\r\n\r\n```\r\n[tool.semantic_release]\r\nupload_to_pypi = false\r\nupload_to_vcs_release = false\r\nbuild_command = \"./scripts/build.sh \u0026\u0026 ./scripts/publish.sh\"\r\ntag_format = \"v{version}\"\r\nversion_toml = [\r\n    \"pyproject.toml:tool.poetry.version\"\r\n]\r\n\r\n[tool.semantic_release.branches.main]\r\nmatch = \"(main|master)\"\r\nprerelease_token = \"rc\"\r\nprerelease = false\r\n\r\n[tool.semantic_release.branches.other]\r\nmatch = \"^(feat|fix|perf)/.+\"\r\nprerelease_token = \"dev\"\r\nprerelease = true\r\n```","author":{"url":"https://github.com/david-waterworth","@type":"Person","name":"david-waterworth"},"datePublished":"2024-08-10T05:29:43.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":9},"url":"https://github.com/1000/python-semantic-release/issues/1000"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:ec1db55a-3865-c20d-e785-0cbaa5de89a7
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idEB98:1DF95C:264D27:303C62:6991F9B8
html-safe-noncecda352cafd7e4bb716f7057d29bba8daedccb2f963219087f580d3ae9244f543
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQjk4OjFERjk1QzoyNjREMjc6MzAzQzYyOjY5OTFGOUI4IiwidmlzaXRvcl9pZCI6Ijg0NjYxMTk2ODg4Nzg5NDY3NDQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac4f5781651b72dc84b3f727010bb97d9a95bd8b54014347e043ea120af7c0cc4a
hovercard-subject-tagissue:2458913546
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-semantic-release/python-semantic-release/1000/issue_layout
twitter:imagehttps://opengraph.githubassets.com/f462a7bfb0bfcb2c84dfb1495c0fee35172f6eab54a0f09f00634324fc36fedf/python-semantic-release/python-semantic-release/issues/1000
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/f462a7bfb0bfcb2c84dfb1495c0fee35172f6eab54a0f09f00634324fc36fedf/python-semantic-release/python-semantic-release/issues/1000
og:image:altQuestion I'm running into issues with python-semantic-release and poetry with my dev builds. I probably have some config set wrong, but python-semantic-release has generated version = "0.8.0-dev.2"...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedavid-waterworth
hostnamegithub.com
expected-hostnamegithub.com
None42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b
turbo-cache-controlno-preview
go-importgithub.com/python-semantic-release/python-semantic-release git https://github.com/python-semantic-release/python-semantic-release.git
octolytics-dimension-user_id116517554
octolytics-dimension-user_loginpython-semantic-release
octolytics-dimension-repository_id39765732
octolytics-dimension-repository_nwopython-semantic-release/python-semantic-release
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id39765732
octolytics-dimension-repository_network_root_nwopython-semantic-release/python-semantic-release
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release848bc6032dcc93a9a7301dcc3f379a72ba13b96e
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python-semantic-release/python-semantic-release/issues/1000#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-semantic-release%2Fpython-semantic-release%2Fissues%2F1000
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-semantic-release%2Fpython-semantic-release%2Fissues%2F1000
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python-semantic-release%2Fpython-semantic-release
Reloadhttps://github.com/python-semantic-release/python-semantic-release/issues/1000
Reloadhttps://github.com/python-semantic-release/python-semantic-release/issues/1000
Reloadhttps://github.com/python-semantic-release/python-semantic-release/issues/1000
python-semantic-release https://github.com/python-semantic-release
python-semantic-releasehttps://github.com/python-semantic-release/python-semantic-release
Notifications https://github.com/login?return_to=%2Fpython-semantic-release%2Fpython-semantic-release
Fork 264 https://github.com/login?return_to=%2Fpython-semantic-release%2Fpython-semantic-release
Star 1k https://github.com/login?return_to=%2Fpython-semantic-release%2Fpython-semantic-release
Code https://github.com/python-semantic-release/python-semantic-release
Issues 63 https://github.com/python-semantic-release/python-semantic-release/issues
Pull requests 24 https://github.com/python-semantic-release/python-semantic-release/pulls
Actions https://github.com/python-semantic-release/python-semantic-release/actions
Security 0 https://github.com/python-semantic-release/python-semantic-release/security
Insights https://github.com/python-semantic-release/python-semantic-release/pulse
Code https://github.com/python-semantic-release/python-semantic-release
Issues https://github.com/python-semantic-release/python-semantic-release/issues
Pull requests https://github.com/python-semantic-release/python-semantic-release/pulls
Actions https://github.com/python-semantic-release/python-semantic-release/actions
Security https://github.com/python-semantic-release/python-semantic-release/security
Insights https://github.com/python-semantic-release/python-semantic-release/pulse
New issuehttps://github.com/login?return_to=https://github.com/python-semantic-release/python-semantic-release/issues/1000
New issuehttps://github.com/login?return_to=https://github.com/python-semantic-release/python-semantic-release/issues/1000
feat: stamp a canonical dev version instead of semverhttps://github.com/python-semantic-release/python-semantic-release/issues/1000#top
confirmedPrevent from becoming stalehttps://github.com/python-semantic-release/python-semantic-release/issues?q=state%3Aopen%20label%3A%22confirmed%22
featureA new feature or a feature requesthttps://github.com/python-semantic-release/python-semantic-release/issues?q=state%3Aopen%20label%3A%22feature%22
needs-updateNeeds status update from maintainershttps://github.com/python-semantic-release/python-semantic-release/issues?q=state%3Aopen%20label%3A%22needs-update%22
https://github.com/david-waterworth
https://github.com/david-waterworth
david-waterworthhttps://github.com/david-waterworth
on Aug 10, 2024https://github.com/python-semantic-release/python-semantic-release/issues/1000#issue-2458913546
https://peps.python.org/pep-0440/#appendix-b-parsing-version-strings-with-regular-expressionshttps://peps.python.org/pep-0440/#appendix-b-parsing-version-strings-with-regular-expressions
https://packaging.python.org/en/latest/specifications/version-specifiers/#version-specifiershttps://packaging.python.org/en/latest/specifications/version-specifiers/#version-specifiers
confirmedPrevent from becoming stalehttps://github.com/python-semantic-release/python-semantic-release/issues?q=state%3Aopen%20label%3A%22confirmed%22
featureA new feature or a feature requesthttps://github.com/python-semantic-release/python-semantic-release/issues?q=state%3Aopen%20label%3A%22feature%22
needs-updateNeeds status update from maintainershttps://github.com/python-semantic-release/python-semantic-release/issues?q=state%3Aopen%20label%3A%22needs-update%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.