Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-giturlparse for
openSUSE:Factory checked in at 2026-11-23 12:22:48
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-giturlparse (Old)
and /work/SRC/openSUSE:Factory/.python-giturlparse.new.1340718 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-giturlparse"
Mon Nov 23 12:22:48 2026 rev:3 rq:1399679 version:0.16.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-giturlparse/python-giturlparse.changes
2026-06-28 21:07:10.251361435 +0200
+++
/work/SRC/openSUSE:Factory/.python-giturlparse.new.1340718/python-giturlparse.changes
2026-11-23 12:26:08.418615467 +0100
@@ -1,0 +2,8 @@
+Sat Nov 21 21:39:24 UTC 2026 - Dirk Müller <[email protected]>
+
+- update to 0.16.0:
+ * Fix HTTP normalization and protocol rewrites for generic Git
+ hosts.
+ * Pin ruff version to 0.15.22
+
+-------------------------------------------------------------------
Old:
----
giturlparse-0.15.0.tar.gz
New:
----
giturlparse-0.16.0.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-giturlparse.spec ++++++
--- /var/tmp/diff_new_pack.ZEIB4H/_old 2026-11-23 12:26:10.204690644 +0100
+++ /var/tmp/diff_new_pack.ZEIB4H/_new 2026-11-23 12:26:10.209690855 +0100
@@ -17,7 +17,7 @@
Name: python-giturlparse
-Version: 0.15.0
+Version: 0.16.0
Release: 0
Summary: A Git URL parsing module (supports parsing and rewriting)
License: Apache-2.0
++++++ giturlparse-0.15.0.tar.gz -> giturlparse-0.16.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/giturlparse-0.15.0/AUTHORS.rst
new/giturlparse-0.16.0/AUTHORS.rst
--- old/giturlparse-0.15.0/AUTHORS.rst 2026-06-16 09:28:27.000000000 +0200
+++ new/giturlparse-0.16.0/AUTHORS.rst 2026-10-13 15:23:13.341444700 +0200
@@ -28,3 +28,4 @@
* Tamika Nomara
* non7top
* patchwright
+* Ben Abulafia
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/giturlparse-0.15.0/HISTORY.rst
new/giturlparse-0.16.0/HISTORY.rst
--- old/giturlparse-0.15.0/HISTORY.rst 2026-06-16 09:28:27.000000000 +0200
+++ new/giturlparse-0.16.0/HISTORY.rst 2026-10-13 15:23:13.341444700 +0200
@@ -6,6 +6,16 @@
.. towncrier release notes start
+0.16.0 (2026-10-13)
+===================
+
+Bugfixes
+--------
+
+- Fix HTTP normalization and protocol rewrites for generic Git hosts. (#97)
+- Pin ruff version to 0.15.22 (#156)
+
+
0.15.0 (2026-06-16)
===================
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/giturlparse-0.15.0/PKG-INFO
new/giturlparse-0.16.0/PKG-INFO
--- old/giturlparse-0.15.0/PKG-INFO 2026-06-16 09:28:50.451465000 +0200
+++ new/giturlparse-0.16.0/PKG-INFO 2026-10-13 15:23:38.296081000 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 2.4
Name: giturlparse
-Version: 0.15.0
+Version: 0.16.0
Summary: A Git URL parsing module (supports parsing and rewriting)
Home-page: https://github.com/nephila/giturlparse
Author: Aaron O Mullan
@@ -146,6 +146,16 @@
.. towncrier release notes start
+0.16.0 (2026-10-13)
+===================
+
+Bugfixes
+--------
+
+- Fix HTTP normalization and protocol rewrites for generic Git hosts. (#97)
+- Pin ruff version to 0.15.22 (#156)
+
+
0.15.0 (2026-06-16)
===================
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/giturlparse-0.15.0/giturlparse/__init__.py
new/giturlparse-0.16.0/giturlparse/__init__.py
--- old/giturlparse-0.15.0/giturlparse/__init__.py 2026-06-16
09:28:27.000000000 +0200
+++ new/giturlparse-0.16.0/giturlparse/__init__.py 2026-10-13
15:23:13.342040800 +0200
@@ -3,7 +3,7 @@
__author__ = "Iacopo Spalletti"
__email__ = "[email protected]"
-__version__ = "0.15.0"
+__version__ = "0.16.0"
def parse(url, check_domain=True):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/giturlparse-0.15.0/giturlparse/platforms/base.py
new/giturlparse-0.16.0/giturlparse/platforms/base.py
--- old/giturlparse-0.15.0/giturlparse/platforms/base.py 2026-06-16
09:28:27.000000000 +0200
+++ new/giturlparse-0.16.0/giturlparse/platforms/base.py 2026-10-13
15:23:13.342265400 +0200
@@ -1,15 +1,17 @@
import itertools
import re
+from typing import ClassVar
class BasePlatform:
- FORMATS = {
+ FORMATS: ClassVar[dict] = {
+ "http": r"http://%(domain)s/%(repo)s%(dot_git)s",
"https": r"https://%(domain)s/%(repo)s%(dot_git)s",
"ssh": r"git@%(domain)s:%(repo)s%(dot_git)s%(path_raw)s",
"git": r"git://%(domain)s/%(repo)s%(dot_git)s%(path_raw)s",
}
- PATTERNS = {
+ PATTERNS: ClassVar[dict] = {
"ssh":
r"(?P<_user>.+)@(?P<domain>[^/]+?):(?P<repo>.+)(?:(\.git)?(/)?)",
"http":
r"(?P<protocols>(?P<protocol>http))://(?P<domain>[^/]+?)/(?P<repo>.+)(?:(\.git)?(/)?)",
"https":
r"(?P<protocols>(?P<protocol>https))://(?P<domain>[^/]+?)/(?P<repo>.+)(?:(\.git)?(/)?)",
@@ -19,7 +21,7 @@
# None means it matches all domains
DOMAINS = None
SKIP_DOMAINS = None
- DEFAULTS = {}
+ DEFAULTS: ClassVar[dict] = {}
def __init__(self):
# Precompile PATTERNS
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/giturlparse-0.15.0/giturlparse/tests/test_rewrite.py
new/giturlparse-0.16.0/giturlparse/tests/test_rewrite.py
--- old/giturlparse-0.15.0/giturlparse/tests/test_rewrite.py 2026-06-16
09:28:27.000000000 +0200
+++ new/giturlparse-0.16.0/giturlparse/tests/test_rewrite.py 2026-10-13
15:23:13.342583700 +0200
@@ -88,7 +88,7 @@
class UrlRewriteTestCase(unittest.TestCase):
def _test_rewrite(self, source, protocol, expected):
parsed = parse(source)
- self.assertTrue(parsed.valid, "Invalid Url: %s" % source)
+ self.assertTrue(parsed.valid, f"Invalid Url: {source}")
return self.assertEqual(parse(source).format(protocol), expected)
def test_rewrites(self):
@@ -98,13 +98,51 @@
def _test_rewrite_components(self, field, data):
parsed = parse(data["source"])
setattr(parsed, field, data["value"])
- self.assertTrue(parsed.valid, "Invalid Url: %s" % data["source"])
+ self.assertTrue(parsed.valid, f"Invalid Url: {data['source']}")
return self.assertEqual(parsed.url, data["expected"])
def test_rewrite_components(self):
for field, data in REWRITE_COMPONENTS.items():
self._test_rewrite_components(field, data)
+ def test_generic_http_normalized(self):
+ for domain in ("git.example.org", "git.example.org:8080"):
+ for repo in ("project", "project.git", "Org/project.git"):
+ source = f"http://{domain}/{repo}"
+ expected = source if repo.endswith(".git") else source + ".git"
+ with self.subTest(source=source):
+ parsed = parse(source)
+ self.assertTrue(parsed.valid)
+ self.assertEqual(parsed.platform, "base")
+ self.assertEqual(parsed.normalized, expected)
+
+ def test_generic_http_rewrites(self):
+ expected = {
+ "ssh": "[email protected]:project.git",
+ "http": "http://git.example.org/project.git",
+ "https": "https://git.example.org/project.git",
+ "git": "git://git.example.org/project.git",
+ }
+ for url in expected.values():
+ for suffix in ("", ".git"):
+ source = url[:-4] + suffix
+ parsed = parse(source)
+ with self.subTest(source=source, operation="urls"):
+ self.assertTrue(parsed.valid)
+ self.assertEqual(parsed.platform, "base")
+ self.assertEqual(parsed.urls, expected)
+ with self.subTest(source=source, operation="url2http"):
+ self.assertEqual(parsed.url2http, expected["http"])
+ self.assertEqual(parsed.format("http"), expected["http"])
+
+ def test_generic_http_name_update(self):
+ for source in ("http://git.example.org/project",
"http://git.example.org/project.git"):
+ with self.subTest(source=source):
+ parsed = parse(source)
+ parsed.name = "new-project"
+ self.assertEqual(parsed.url,
"http://git.example.org/new-project.git")
+ self.assertEqual(parsed.normalized, parsed.url)
+
# Test Suite
suite = unittest.TestLoader().loadTestsFromTestCase(UrlRewriteTestCase)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/giturlparse-0.15.0/giturlparse.egg-info/PKG-INFO
new/giturlparse-0.16.0/giturlparse.egg-info/PKG-INFO
--- old/giturlparse-0.15.0/giturlparse.egg-info/PKG-INFO 2026-06-16
09:28:50.000000000 +0200
+++ new/giturlparse-0.16.0/giturlparse.egg-info/PKG-INFO 2026-10-13
15:23:38.257864200 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 2.4
Name: giturlparse
-Version: 0.15.0
+Version: 0.16.0
Summary: A Git URL parsing module (supports parsing and rewriting)
Home-page: https://github.com/nephila/giturlparse
Author: Aaron O Mullan
@@ -146,6 +146,16 @@
.. towncrier release notes start
+0.16.0 (2026-10-13)
+===================
+
+Bugfixes
+--------
+
+- Fix HTTP normalization and protocol rewrites for generic Git hosts. (#97)
+- Pin ruff version to 0.15.22 (#156)
+
+
0.15.0 (2026-06-16)
===================
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/giturlparse-0.15.0/pyproject.toml
new/giturlparse-0.16.0/pyproject.toml
--- old/giturlparse-0.15.0/pyproject.toml 2026-06-16 09:28:27.000000000
+0200
+++ new/giturlparse-0.16.0/pyproject.toml 2026-10-13 15:23:13.342583700
+0200
@@ -54,7 +54,7 @@
message = "Release {new_version}"
commit_args = "--no-verify"
tag = false
-current_version = "0.15.0"
+current_version = "0.16.0"
parse = """(?x)
(?P<major>[0-9]+)
\\.(?P<minor>[0-9]+)