8000 Use a src layout instead of a flat layout · Issue #4797 · python-telegram-bot/python-telegram-bot · GitHub
[go: up one dir, main page]

Skip to content

Use a src layout instead of a flat layout #4797

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
harshil21 opened this issue May 22, 2025 · 0 comments · May be fixed by #4798
Open

Use a src layout instead of a flat layout #4797

harshil21 opened this issue May 22, 2025 · 0 comments · May be fixed by #4798
Labels
🛠 code-quality change type: code-quality

Comments

@harshil21
Copy link
Member

What kind of feature are you missing? Where do you notice a shortcoming of PTB?

The python packaging guide recommends that libraries which are meant to be importable (that's us) should use a src layout. The pros of using it is listed here - https://packaging.python.org/en/latest/discussions/src-layout-vs-flat-layout/

Describe the solution you'd like

The telegram folder will now be in src/telegram.

Describe alternatives you've considered

Not conforming to python packaging standards

Additional context

uv also initializes a new project with src layout by default for libraries, see https://docs.astral.sh/uv/concepts/projects/init/#libraries

@harshil21 harshil21 added 🛠 code-quality change type: code-quality 📋 triage work status: triage and removed 📋 triage work status: triage labels May 22, 2025
@Bibo-Joshi Bibo-Joshi linked a pull request May 22, 2025 that will close this issue
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🛠 code-quality change type: code-quality
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant
0