On Tue, May 05, 2020 at 08:04:35PM +0200, Petr Viktorin wrote: > Zbyszek said: > >Please don't advertise macros like %distname, %srcname, %origname, and > >the countless other variants in use. They made sense when people used > > >editors which didn't support search&replace easily. Having the name > >verbatim in there makes the whole thing easier to read and copy&paste. > > The idea was to standardize these, so we'd get well known names > instead of each packager defining their own. Then, macros like > %pypi_url could use the well-known name by default. This would also > take care of the subtle differences between names: in Django's case, > you need to use capital D in the URL, but automatic provides use the > canonicalized lowercase. Even search/replace is likely to miss these > (but, inevitably packagers themselves will also be confused :/) > > It's definitely possible to get rid of %py_set_name, and deprecate > %pypi_url's weird default -- you'd be expected to write out > `%pypi_url Django` every time. > I'm not sure if that would prevent people from using > %distname/%srcname/%origname/%pypiname, but it looks like the right > thing to do.
%pypi_url Django sounds reasonable. This is nice an explicit, and if pypi returns 404, it is obvious what needs to change. Better then figuring out some cryptic macro to change. Zbyszek _______________________________________________ python-devel mailing list -- python-devel@lists.fedoraproject.org To unsubscribe send an email to python-devel-le...@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/python-devel@lists.fedoraproject.org