{"action":"created","issue":{"url":"https://api.github.com/repos/pypa/setuptools_scm/issues/213","repository_url":"https://api.github.com/repos/pypa/setuptools_scm","labels_url":"https://api.github.com/repos/pypa/setuptools_scm/issues/213/labels{/name}","comments_url":"https://api.github.com/repos/pypa/setuptools_scm/issues/213/comments","events_url":"https://api.github.com/repos/pypa/setuptools_scm/issues/213/events","html_url":"https://github.com/pypa/setuptools_scm/issues/213","id":300003880,"number":213,"title":"support own dev numbers?","user":{"login":"jab","id":64992,"avatar_url":"https://avatars1.githubusercontent.com/u/64992?v=4","gravatar_id":"","url":"https://api.github.com/users/jab","html_url":"https://github.com/jab","followers_url":"https://api.github.com/users/jab/followers","following_url":"https://api.github.com/users/jab/following{/other_user}","gists_url":"https://api.github.com/users/jab/gists{/gist_id}","starred_url":"https://api.github.com/users/jab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jab/subscriptions","organizations_url":"https://api.github.com/users/jab/orgs","repos_url":"https://api.github.com/users/jab/repos","events_url":"https://api.github.com/users/jab/events{/privacy}","received_events_url":"https://api.github.com/users/jab/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-02-25T06:52:56Z","updated_at":"2018-02-26T01:44:46Z","closed_at":null,"author_association":"NONE","body":"I had already created the tag \"0.15.0.dev0\" of my package, before uploading that development version to PyPI. I made some further progress and wanted to release a new development version, and so I created the tag \"0.15.0.dev1\". It seems I've found out the hard way though (doesn't seem to be documented?) that dev versions greater than 0 are currently unsupported – I'm now hitting this AssertionError:\r\n\r\nhttps://github.com/pypa/setuptools_scm/blob/46df188a54e3eb2b0dfb93dbae59fb23249fbcce/setuptools_scm/version.py#L124\r\n\r\n(``assert tail == '0', 'own dev numbers are unsupported'``)\r\n\r\nIf I comment out that assertion, `guess_next_dev_version` works like a charm. Could you please explain why that assertion is there, whether there are any plans to add support for \"own dev numbers\" (seems like totally valid usage, no?), and what you recommend doing in the meantime?\r\n\r\nThanks 😊"},"comment":{"url":"https://api.github.com/repos/pypa/setuptools_scm/issues/comments/368367270","html_url":"https://github.com/pypa/setuptools_scm/issues/213#issuecomment-368367270","issue_url":"https://api.github.com/repos/pypa/setuptools_scm/issues/213","id":368367270,"user":{"login":"jab","id":64992,"avatar_url":"https://avatars1.githubusercontent.com/u/64992?v=4","gravatar_id":"","url":"https://api.github.com/users/jab","html_url":"https://github.com/jab","followers_url":"https://api.github.com/users/jab/followers","following_url":"https://api.github.com/users/jab/following{/other_user}","gists_url":"https://api.github.com/users/jab/gists{/gist_id}","starred_url":"https://api.github.com/users/jab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jab/subscriptions","organizations_url":"https://api.github.com/users/jab/orgs","repos_url":"https://api.github.com/users/jab/repos","events_url":"https://api.github.com/users/jab/events{/privacy}","received_events_url":"https://api.github.com/users/jab/received_events","type":"User","site_admin":false},"created_at":"2018-02-26T01:44:46Z","updated_at":"2018-02-26T01:44:46Z","author_association":"NONE","body":"Ok, so creating \".devN\" style tags is unsupported, but you find this out neither from the documentation, nor at the time that you create a tag like \"X.Y.Z.dev0\". Creating such a tag is a time bomb that you only find out about who knows how much later – not even once you eventually create a tag like \"X.Y.Z.dev1\", but only in the NEXT change, who knows how long AFTER creating the .dev1 tag, when your CI suddenly breaks with an error nowhere near any of the changes that were just made. 🤦‍♂️ It definitely seems like a footgun to allow the \"X.Y.Z.dev0\" in the first place, which gets right past that `assert `tail == \"0\"`.\r\n\r\nSo, besides documenting this prominently in the README/long_description, this should be caught sooner, ideally as soon as the first \".devN\" style tag is ever detected. Further, the message \"own dev numbers are unsupported\" should be improved with a better description of what went wrong and an hint about how to actually fix the problem, e.g. `Detected a tag like \"X.Y.Z.dev*\", but .dev* tags are unsupported. Do ... to fix the problem and try again.`\r\n\r\nAnd on that note, *what IS the recommended fix* when someone has already gotten themselves into this mess?\r\n\r\nI've worked around this for now by deleting my \"0.15.0.dev1\" tag on GitHub, which got my CI working again, but is far from ideal, as I now no longer have a git tag for the revision that corresponds to the PyPI release. And all other contributors/environments that maintain a clone of the repo need their local \"0.15.0.dev1\" tags deleted too, or else will continue to get the error: e.g. readthedocs.org builds will continue to fail until their checkouts can be wiped and recreated.\r\n\r\nToo late for me, but would be happy to see this improved for future users so they don't shoot themselves in the foot like I did.\r\n\r\nThanks for your consideration :blush:"}}
{"actor":{"display_login":"jab"}}