Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package opi for openSUSE:Factory checked in 
at 2023-07-12 17:27:36
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/opi (Old)
 and      /work/SRC/openSUSE:Factory/.opi.new.8922 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "opi"

Wed Jul 12 17:27:36 2023 rev:44 rq:1098237 version:3.1.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/opi/opi.changes  2023-06-19 22:50:57.253699823 
+0200
+++ /work/SRC/openSUSE:Factory/.opi.new.8922/opi.changes        2023-07-12 
17:28:04.590804000 +0200
@@ -1,0 +2,6 @@
+Tue Jul 11 18:08:11 UTC 2023 - Dominik Heidler <dheid...@suse.de>
+
+- Version 3.1.0
+- Add MapTool RPM tool
+
+-------------------------------------------------------------------

Old:
----
  opi-3.0.0.tar.gz

New:
----
  opi-3.1.0.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ opi.spec ++++++
--- /var/tmp/diff_new_pack.VBBfUx/_old  2023-07-12 17:28:05.274808735 +0200
+++ /var/tmp/diff_new_pack.VBBfUx/_new  2023-07-12 17:28:05.278808763 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           opi
-Version:        3.0.0
+Version:        3.1.0
 Release:        0
 Summary:        OBS Package Installer (CLI)
 License:        GPL-3.0-only

++++++ opi-3.0.0.tar.gz -> opi-3.1.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/opi-3.0.0/opi/plugins/maptool.py 
new/opi-3.1.0/opi/plugins/maptool.py
--- old/opi-3.0.0/opi/plugins/maptool.py        1970-01-01 01:00:00.000000000 
+0100
+++ new/opi-3.1.0/opi/plugins/maptool.py        2023-07-11 20:08:00.000000000 
+0200
@@ -0,0 +1,37 @@
+import opi
+from opi.plugins import BasePlugin
+
+import requests
+
+
+def http_get_json(url):
+       r = requests.get(url)
+       r.raise_for_status()
+       return r.json()
+
+def install_github_release(org, repo):
+       releases = 
http_get_json(f'https://api.github.com/repos/{org}/{repo}/releases')
+       releases = [release for release in releases if not 
release['prerelease']]
+       if not releases:
+               print("No release found for {org}/{repo}")
+               return
+       latest_release = releases[0]
+       if not opi.ask_yes_or_no(f"Do you want to install {repo} release 
{latest_release['tag_name']} RPM from {org} github repo?"):
+               return
+       assets = http_get_json(latest_release['assets_url'])
+       rpm_assets = [asset for asset in assets if 
asset['name'].endswith('.rpm')]
+       if not rpm_assets:
+               print("No RPM asset found for {org}/{repo} release 
{latest_release['tag_name']}")
+               return
+       rpm_url = rpm_assets[0]['browser_download_url']
+       opi.install_packages([rpm_url])
+
+
+class MapTool(BasePlugin):
+       main_query = 'maptool'
+       description = 'Virtual Tabletop for playing roleplaying games'
+       queries = ['maptool', 'MapTool']
+
+       @classmethod
+       def run(cls, query):
+               install_github_release('RPTools', 'maptool')
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/opi-3.0.0/opi/version.py new/opi-3.1.0/opi/version.py
--- old/opi-3.0.0/opi/version.py        2023-06-19 10:57:42.000000000 +0200
+++ new/opi-3.1.0/opi/version.py        2023-07-11 20:08:00.000000000 +0200
@@ -1 +1 @@
-__version__ = '3.0.0'
+__version__ = '3.1.0'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/opi-3.0.0/opi.changes new/opi-3.1.0/opi.changes
--- old/opi-3.0.0/opi.changes   2023-06-19 10:57:42.000000000 +0200
+++ new/opi-3.1.0/opi.changes   2023-07-11 20:08:00.000000000 +0200
@@ -1,4 +1,10 @@
 -------------------------------------------------------------------
+Tue Jul 11 18:07:59 UTC 2023 - Dominik Heidler <dheid...@suse.de>
+
+- Version 3.1.0
+- Add MapTool RPM tool
+
+-------------------------------------------------------------------
 Mon Jun 19 08:56:53 UTC 2023 - Dominik Heidler <dheid...@suse.de>
 
 - Version 3.0.0

Reply via email to