From b54d78117ebb019ca4a8e4ced4188550753d9304d3f77e4ced62a1faaead26c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Fri, 3 May 2024 23:10:26 +0200 Subject: [PATCH] Sync from SUSE:SLFO:Main python-strict-rfc3339 revision b1bc8b7254328113391bd2d11f370c88 --- .gitattributes | 23 ++++++++++++ python-strict-rfc3339.changes | 31 ++++++++++++++++ python-strict-rfc3339.spec | 67 +++++++++++++++++++++++++++++++++++ strict-rfc3339-0.7.tar.gz | 3 ++ 4 files changed, 124 insertions(+) create mode 100644 .gitattributes create mode 100644 python-strict-rfc3339.changes create mode 100644 python-strict-rfc3339.spec create mode 100644 strict-rfc3339-0.7.tar.gz diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/python-strict-rfc3339.changes b/python-strict-rfc3339.changes new file mode 100644 index 0000000..7317da9 --- /dev/null +++ b/python-strict-rfc3339.changes @@ -0,0 +1,31 @@ +------------------------------------------------------------------- +Fri Apr 21 12:37:09 UTC 2023 - Dirk Müller + +- add sle15_python_module_pythons (jsc#PED-68) + +------------------------------------------------------------------- +Thu Apr 13 22:45:16 UTC 2023 - Matej Cepl + +- Make calling of %{sle15modernpython} optional. + +------------------------------------------------------------------- +Mon Dec 9 09:28:43 UTC 2019 - Tomáš Chvátal + +- Fix source url + +------------------------------------------------------------------- +Sun Dec 8 05:08:18 UTC 2019 - John Vandenberg + +- Add missing runtime dependency on timezone +- Replace dead link with GitHub URL +- Activate test suite + +------------------------------------------------------------------- +Thu Mar 14 16:32:12 UTC 2019 - Jan Engelhardt + +- Trim bias from descriptions. + +------------------------------------------------------------------- +Thu Mar 14 12:31:33 UTC 2019 - Tomáš Chvátal + +- Initial commit, needed by flex diff --git a/python-strict-rfc3339.spec b/python-strict-rfc3339.spec new file mode 100644 index 0000000..4210fc0 --- /dev/null +++ b/python-strict-rfc3339.spec @@ -0,0 +1,67 @@ +# +# spec file for package python-strict-rfc3339 +# +# Copyright (c) 2023 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%{?sle15_python_module_pythons} +Name: python-strict-rfc3339 +Version: 0.7 +Release: 0 +Summary: RFC 3339 functions +License: GPL-3.0-only +Group: Development/Languages/Python +URL: https://github.com/danielrichman/strict-rfc3339/ +Source: https://github.com/danielrichman/strict-rfc3339/archive/version-%{version}.tar.gz#/strict-rfc3339-%{version}.tar.gz +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildRequires: timezone +Requires: timezone +BuildArch: noarch + +%python_subpackages + +%description +RFC 3339 functions. + - Convert unix timestamps to and from RFC3339. + - Either produce RFC3339 strings with a UTC offset (Z) or with the offset + that the C time module reports is the local timezone offset. + - Avoid timezones as much as possible. + - Be very strict and follow RFC3339. + +%prep +%setup -q -n strict-rfc3339-version-%{version} + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +export LANG=en_US.UTF-8 +# two 32bit failures https://github.com/danielrichman/strict-rfc3339/issues/10 +%pytest -k 'not test_leap_year and not test_y2038' + +%files %{python_files} +%doc README.md +%license LICENSE +%{python_sitelib}/* + +%changelog diff --git a/strict-rfc3339-0.7.tar.gz b/strict-rfc3339-0.7.tar.gz new file mode 100644 index 0000000..ff43ca9 --- /dev/null +++ b/strict-rfc3339-0.7.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a78941333384514bb6d60b789b7bf6d1d628215e9e22b7d93411701b244217bb +size 18756