python-poetry / python-poetry/poetry
Idea: build poetry wheels using mypyc
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 34.3k
- Forks
- 2.5k
- Avg merge
- 2d 19h
- Merged PRs (30d)
- 30
Description
- I have searched the issues of this repo and believe that this is not a duplicate.
- I have searched the documentation and believe that my question is not covered.
Feature Request
https://mypyc.readthedocs.io/en/latest/index.html is a pretty cool tool that can turn type-annotated code into compiled C extensions.
I think it's worth investigating whether poetry/poetry-core could be sped up by compiling native binary wheels and (optionally?) using compiled code to execute.
@ichard26 wrote a very interesting series of blog posts about doing this same optimization to black: https://ichard26.github.io/blog/2022/05/31/compiling-black-with-mypyc-part-1
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the mypyc documentation and the linked Black optimization series, then inspect the poetry and poetry-core repositories to identify the relevant packaging and execution paths. Establish whether native wheels are feasible and define the scope, optional behavior, compatibility requirements, and benchmarks before implementation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- build-system, tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100