tmuxp icon indicating copy to clipboard operation
tmuxp copied to clipboard

Packagers: Can we use poetry build for package? Drop Python 2?

Open tony opened this issue 5 years ago • 0 comments

Goal

Consolidate project dev utilities, e.g. virtualenv, package versioning/pinning, and build + publishing: poetry

  • https://repology.org/project/tmuxp/versions
  • https://pkgs.org/download/tmuxp

Question Will removing setup.py from source break compatibility?

poetry build link creates:

  1. dist/packagename-<version>.tar.gz (similar to python setup.py sdist), and
  2. 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?

  • [x] Gentoo - Confirmed via email Aug 17
  • [x] Redhat / Fedora - Confirmed via email Aug 23 2020
  • [ ] Debian / Ubuntu - Python 2 will be removed in Bullseye (Email Aug 22nd)
  • [x] FreeBSD - Confirmed via email Aug 17
  • [ ] Slackpackages
  • [ ] Arch

Poetry-only (remove setup.py in src)?

  • [x] Gentoo - Confirmed via email Aug 17
  • [x] Redhat / Fedora - Confirmed via email Aug 23 2020
  • [ ] Debian / Ubuntu - Possibly an issue (email Aug 22 2020)
  • [x] FreeBSD - Confirmed via email Aug 17 - ok since it generates a setup.py file
  • [ ] Slackpackages
  • [ ] Arch

tony avatar Aug 22 '20 18:08 tony