[projects/template-specs] - clarify python package naming convention

baggins baggins at pld-linux.org
Fri Apr 4 02:10:20 CEST 2025


commit f40d8ffd0c8db3234358a92d5a7b465b7fde68fd
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Fri Apr 4 01:16:38 2025 +0200

    - clarify python package naming convention

 python3-ext.spec | 4 +++-
 python3.spec     | 4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/python3-ext.spec b/python3-ext.spec
index 5dfef95..59a7f02 100644
--- a/python3-ext.spec
+++ b/python3-ext.spec
@@ -9,7 +9,9 @@
 %define		module	template
 Summary:	-
 Summary(pl.UTF-8):	-
-# Name must match the python module/package name (as on pypi or in 'import' statement)
+# Name must match the python module/package name as on pypi
+# DO NOT use the underscore conversion, use foo-bar as is the pypi name,
+# NOT the foo_bar as they started to do for file names recently.
 Name:		python3-%{module}
 Version:	_
 Release:	0.1
diff --git a/python3.spec b/python3.spec
index 70bb0a5..5b6b828 100644
--- a/python3.spec
+++ b/python3.spec
@@ -10,7 +10,9 @@
 %define		module	template
 Summary:	-
 Summary(pl.UTF-8):	-
-# Name must match the python module/package name (as on pypi or in 'import' statement)
+# Name must match the python module/package name as on pypi
+# DO NOT use the underscore conversion, use foo-bar as is the pypi name,
+# NOT the foo_bar as they started to do for file names recently.
 Name:		python3-%{module}
 Version:	_
 Release:	0.1
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/projects/template-specs.git/commitdiff/f40d8ffd0c8db3234358a92d5a7b465b7fde68fd



More information about the pld-cvs-commit mailing list