From 285166a3cbbb96d19fdc9cb2d208057f92926ec1ca629a98b7438b0d0ecde325 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Wed, 3 Jan 2024 14:40:06 +0000 Subject: [PATCH] Accepting request 1136199 from home:SchoolGuy:branches:devel:languages:python This new package is required for the update of mysql-to-sqlite3 to version 2.1.6. The old package python-pytimeparse is still available on PyPi and pytimeparse2 is not compatible anymore in newer versions like this. OBS-URL: https://build.opensuse.org/request/show/1136199 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pytimeparse2?expand=0&rev=1 --- .gitattributes | 23 +++++++++++++++ .gitignore | 1 + _service | 15 ++++++++++ _servicedata | 4 +++ python-pytimeparse2.changes | 4 +++ python-pytimeparse2.spec | 59 +++++++++++++++++++++++++++++++++++++ pytimeparse2-1.7.1.obscpio | 3 ++ pytimeparse2.obsinfo | 4 +++ 8 files changed, 113 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _service create mode 100644 _servicedata create mode 100644 python-pytimeparse2.changes create mode 100644 python-pytimeparse2.spec create mode 100644 pytimeparse2-1.7.1.obscpio create mode 100644 pytimeparse2.obsinfo 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/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_service b/_service new file mode 100644 index 0000000..010a492 --- /dev/null +++ b/_service @@ -0,0 +1,15 @@ + + + https://github.com/onegreyonewhite/pytimeparse2.git + git + 1.7.1 + 1.7.1 + enable + + + + + gz + *.tar + + diff --git a/_servicedata b/_servicedata new file mode 100644 index 0000000..bf25d1b --- /dev/null +++ b/_servicedata @@ -0,0 +1,4 @@ + + + https://github.com/onegreyonewhite/pytimeparse2.git + e00df7506b6925f2c6a5783e89e9f239d128271a \ No newline at end of file diff --git a/python-pytimeparse2.changes b/python-pytimeparse2.changes new file mode 100644 index 0000000..c099189 --- /dev/null +++ b/python-pytimeparse2.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Fri Dec 29 15:25:15 UTC 2023 - Enno Gotthold + +- Initial packaging of version 1.7.1 diff --git a/python-pytimeparse2.spec b/python-pytimeparse2.spec new file mode 100644 index 0000000..2137757 --- /dev/null +++ b/python-pytimeparse2.spec @@ -0,0 +1,59 @@ +# +# spec file for package python-pytimeparse2 +# +# 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/ +# + +%{?sle15_python_module_pythons} +%define short_name pytimeparse2 +Name: python-%{short_name} +Version: 1.7.1 +Release: 0 +Summary: A small Python module to parse various kinds of time expressions +License: MIT +URL: https://github.com/onegreyonewhite/pytimeparse2 +Source: %{short_name}-%{version}.tar.gz +BuildRequires: python-rpm-macros +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module python-dateutil} +Requires: python3-base +Recommends: python3-python-dateutil +BuildArch: noarch +%python_subpackages + +%description +A small Python module to parse various kinds of time expressions. Developed separately from the original. + +%prep +%autosetup -n %{short_name}-%{version} + +%build +%python_build + +%install +%python_install +%python_expand sed -i '1d' %{buildroot}/%{$python_sitelib}/%{short_name}.py + +%check +%pyunittest -v + +%files %{python_files} +%license LICENSE.rst +%doc README.rst +%{python_sitelib}/%{short_name}.py +%{python_sitelib}/%{short_name}-%{version}*-info +%pycache_only %{python_sitelib}/__pycache__ + +%changelog + diff --git a/pytimeparse2-1.7.1.obscpio b/pytimeparse2-1.7.1.obscpio new file mode 100644 index 0000000..85434d1 --- /dev/null +++ b/pytimeparse2-1.7.1.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:683fe55af02d3afc0124daf65242348e0826d19391f4768e9cc07a7a89b26ff5 +size 77323 diff --git a/pytimeparse2.obsinfo b/pytimeparse2.obsinfo new file mode 100644 index 0000000..6a194fa --- /dev/null +++ b/pytimeparse2.obsinfo @@ -0,0 +1,4 @@ +name: pytimeparse2 +version: 1.7.1 +mtime: 1683841167 +commit: e00df7506b6925f2c6a5783e89e9f239d128271a