tmux-python / tmux-python/tmuxp
Packagers: Can we use poetry build for package? Drop Python 2?
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 4.6k
- Forks
- 248
- Avg merge
- 2h 13m
- Merged PRs (30d)
- 1
Description
Goal
Consolidate project dev utilities, e.g. virtualenv, package versioning/pinning, and build + publishing: poetry
Question Will removing setup.py from source break compatibility?
poetry build link creates:
dist/packagename-<version>.tar.gz(similar topython setup.py sdist), and- A wheel
python3 setup.py bdist_wheel --universal
What would still be available?
- .tar.gz package and wheel on PyPI
- ability to create sdist / wheel via
poetry build(would require having poetry installed with a compatible version) - https://github.com/mgorny/pyproject2setuppy - generate setup.py without requiring poetry
Package maintainers (repology)
Drop Python 2?
- Gentoo - Confirmed via email Aug 17
- Redhat / Fedora - Confirmed via email Aug 23 2020
- Debian / Ubuntu - Python 2 will be removed in Bullseye (Email Aug 22nd)
- FreeBSD - Confirmed via email Aug 17
- Slackpackages
- Arch
Poetry-only (remove setup.py in src)?
- Gentoo - Confirmed via email Aug 17
- Redhat / Fedora - Confirmed via email Aug 23 2020
- Debian / Ubuntu - Possibly an issue (email Aug 22 2020)
- FreeBSD - Confirmed via email Aug 17 - ok since it generates a setup.py file
- Slackpackages
- Arch
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 reviewing the existing setup.py and the linked poetry build documentation. Determine whether removing setup.py preserves the listed sdist and wheel packaging paths and whether the remaining distributors support dropping Python 2; done means reaching a maintainer-backed packaging decision.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- build-system, release
- Issue type
- Refactor
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100