Skip to content

Switch packaging from setup.py to pyproject.toml #4129

@harshil21

Description

@harshil21

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 command is deprecated.

The 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.

Additionally, the number of downloads for PTB-raw is tiny (12k/mo vs 1M/mo).

Describe the solution you'd like

Follow the packaging guide to migrate, and make sure that our build system follows the recommended guidelines. And then remove the PTB-raw package.

Describe alternatives you've considered

We could still keep setup.py, but we have to stop using that setup.py command to build wheels.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    ⚙️ securityaffected functionality: security

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy