public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-vobject] rawhide: Update to 0.9.9
@ 2026-08-23  5:05 Filipe Rosset
  0 siblings, 0 replies; only message in thread
From: Filipe Rosset @ 2026-08-23  5:05 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/python-vobject
            Branch : rawhide
            Commit : 5545af01d628036be155e2bcc319291aeb83454c
            Author : Filipe Rosset <rosset.filipe@gmail.com>
            Date   : 2026-08-23T01:06:17-03:00
            Stats  : +31/-33 in 4 file(s)
            URL    : https://src.fedoraproject.org/rpms/python-vobject/c/5545af01d628036be155e2bcc319291aeb83454c?branch=rawhide

            Log:
            Update to 0.9.9

Resolves: rhbz#2332538
Resolves: rhbz#2378326

---
diff --git a/python-vobject-0.9.5-timedelta.patch b/python-vobject-0.9.5-timedelta.patch
deleted file mode 100644
index 1c7d665..0000000
--- a/python-vobject-0.9.5-timedelta.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -up vobject-0.9.5/tests.py.timedelta-repr vobject-0.9.5/tests.py
---- vobject-0.9.5/tests.py.timedelta-repr	2018-07-03 16:09:08.000000000 +0200
-+++ vobject-0.9.5/tests.py	2018-07-03 16:10:44.000000000 +0200
-@@ -253,7 +253,7 @@ class TestBehaviors(unittest.TestCase):
-         )
-         self.assertEqual(
-             str(parseRDate(textLineToContentLine("RDATE;VALUE=PERIOD:19960403T020000Z/19960403T040000Z,19960404T010000Z/PT3H"))),
--            "<RDATE{'VALUE': ['PERIOD']}[(datetime.datetime(1996, 4, 3, 2, 0, tzinfo=tzutc()), datetime.datetime(1996, 4, 3, 4, 0, tzinfo=tzutc())), (datetime.datetime(1996, 4, 4, 1, 0, tzinfo=tzutc()), datetime.timedelta(0, 10800))]>"
-+            "<RDATE{'VALUE': ['PERIOD']}[(datetime.datetime(1996, 4, 3, 2, 0, tzinfo=tzutc()), datetime.datetime(1996, 4, 3, 4, 0, tzinfo=tzutc())), (datetime.datetime(1996, 4, 4, 1, 0, tzinfo=tzutc()), " + ("datetime.timedelta(0, 10800)" if sys.version_info < (3,7) else "datetime.timedelta(seconds=10800)") + ")]>"
-         )
- 
-     def test_periodBehavior(self):

diff --git a/python-vobject.spec b/python-vobject.spec
index 74eea1d..13d5bfb 100644
--- a/python-vobject.spec
+++ b/python-vobject.spec
@@ -3,16 +3,18 @@
 
 
 Name:           python-vobject
-Version:        0.9.8
-Release:        9%{?dist}
+Version:        0.9.9
+Release:        1%{?dist}
 Summary:        %{sum}
 
 License:        Apache-2.0
 URL:            https://py-vobject.github.io/
-Source0:        https://pypi.python.org/packages/source/v/vobject/%{modname}-%{version}.tar.gz
+Source0:        %{pypi_source %{modname}}
+# Upstream omitted radicale-1587.vcf in MANIFEST.in for 0.9.9 tarball
+Source1:        https://raw.githubusercontent.com/py-vobject/vobject/v%{version}/test_files/radicale-1587.vcf
 
 BuildArch:      noarch
-BuildRequires:  git
+BuildRequires:  python3-devel
 
 
 %description
@@ -23,15 +25,6 @@ generating vCard and vCalendar files.
 %package -n         python3-%{modname}
 Summary:            %{sum}
 
-Requires:           python3-dateutil
-Requires:           python3-setuptools
-BuildRequires:      python3-devel
-BuildRequires:      python3-setuptools
-BuildRequires:      python3-dateutil
-BuildRequires:      python3-pytz
-
-%{?python_provide:%python_provide python3-%{modname}}
-
 %description -n python3-vobject
 VObject is intended to be a full featured python library for parsing and
 generating vCard and vCalendar files.
@@ -39,32 +32,43 @@ generating vCard and vCalendar files.
 
 %prep
 %autosetup -n %{modname}-%{version} -p1
+cp -p %{SOURCE1} test_files/
 rm vobject/win32tz.py
+# Use vobject.base.VERSION so setuptools can parse VERSION statically without importing dependencies
+sed -i 's/attr: vobject.VERSION/attr: vobject.base.VERSION/' setup.cfg
+
+
+%generate_buildrequires
+%pyproject_buildrequires
 
 
 %build
-%py3_build
+%pyproject_wheel
 
 
 %install
-%py3_install
+%pyproject_install
+%pyproject_save_files %{modname}
 
 
 %check
-%{__python3} tests.py
+%pyproject_check_import
+%{python3} tests.py
 
 
-%files -n python3-%{modname}
+%files -n python3-%{modname} -f %{pyproject_files}
 %doc README.md
-# ACKNOWLEDGEMENTS.txt
 %license LICENSE-2.0.txt
-%{python3_sitelib}/%{modname}/
-%{python3_sitelib}/%{modname}-%{version}-*
 %{_bindir}/change_tz
 %{_bindir}/ics_diff
 
 
 %changelog
+* Sun Aug 23 2026 Filipe Rosset <rosset.filipe@gmail.com> - 0.9.9-1
+- Update to 0.9.9
+- Resolves: rhbz#2332538
+- Resolves: rhbz#2378326
+
 * Thu Jul 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.8-9
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
 

diff --git a/radicale-1587.vcf b/radicale-1587.vcf
new file mode 100644
index 0000000..a7dfef3
--- /dev/null
+++ b/radicale-1587.vcf
@@ -0,0 +1,6 @@
+BEGIN:VCARD
+VERSION:3.0
+FN:Given Family
+N:Family;Given;Additional;Prefix;Suffix
+GEO:37.386013;-122.082932
+END:VCARD

diff --git a/sources b/sources
index fec1829..50b1041 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (vobject-0.9.8.tar.gz) = 8ba48fdd242c60b256d3a40d0aa1a6af9493a03fbff97870245102e676603d7eecad055db20a5eaa941eadc071fe41b522fc8226d0316c430d87e9331464a823
+SHA512 (vobject-0.9.9.tar.gz) = 6897211cd4b61bddfa5a9d27f24a2c3b6514d072eeae535e1409f591fa6fa83a0b9ded3240df8bf9bcabc619ef1673929ae52cfaefc9dcd8d55a70856630a97a

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-08-23  5:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-23  5:05 [rpms/python-vobject] rawhide: Update to 0.9.9 Filipe Rosset

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox