openSUSE / py2pack

Generate distribution packages from PyPI
Apache License 2.0
69 stars 40 forks source link

Add replace function to order to prevent from "Unknown tag" errors #208

Open huakim opened 2 months ago

mcepl commented 2 months ago
  1. Could you elaborate a little bit on what the issue is, please?
  2. I am generally not a big fan of putting code into templates. Could we clean those strings up somewhere else?
huakim commented 2 months ago
  1. Could you elaborate a little bit on what the issue is, please?
  2. I am generally not a big fan of putting code into templates. Could we clean those strings up somewhere else?

The problem arose when we're dealing with a python package whose license string is not a single line, but contains a whole text. The rpm specification does not allow to put a multi-line string into a tag, giving an unknown error such as 'Unknown tag' when building with rpm-build. Of course, this is an rpm-package specific issue, so I don't think we can clean code from templates up somewhere else.