Skip to contentSkip to conversation

python3-watchdog: Remove obsolete dependencies

PATCH Niko Mauno 2 participants 3 messages Feb 5 – Feb 9 1 message not in the archive

lore
Share & tools
lore

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

Niko Mauno

author
#1 lore raw

What the commit message failed to mention, is that this commit removes the unnecessary runtime dependency to package which has LGPL3.0+ license: https://git.openembedded.org/meta-openembedded/tree/meta-python/recipes-devtools/python/python3-argh_0.31.2.bb?h=scarthgap#n13 which we believe is a relevant fix also for the LTS Scarthgap branch. -Niko

Quoted 53 lines · Niko Mauno via lists.openembedded.org

From: Tero Kinnunen <[email protected]>

Python watchdog has removed all dependencies except optional pyyaml dependency for watchmedo utility, like follows [1]:

* pathtools dependency was removed in 1.0.0
* python-argh dependency removed in 2.1.6
* requests was never a dependency
* pyyaml only needed for extras (watchmedo) and may not be strictly necessary

[1] https://github.com/gorakhargosh/watchdog/blob/master/changelog.rst

---
  .../recipes-devtools/python/python3-watchdog_4.0.0.bb    | 9 ++-------
  1 file changed, 2 insertions(+), 7 deletions(-)
meta-python/recipes-devtools/python/python3-watchdog_4.0.0.bb +2 -8
index 9e36264d62..a272e25bda 100644
@@ -1,5 +1,4 @@
  SUMMARY = "Filesystem events monitoring"
-DEPENDS = "python3-argh"
 
  LICENSE = "Apache-2.0"
  LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
@@ -8,11 +7,7 @@ SRC_URI[sha256sum] = "e3e7065cbdabe6183ab82199d7a4f6b3ba0a438c5a512a68559846ccb7
 
  inherit pypi setuptools3
 
-RDEPENDS:${PN} = " \
-    python3-argh \
-    python3-pathtools3 \
-    python3-pyyaml \
-    python3-requests \
-"
+PACKAGECONFIG ??= "watchmedo"
+PACKAGECONFIG[watchmedo] = ",,,python3-pyyaml"
 
  BBCLASSEXTEND = "native nativesdk"
 
 
 
-=-=-=-=-=-=-=-=-=-=-=-

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

#2 lore raw
Quoted 2 lines · Niko Mauno via lists.openembedded.org

What the commit message failed to mention, is that this commit removes the unnecessary runtime dependency to package which has LGPL3.0+ license: https://git.openembedded.org/meta-openembedded/tree/meta-python/recipes-devtools/python/python3-argh_0.31.2.bb?h=scarthgap#n13 which we believe is a relevant fix also for the LTS Scarthgap branch.

Thank you, that helps. Can you please send this for whinlatter branch as well?

Thanks,

Anuj

Quoted 60 lines

-Niko

Quoted 37 lines · Niko Mauno via lists.openembedded.org

From: Tero Kinnunen <[email protected]>

Python watchdog has removed all dependencies except optional pyyaml dependency for watchmedo utility, like follows [1]:

* pathtools dependency was removed in 1.0.0
* python-argh dependency removed in 2.1.6
* requests was never a dependency
* pyyaml only needed for extras (watchmedo) and may not be strictly necessary

[1] https://github.com/gorakhargosh/watchdog/blob/master/changelog.rst

---
  .../recipes-devtools/python/python3-watchdog_4.0.0.bb    | 9 ++-------
  1 file changed, 2 insertions(+), 7 deletions(-)
meta-python/recipes-devtools/python/python3-watchdog_4.0.0.bb +0 -1
index 9e36264d62..a272e25bda 100644
@@ -1,5 +1,4 @@
  SUMMARY = "Filesystem events monitoring"
-DEPENDS = "python3-argh"
 
  LICENSE = "Apache-2.0"
  LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
@@ -8,11 +7,7 @@ SRC_URI[sha256sum] = "e3e7065cbdabe6183ab82199d7a4f6b3ba0a438c5a512a68559846ccb7
 
  inherit pypi setuptools3
 

meta-python/recipes-devtools/python/python3-watchdog_4.0.0.bb SRC_URI[sha256sum] = "e3e7065cbdabe6183ab82199d7a4f6b3ba0a438c5a512a68559846ccb7 · line 13

Quoted 10 lines
meta-python/recipes-devtools/python/python3-watchdog_4.0.0.bb +2 -6
-RDEPENDS:${PN} = " \
-    python3-argh \
-    python3-pathtools3 \
-    python3-pyyaml \
-    python3-requests \
-"
+PACKAGECONFIG ??= "watchmedo"
+PACKAGECONFIG[watchmedo] = ",,,python3-pyyaml"
 
  BBCLASSEXTEND = "native nativesdk"

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

author
#3 lore raw
Quoted 9 lines · Anuj Mittal

[You don't often get email from [email protected]. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]

Quoted 2 lines · Niko Mauno via lists.openembedded.org

What the commit message failed to mention, is that this commit removes the unnecessary runtime dependency to package which has LGPL3.0+ license: https://git.openembedded.org/meta-openembedded/tree/meta-python/recipes-devtools/python/python3-argh_0.31.2.bb?h=scarthgap#n13 which we believe is a relevant fix also for the LTS Scarthgap branch.

Thank you, that helps. Can you please send this for whinlatter branch as well?

Thanks Anuj, now submitted for whinlatter as well. -Niko