Title: semantic-release generate-config --pyproject produces unreadable toml · Issue #702 · python-semantic-release/python-semantic-release · GitHub
Open Graph Title: semantic-release generate-config --pyproject produces unreadable toml · Issue #702 · python-semantic-release/python-semantic-release
X Title: semantic-release generate-config --pyproject produces unreadable toml · Issue #702 · python-semantic-release/python-semantic-release
Description: The problem when i execute semantic-release generate-config -f toml --pyproject >> pyproject.toml it adds tons of NUL in the file. Its impossible to handle that. My IDE is pycharm. The same in notepad++. Expected behavior to get a correc...
Open Graph Description: The problem when i execute semantic-release generate-config -f toml --pyproject >> pyproject.toml it adds tons of NUL in the file. Its impossible to handle that. My IDE is pycharm. The same in note...
X Description: The problem when i execute semantic-release generate-config -f toml --pyproject >> pyproject.toml it adds tons of NUL in the file. Its impossible to handle that. My IDE is pycharm. The same i...
Opengraph URL: https://github.com/python-semantic-release/python-semantic-release/issues/702
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"semantic-release generate-config --pyproject produces unreadable toml","articleBody":"## The problem\r\n\r\nwhen i execute semantic-release generate-config -f toml --pyproject \u003e\u003e pyproject.toml it adds tons of NUL in the file. Its impossible to handle that. My IDE is pycharm. The same in notepad++.\r\n\r\n## Expected behavior\r\n\r\nto get a correct formatted, easy to read .toml\r\n\r\n## Environment\r\n\r\nPlease state which OS you are using and provide the output of the following commands:\r\n\r\n```shell\r\npython --version \r\n3.11\r\npip --version\r\npip 23.2.1 from C:\\Users\\xx.xx\\AppData\\Local\\Programs\\Python\\Python311\\Lib\\site-packages\\pip (python 3.11)\r\nsemantic-release --version\r\nsemantic-release, version 8.0.8\r\npip freeze\r\naltgraph==0.17.3\r\nblinker==1.6.2\r\ncertifi==2023.7.22\r\ncffi==1.15.1\r\ncharset-normalizer==3.2.0\r\nclick==8.1.7\r\ncolorama==0.4.6\r\nconfigparser==6.0.0\r\ncoverage==7.3.0\r\ncryptography==41.0.3\r\ndefusedxml==0.7.1\r\ndistlib==0.3.7\r\ndotty-dict==1.3.1\r\nFlask==2.3.3\r\nfrom-root==1.3.0\r\ngitdb==4.0.10\r\nGitPython==3.1.34\r\nidna==3.4\r\nimportlib-metadata==6.8.0\r\nimportlib-resources==5.7.0\r\niniconfig==2.0.0\r\nitsdangerous==2.1.2\r\njaraco.classes==3.3.0\r\njeepney==0.8.0\r\nJinja2==3.1.2\r\njira==3.5.2\r\nkeyring==24.2.0\r\nldap3==2.9.1\r\nmarkdown-it-py==3.0.0\r\nMarkupSafe==2.1.3\r\nmdurl==0.1.2\r\nmocker==1.1.1\r\nmore-itertools==10.1.0\r\noauthlib==3.2.2\r\npackaging==23.1\r\npefile==2023.2.7\r\npluggy==1.3.0\r\npyasn1==0.5.0\r\npybuilder==0.13.10\r\npycparser==2.21\r\npycrest==0.0.6\r\npydantic==1.10.12\r\nPygments==2.16.1\r\nPyHamcrest==2.0.4\r\npyinstaller==5.13.2\r\npyinstaller-hooks-contrib==2023.8\r\nPyMySQL==1.1.0\r\npynsist==2.8\r\nPySimpleGUI==4.60.5\r\npytest==7.4.0\r\npytest-mock==3.11.1\r\npython-gitlab==3.15.0\r\npython-semantic-release==8.0.8\r\npywin32==306\r\npywin32-ctypes==0.2.2\r\nrequests==2.31.0\r\nrequests-oauthlib==1.3.1\r\nrequests-toolbelt==1.0.0\r\nrequests_download==0.1.2\r\nrich==13.5.2\r\nscreeninfo==0.8.1\r\nSecretStorage==3.3.3\r\nshellingham==1.5.3\r\nshutils==0.1.0\r\nsmmap==5.0.0\r\ntomlkit==0.12.1\r\ntyping_extensions==4.7.1\r\nurllib3==2.0.4\r\nWerkzeug==2.3.7\r\nyarg==0.1.9\r\nzipp==3.16.2\r\n\r\n```\r\n\r\nPlease also indicate which Python build tool(s) you are using (e.g. `pip`, `build`,\r\n`poetry`, etc.), including the version number too.\r\npybuilder, pip\r\n\r\n## Configuration\r\n\r\nPlease add your `semantic-release` configuration, and if applicable also provide\r\nyour `build-system` configuration from `pyproject.toml`.\r\n\r\npyproject.toml:\r\n```\r\n[build-system]\r\nrequires = [\"pybuilder\u003e=0.12.0\"]\r\nbuild-backend = \"pybuilder.pep517\"\r\n[ t o o l . s e m a n t i c _ r e l e a s e ] \r\n \r\n a s s e t s = [ ] \r\n \r\n c o m m i t _ m e s s a g e = \" { v e r s i o n } \\ n \\ n A u t o m a t i c a l l y g e n e r a t e d b y p y t h o n - s e m a n t i c - r e l e a s e \" \r\n \r\n c o m m i t _ p a r s e r = \" a n g u l a r \" \r\n \r\n l o g g i n g _ u s e _ n a m e d _ m a s k s = f a l s e \r\n \r\n m a j o r _ o n _ z e r o = t r u e \r\n \r\n t a g _ f o r m a t = \" v { v e r s i o n } \" \r\n \r\n \r\n \r\n [ t o o l . s e m a n t i c _ r e l e a s e . b r a n c h e s . m a i n ] \r\n \r\n m a t c h = \" ( m a i n | m a s t e r ) \" \r\n \r\n p r e r e l e a s e _ t o k e n = \" r c \" \r\n \r\n p r e r e l e a s e = f a l s e \r\n \r\n \r\n \r\n [ t o o l . s e m a n t i c _ r e l e a s e . c h a n g e l o g ] \r\n \r\n t e m p l a t e _ d i r = \" t e m p l a t e s \" \r\n \r\n c h a n g e l o g _ f i l e = \" C H A N G E L O G . m d \" \r\n \r\n e x c l u d e _ c o m m i t _ p a t t e r n s = [ ] \r\n \r\n \r\n \r\n [ t o o l . s e m a n t i c _ r e l e a s e . c h a n g e l o g . e n v i r o n m e n t ] \r\n \r\n b l o c k _ s t a r t _ s t r i n g = \" { % \" \r\n \r\n b l o c k _ e n d _ s t r i n g = \" % } \" \r\n \r\n v a r i a b l e _ s t a r t _ s t r i n g = \" { { \" \r\n \r\n v a r i a b l e _ e n d _ s t r i n g = \" } } \" \r\n \r\n c o m m e n t _ s t a r t _ s t r i n g = \" { # \" \r\n \r\n c o m m e n t _ e n d _ s t r i n g = \" # } \" \r\n \r\n t r i m _ b l o c k s = f a l s e \r\n \r\n l s t r i p _ b l o c k s = f a l s e \r\n \r\n n e w l i n e _ s e q u e n c e = \" \\ n \" \r\n \r\n k e e p _ t r a i l i n g _ n e w l i n e = f a l s e \r\n \r\n e x t e n s i o n s = [ ] \r\n \r\n a u t o e s c a p e = t r u e \r\n \r\n \r\n \r\n [ t o o l . s e m a n t i c _ r e l e a s e . c o m m i t _ a u t h o r ] \r\n \r\n e n v = \" G I T _ C O M M I T _ A U T H O R \" \r\n \r\n d e f a u l t = \" s e m a n t i c - r e l e a s e \u003c s e m a n t i c - r e l e a s e \u003e \" \r\n \r\n \r\n \r\n [ t o o l . s e m a n t i c _ r e l e a s e . c o m m i t _ p a r s e r _ o p t i o n s ] \r\n \r\n a l l o w e d _ t a g s = [ \" b u i l d \" , \" c h o r e \" , \" c i \" , \" d o c s \" , \" f e a t \" , \" f i x \" , \" p e r f \" , \" s t y l e \" , \" r e f a c t o r \" , \" t e s t \" ] \r\n \r\n m i n o r _ t a g s = [ \" f e a t \" ] \r\n \r\n p a t c h _ t a g s = [ \" f i x \" , \" p e r f \" ] \r\n \r\n \r\n \r\n [ t o o l . s e m a n t i c _ r e l e a s e . r e m o t e ] \r\n \r\n n a m e = \" o r i g i n \" \r\n \r\n t y p e = \" g i t h u b \" \r\n \r\n i g n o r e _ t o k e n _ f o r _ p u s h = f a l s e \r\n \r\n \r\n \r\n [ t o o l . s e m a n t i c _ r e l e a s e . r e m o t e . t o k e n ] \r\n \r\n e n v = \" G H _ T O K E N \" \r\n \r\n \r\n \r\n [ t o o l . s e m a n t i c _ r e l e a s e . p u b l i s h ] \r\n \r\n d i s t _ g l o b _ p a t t e r n s = [ \" d i s t / * \" ] \r\n \r\n u p l o a d _ t o _ v c s _ r e l e a s e = t r u e \r\n \r\n \r\n \r\n \r\n```\r\n\r\n## Logs\r\n\r\nPlease provide debug logs for the command you are using with the `-vv` flag, e.g.\r\n\r\n```\r\n[10:48:31] DEBUG [semantic_release.cli.commands.main] DEBUG main.py:101\r\n main.main: Forwarding to generate-config\r\n```\r\n\r\nIf using GitHub actions, ensure the `root_options` contains the `-vv` flag\r\nfor verbosity, and attach your workflow definition.\r\n\r\n## Additional context\r\n\r\ni can not add those NULs to the project.toml pasted here. so i attach a little screenshot:\r\n\r\n\r\n","author":{"url":"https://github.com/damnmso","@type":"Person","name":"damnmso"},"datePublished":"2023-09-07T08:50:33.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":18},"url":"https://github.com/702/python-semantic-release/issues/702"}
| 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:55ec7108-3465-07a6-5689-ac7f8982dead |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AAA4:189F37:FEC8B5:146D087:69923EF9 |
| html-safe-nonce | 7e7317e5c3564156409034963dbf3899837bcae2f62f1a2c17cb46f0c381f442 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQUE0OjE4OUYzNzpGRUM4QjU6MTQ2RDA4Nzo2OTkyM0VGOSIsInZpc2l0b3JfaWQiOiI3MDc1NTcxNjQxMDgyODU1MTYyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | ad056571eeb9b24de01c45565391e66bb85ff0a56f5b90bc4c3a40ecfb25a86e |
| hovercard-subject-tag | issue:1885415327 |
| 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/python-semantic-release/python-semantic-release/702/issue_layout |
| twitter:image | https://opengraph.githubassets.com/87a7a5a47356419c3426819a38d9075fba352530ee302e0af882a12564f06747/python-semantic-release/python-semantic-release/issues/702 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/87a7a5a47356419c3426819a38d9075fba352530ee302e0af882a12564f06747/python-semantic-release/python-semantic-release/issues/702 |
| og:image:alt | The problem when i execute semantic-release generate-config -f toml --pyproject >> pyproject.toml it adds tons of NUL in the file. Its impossible to handle that. My IDE is pycharm. The same in note... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | damnmso |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/python-semantic-release/python-semantic-release git https://github.com/python-semantic-release/python-semantic-release.git |
| octolytics-dimension-user_id | 116517554 |
| octolytics-dimension-user_login | python-semantic-release |
| octolytics-dimension-repository_id | 39765732 |
| octolytics-dimension-repository_nwo | python-semantic-release/python-semantic-release |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 39765732 |
| octolytics-dimension-repository_network_root_nwo | python-semantic-release/python-semantic-release |
| 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 | 848bc6032dcc93a9a7301dcc3f379a72ba13b96e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width