14
0

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
This commit is contained in:
2024-01-03 14:40:06 +00:00
committed by Git OBS Bridge
commit 285166a3cb
8 changed files with 113 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -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

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

15
_service Normal file
View File

@@ -0,0 +1,15 @@
<services>
<service mode="manual" name="obs_scm">
<param name="url">https://github.com/onegreyonewhite/pytimeparse2.git</param>
<param name="scm">git</param>
<param name="revision">1.7.1</param>
<param name="versionformat">1.7.1</param>
<param name="changesgenerate">enable</param>
</service>
<service mode="manual" name="set_version"/>
<service mode="buildtime" name="tar"/>
<service mode="buildtime" name="recompress">
<param name="compression">gz</param>
<param name="file">*.tar</param>
</service>
</services>

4
_servicedata Normal file
View File

@@ -0,0 +1,4 @@
<servicedata>
<service name="tar_scm">
<param name="url">https://github.com/onegreyonewhite/pytimeparse2.git</param>
<param name="changesrevision">e00df7506b6925f2c6a5783e89e9f239d128271a</param></service></servicedata>

View File

@@ -0,0 +1,4 @@
-------------------------------------------------------------------
Fri Dec 29 15:25:15 UTC 2023 - Enno Gotthold <egotthold@suse.com>
- Initial packaging of version 1.7.1

59
python-pytimeparse2.spec Normal file
View File

@@ -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

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:683fe55af02d3afc0124daf65242348e0826d19391f4768e9cc07a7a89b26ff5
size 77323

4
pytimeparse2.obsinfo Normal file
View File

@@ -0,0 +1,4 @@
name: pytimeparse2
version: 1.7.1
mtime: 1683841167
commit: e00df7506b6925f2c6a5783e89e9f239d128271a