Skip to content
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

Migrate from distutils to setuptools #193

Open
alkisg opened this issue Apr 23, 2023 · 0 comments
Open

Migrate from distutils to setuptools #193

alkisg opened this issue Apr 23, 2023 · 0 comments

Comments

@alkisg
Copy link
Member

alkisg commented Apr 23, 2023

Goal

In this issue we'll track how to move forward considering the intltool and distutils deprecations.

So there's clear indication that the new python packaging tools are more oriented to cross-platform modules and less appropriate for OS-specific things like man pages, desktop files, systemd services, xdg autostarted scripts, translations etc. These things still need a setup.py or a makefile.

Let's assume that epoptes (GUI), epoptes-client and epoptesd (twisted) were cross-platform applications that could run in any OS (assuming all prerequisites like GTK and twisted are installed). These modules could use the modern tools and declare package data for things like glade.ui files or icon.svg files.

Proposed changes

# Regenerate POTFILES.in:
find .. -name '*.ui' -or -name '*.py' | sed 's|^[^/]*/||' | LANG=C sort >POTFILES.in

# Regenerate epoptes.pot:
xgettext --add-comments --directory=.. --default-domain=epoptes --output=epoptes.pot POTFILES.in

# The .po files are periodically downloaded from launchpad

TODO:

  • Handle ../data/epoptes.desktop.in while avoiding X-Ubuntu-Gettext-Domain=epoptes.
  • Update license identifiers to spdx
  • Translations should probably be included as package data by setuptools. While if deb/rpm are used, they could move them to global locations.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant