Title: Switch packaging from `setup.py` to `pyproject.toml` · Issue #4129 · python-telegram-bot/python-telegram-bot · GitHub
Open Graph Title: Switch packaging from `setup.py` to `pyproject.toml` · Issue #4129 · python-telegram-bot/python-telegram-bot
X Title: Switch packaging from `setup.py` to `pyproject.toml` · Issue #4129 · python-telegram-bot/python-telegram-bot
Description: What kind of feature are you missing? Where do you notice a shortcoming of PTB? PTB currently builds the wheels for uploading to PyPI by running the command python setup.py sdist bdist_wheel (from the wiki). However, the use of that comm...
Open Graph Description: What kind of feature are you missing? Where do you notice a shortcoming of PTB? PTB currently builds the wheels for uploading to PyPI by running the command python setup.py sdist bdist_wheel (from ...
X Description: What kind of feature are you missing? Where do you notice a shortcoming of PTB? PTB currently builds the wheels for uploading to PyPI by running the command python setup.py sdist bdist_wheel (from ...
Opengraph URL: https://github.com/python-telegram-bot/python-telegram-bot/issues/4129
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Switch packaging from `setup.py` to `pyproject.toml`","articleBody":"### What kind of feature are you missing? Where do you notice a shortcoming of PTB?\r\n\r\nPTB currently builds the wheels for uploading to PyPI by running the command `python setup.py sdist bdist_wheel` (from [the wiki](https://github.com/python-telegram-bot/python-telegram-bot/wiki/Releasing-a-new-version#process)). However, the use of that command [is deprecated](https://packaging.python.org/en/latest/discussions/setup-py-deprecated/#is-setup-py-deprecated). \r\n\r\nThe reason we are still using `setup.py` is because we wanted to dynamically build the wheels for both PTB and PTB-raw, and not have two separate repositories or files for that purpose. However, upon some observation, PTB has now made all its dependencies except `httpx` optional. This negates the need for having PTB-raw in the first place. \r\n\r\nAdditionally, the number of downloads for PTB-raw is tiny ([12k/mo](https://pypistats.org/packages/python-telegram-bot-raw) vs [1M/mo](https://pypistats.org/packages/python-telegram-bot)).\r\n\r\n\r\n\r\n### Describe the solution you'd like\r\n\r\nFollow the [packaging guide](https://packaging.python.org/en/latest/guides/modernize-setup-py-project/#modernize-setup-py-project) to migrate, and make sure that our build system follows the recommended guidelines. And then remove the `PTB-raw` package.\r\n\r\n### Describe alternatives you've considered\r\n\r\nWe _could_ still keep `setup.py`, but we have to stop using that setup.py command to build wheels.\r\n\r\n### Additional context\r\n\r\n_No response_","author":{"url":"https://github.com/harshil21","@type":"Person","name":"harshil21"},"datePublished":"2024-02-23T22:24:35.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/4129/python-telegram-bot/issues/4129"}
| 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:ad99147b-bce0-37d5-bb90-f4f568bf5d1c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A9EA:3424AE:E86E13:135C1EC:6A5B64B1 |
| html-safe-nonce | 57c5d39d869330fbcd27c969528dd6a88b7a9ce4359ccb91eb16ea7321db22dc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOUVBOjM0MjRBRTpFODZFMTM6MTM1QzFFQzo2QTVCNjRCMSIsInZpc2l0b3JfaWQiOiIyNjQ1MDQxNjY5NTYyMTMxNjMzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 13f57b9120f46ef918beadac23ece7c924f40b6021757826928d0d7f849bd8c3 |
| hovercard-subject-tag | issue:2151898578 |
| 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-telegram-bot/python-telegram-bot/4129/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c6fd3ff24036b883c7ee226fac06735742f0cc2143aa34e0bebdd0d28e7b954a/python-telegram-bot/python-telegram-bot/issues/4129 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c6fd3ff24036b883c7ee226fac06735742f0cc2143aa34e0bebdd0d28e7b954a/python-telegram-bot/python-telegram-bot/issues/4129 |
| og:image:alt | What kind of feature are you missing? Where do you notice a shortcoming of PTB? PTB currently builds the wheels for uploading to PyPI by running the command python setup.py sdist bdist_wheel (from ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | harshil21 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b |
| turbo-cache-control | no-preview |
| go-import | github.com/python-telegram-bot/python-telegram-bot git https://github.com/python-telegram-bot/python-telegram-bot.git |
| octolytics-dimension-user_id | 16178365 |
| octolytics-dimension-user_login | python-telegram-bot |
| octolytics-dimension-repository_id | 38696925 |
| octolytics-dimension-repository_nwo | python-telegram-bot/python-telegram-bot |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 38696925 |
| octolytics-dimension-repository_network_root_nwo | python-telegram-bot/python-telegram-bot |
| 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 | 9c975978430e9ad293956f2bbdaf153b1bd84a99 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width