Skip to contentSkip to conversation

python3-pygments: upgrade to 2.15.1

PATCH In review Sudip Mukherjee 2 participants 5 messages Jul 4, 2023 – Jul 5, 2023 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 python3-pygments: upgrade to 2.15.1

Upstream has removed setup.py and started using pyproject.toml

---
 ...ython3-pygments_2.14.0.bb => python3-pygments_2.15.1.bb} | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
 rename meta/recipes-devtools/python/{python3-pygments_2.14.0.bb => python3-pygments_2.15.1.bb} (76%)
meta/recipes-devtools/python/python3-pygments_2.15.1.bb renamed from meta/recipes-devtools/python/python3-pygments_2.14.0.bb +5 -1
similarity index 76%
rename from meta/recipes-devtools/python/python3-pygments_2.14.0.bb
rename to meta/recipes-devtools/python/python3-pygments_2.15.1.bb
index 16769e9263..7e3b286f41 100644
@@ -5,7 +5,7 @@ LICENSE = "BSD-2-Clause"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=36a13c90514e2899f1eba7f41c3ee592"
 
 inherit setuptools3
-SRC_URI[sha256sum] = "b3ed06a9e8ac9a9aae5a6f5dbe78a8a58655d17b43b93c078f094ddc476ae297"
+SRC_URI[sha256sum] = "8ace4d3c1dd481894b2005f560ead0f9f19ee64fe983366be1a21e171d12775c"
 
 DEPENDS += "\
             ${PYTHON_PN} \
@@ -15,5 +15,9 @@ PYPI_PACKAGE = "Pygments"
 
 inherit pypi
 
+do_compile () {
+    python_pep517_do_compile
+}
+
 BBCLASSEXTEND = "native nativesdk"
 
Signature · 1 line
2.30.2
#1 lore raw
Quoted 18 lines · Sudip Mukherjee

Upstream has removed setup.py and started using pyproject.toml

---
 ...ython3-pygments_2.14.0.bb => python3-pygments_2.15.1.bb} | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
 rename meta/recipes-devtools/python/{python3-pygments_2.14.0.bb =>

python3-pygments_2.15.1.bb} (76%)

meta/recipes-devtools/python/python3-pygments_2.15.1.bb renamed from meta/recipes-devtools/python/python3-pygments_2.14.0.bb +0 -0
similarity index 76%
rename from meta/recipes-devtools/python/python3-pygments_2.14.0.bb
rename to meta/recipes-devtools/python/python3-pygments_2.15.1.bb
index 16769e9263..7e3b286f41 100644

meta/recipes-devtools/python/python3-pygments_2.15.1.bb LICENSE = "BSD-2-Clause" · line 7

Quoted 3 lines
meta/recipes-devtools/python/python3-pygments_2.15.1.bb renamed from meta/recipes-devtools/python/python3-pygments_2.14.0.bb +0 -0
@@ -5,7 +5,7 @@ LICENSE = "BSD-2-Clause"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=36a13c90514e2899f1eba7f41c3ee592"
 
 inherit setuptools3

instead of setuptools3, inherit python_setuptools_build_meta
Look at the build.backend variable in pyproject.toml for hints
https://github.com/pygments/pygments/blob/master/pyproject.toml#L4

Quoted 9 lines
meta/recipes-devtools/python/python3-pygments_2.15.1.bb renamed from meta/recipes-devtools/python/python3-pygments_2.14.0.bb +0 -1
-SRC_URI[sha256sum] =

"b3ed06a9e8ac9a9aae5a6f5dbe78a8a58655d17b43b93c078f094ddc476ae297" +SRC_URI[sha256sum] = "8ace4d3c1dd481894b2005f560ead0f9f19ee64fe983366be1a21e171d12775c"

 DEPENDS += "\
             ${PYTHON_PN} \

meta/recipes-devtools/python/python3-pygments_2.15.1.bb PYPI_PACKAGE = "Pygments" · line 21

Quoted 7 lines
meta/recipes-devtools/python/python3-pygments_2.15.1.bb renamed from meta/recipes-devtools/python/python3-pygments_2.14.0.bb +4 -0
@@ -15,5 +15,9 @@ PYPI_PACKAGE = "Pygments"
 
 inherit pypi
 
+do_compile () {
+    python_pep517_do_compile
+}
+

inheriting the proper class will do this

Quoted 18 lines
meta/recipes-devtools/python/python3-pygments_2.15.1.bb renamed from meta/recipes-devtools/python/python3-pygments_2.14.0.bb +0 -1
 BBCLASSEXTEND = "native nativesdk"
 
--

2.30.2

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#183871):
https://lists.openembedded.org/g/openembedded-core/message/183871
Mute This Topic: https://lists.openembedded.org/mt/99953624/924729
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#2 lore raw
Quoted 23 lines · Tim Orling
Quoted 19 lines · Sudip Mukherjee

Upstream has removed setup.py and started using pyproject.toml

---
 ...ython3-pygments_2.14.0.bb => python3-pygments_2.15.1.bb} | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
 rename meta/recipes-devtools/python/{python3-pygments_2.14.0.bb => python3-pygments_2.15.1.bb} (76%)
meta/recipes-devtools/python/python3-pygments_2.15.1.bb renamed from meta/recipes-devtools/python/python3-pygments_2.14.0.bb +0 -0
similarity index 76%
rename from meta/recipes-devtools/python/python3-pygments_2.14.0.bb
rename to meta/recipes-devtools/python/python3-pygments_2.15.1.bb
index 16769e9263..7e3b286f41 100644
@@ -5,7 +5,7 @@ LICENSE = "BSD-2-Clause"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=36a13c90514e2899f1eba7f41c3ee592"
 
Quoted 6 lines

meta/recipes-devtools/python/python3-pygments_2.15.1.bb LICENSE = "BSD-2-Clause" · line 7

Quoted 1 line
meta/recipes-devtools/python/python3-pygments_2.15.1.bb renamed from meta/recipes-devtools/python/python3-pygments_2.14.0.bb +0 -0
 inherit setuptools3

instead of setuptools3, inherit python_setuptools_build_meta
Look at the build.backend variable in pyproject.toml for hints
https://github.com/pygments/pygments/blob/master/pyproject.toml#L4

Thanks Tim. I was going through all the python*.bbclass to find a suitable one but obviously I missed it.
Will update, test and send a v2.

Signature · 2 lines
Regards
Sudip

A message that is not in the archive (sent off-list or not yet received): [email protected]

#4 lore raw
Quoted 32 lines · Sudip Mukherjee via lists.openembedded.org
Quoted 23 lines · Tim Orling
Quoted 19 lines · Sudip Mukherjee

Upstream has removed setup.py and started using pyproject.toml

---
 ...ython3-pygments_2.14.0.bb => python3-pygments_2.15.1.bb} | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
 rename meta/recipes-devtools/python/{python3-pygments_2.14.0.bb => python3-pygments_2.15.1.bb} (76%)
meta/recipes-devtools/python/python3-pygments_2.15.1.bb renamed from meta/recipes-devtools/python/python3-pygments_2.14.0.bb +0 -0
similarity index 76%
rename from meta/recipes-devtools/python/python3-pygments_2.14.0.bb
rename to meta/recipes-devtools/python/python3-pygments_2.15.1.bb
index 16769e9263..7e3b286f41 100644
@@ -5,7 +5,7 @@ LICENSE = "BSD-2-Clause"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=36a13c90514e2899f1eba7f41c3ee592"
 
Quoted 6 lines

meta/recipes-devtools/python/python3-pygments_2.15.1.bb LICENSE = "BSD-2-Clause" · line 7

Quoted 1 line
meta/recipes-devtools/python/python3-pygments_2.15.1.bb renamed from meta/recipes-devtools/python/python3-pygments_2.14.0.bb +0 -0
 inherit setuptools3

instead of setuptools3, inherit python_setuptools_build_meta
Look at the build.backend variable in pyproject.toml for hints
https://github.com/pygments/pygments/blob/master/pyproject.toml#L4

Quoted 3 lines

Thanks Tim. I was going through all the python*.bbclass to find a suitable one but obviously I missed it.
Will update, test and send a v2.

nm, I can see you have already sent a patch for this.

Signature · 2 lines
Regards
Sudip
#5 lore raw
Quoted 40 lines · Sudip Mukherjee
Quoted 6 lines · Sudip Mukherjee via lists.openembedded.org
Quoted 4 lines · Tim Orling

On Tue, Jul 4, 2023 at 10:09 PM Sudip Mukherjee <

Quoted 6 lines · [email protected]> wrote:
Quoted 6 lines
Quoted 6 lines

Upstream has removed setup.py and started using pyproject.toml

---
 ...ython3-pygments_2.14.0.bb => python3-pygments_2.15.1.bb} | 6

+++++-

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
 1 file changed, 5 insertions(+), 1 deletion(-)
 rename meta/recipes-devtools/python/{python3-pygments_2.14.0.bb =>

python3-pygments_2.15.1.bb} (76%)

Quoted 2 lines
Quoted 2 lines

Review

Quoted 2 lines
(quoted diff) +0 -0

b/meta/recipes-devtools/python/python3-pygments_2.15.1.bb

Quoted 8 lines
Quoted 8 lines

meta/recipes-devtools/python/python3-pygments_2.15.1.bb LICENSE = "BSD-2-Clause" · line 5

Quoted 8 lines

similarity index 76%
rename from meta/recipes-devtools/python/python3-pygments_2.14.0.bb rename to meta/recipes-devtools/python/python3-pygments_2.15.1.bb index 16769e9263..7e3b286f41 100644

meta/recipes-devtools/python/python3-pygments_2.15.1.bb renamed from meta/recipes-devtools/python/python3-pygments_2.14.0.bb +0 -0
@@ -5,7 +5,7 @@ LICENSE = "BSD-2-Clause"
 LIC_FILES_CHKSUM =

"file://LICENSE;md5=36a13c90514e2899f1eba7f41c3ee592"

Quoted 8 lines
Quoted 7 lines

meta/recipes-devtools/python/python3-pygments_2.15.1.bb LICENSE = "BSD-2-Clause" · line 7

Quoted 2 lines
meta/recipes-devtools/python/python3-pygments_2.15.1.bb renamed from meta/recipes-devtools/python/python3-pygments_2.14.0.bb +0 -0
 inherit setuptools3

instead of setuptools3, inherit python_setuptools_build_meta
Look at the build.backend variable in pyproject.toml for hints
https://github.com/pygments/pygments/blob/master/pyproject.toml#L4

Quoted 7 lines
Quoted 3 lines

Thanks Tim. I was going through all the python*.bbclass to find a suitable one but obviously I missed it.
Will update, test and send a v2.

nm, I can see you have already sent a patch for this.

I decided to maintain it. Thank you for your contribution and bringing it

to my attention.

Quoted 4 lines

--
Regards
Sudip