commit 8b755780ff2a295043a6a8b26fe01e26e5905d50318ecf8555187e65a31630a1 Author: Markéta Machová Date: Mon May 26 11:37:43 2025 +0000 - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dateutils?expand=0&rev=8 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/dateutils-0.6.12.tar.gz b/dateutils-0.6.12.tar.gz new file mode 100644 index 0000000..d326220 --- /dev/null +++ b/dateutils-0.6.12.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:03dd90bcb21541bd4eb4b013637e4f1b5f944881c46cc6e4b67a6059e370e3f1 +size 4954 diff --git a/python-dateutils.changes b/python-dateutils.changes new file mode 100644 index 0000000..603cb69 --- /dev/null +++ b/python-dateutils.changes @@ -0,0 +1,30 @@ +------------------------------------------------------------------- +Mon May 26 11:02:26 UTC 2025 - Markéta Machová + +- Convert to pip-based build + +------------------------------------------------------------------- +Wed Jun 21 10:52:49 UTC 2023 - ecsos + +- Add %{?sle15_python_module_pythons} + +------------------------------------------------------------------- +Sun Oct 24 21:46:13 UTC 2021 - Matej Cepl + +- update to v0.6.12: + * Manually adding a release for the last published version. + +------------------------------------------------------------------- +Mon Aug 31 10:16:01 UTC 2020 - John Vandenberg + +- Update to v0.6.10 + +------------------------------------------------------------------- +Fri Aug 21 11:33:25 UTC 2020 - John Vandenberg + +- Update to v0.6.8 + +------------------------------------------------------------------- +Thu Apr 11 15:07:57 UTC 2019 - John Vandenberg + +- Initial spec for v0.6.6 diff --git a/python-dateutils.spec b/python-dateutils.spec new file mode 100644 index 0000000..41aba53 --- /dev/null +++ b/python-dateutils.spec @@ -0,0 +1,64 @@ +# +# spec file for package python-dateutils +# +# Copyright (c) 2025 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} +Name: python-dateutils +Version: 0.6.12 +Release: 0 +Summary: Python library for working with date and datetime objects +License: 0BSD +Group: Development/Languages/Python +URL: https://github.com/jmcantrell/python-dateutils +Source: https://files.pythonhosted.org/packages/source/d/dateutils/dateutils-%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-python-dateutil +Requires: python-pytz +BuildArch: noarch +# SECTION test requirements +BuildRequires: %{python_module python-dateutil} +BuildRequires: %{python_module pytz} +# /SECTION +%python_subpackages + +%description +Python library for working with date and datetime objects. + +%prep +%setup -q -n dateutils-%{version} +sed -i '/argparse/d' setup.py + +%build +%pyproject_wheel + +%install +%pyproject_install +# Avoid conflicts with dateutils; these scripts lack many features of the other package +rm %{buildroot}%{_bindir}/dateadd %{buildroot}%{_bindir}/datediff +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%files %{python_files} +%doc README.mkd +%license LICENSE +%{python_sitelib}/dateutils +%{python_sitelib}/dateutils-%{version}*-info + +%changelog