forked from pool/python-ly
This is required because python3.12 unittest now fails on 0 ran tests. - Disable test suite * tests are not python unittest but pytest style * When enabled with pytest they revealed a bunch of problems: * gh#frescobaldi/python-ly#167: Add python-ly-pkginfo-name.patch * gh#frescobaldi/python-ly#153 The tests do not work at all OBS-URL: https://build.opensuse.org/request/show/1144004 OBS-URL: https://build.opensuse.org/package/show/multimedia:apps/python-ly?expand=0&rev=6
23 lines
995 B
Diff
23 lines
995 B
Diff
From 233de7e253086c3eaad21c5b5223169832b36282 Mon Sep 17 00:00:00 2001
|
|
From: Jean Abou Samra <jean@abou-samra.fr>
|
|
Date: Sat, 27 Jan 2024 23:18:16 +0100
|
|
Subject: [PATCH] Fix remaining use of ly.pkginfo.name
|
|
|
|
---
|
|
ly/musicxml/create_musicxml.py | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/ly/musicxml/create_musicxml.py b/ly/musicxml/create_musicxml.py
|
|
index 44ff6402..850014f3 100644
|
|
--- a/ly/musicxml/create_musicxml.py
|
|
+++ b/ly/musicxml/create_musicxml.py
|
|
@@ -55,7 +55,7 @@ def __init__(self):
|
|
self.score_info = etree.SubElement(self.root, "identification")
|
|
encoding = etree.SubElement(self.score_info, "encoding")
|
|
software = etree.SubElement(encoding, "software")
|
|
- software.text = ly.pkginfo.name + " " + ly.pkginfo.version
|
|
+ software.text = "python-ly " + ly.pkginfo.version
|
|
encoding_date = etree.SubElement(encoding, "encoding-date")
|
|
import datetime
|
|
encoding_date.text = str(datetime.date.today())
|