From 1afcc2adeaa5a4b47711c3789b2320c12e61b43db4402852425635e4ab945bc0 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Wed, 4 Jun 2025 06:25:53 +0000 Subject: [PATCH] - Switch to pyproject macros. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-typepy?expand=0&rev=20 --- .gitattributes | 23 ++++++++++ .gitignore | 1 + python-typepy.changes | 102 ++++++++++++++++++++++++++++++++++++++++++ python-typepy.spec | 74 ++++++++++++++++++++++++++++++ typepy-1.3.2.tar.gz | 3 ++ typepy-1.3.4.tar.gz | 3 ++ 6 files changed, 206 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 python-typepy.changes create mode 100644 python-typepy.spec create mode 100644 typepy-1.3.2.tar.gz create mode 100644 typepy-1.3.4.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/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/python-typepy.changes b/python-typepy.changes new file mode 100644 index 0000000..a149bfd --- /dev/null +++ b/python-typepy.changes @@ -0,0 +1,102 @@ +------------------------------------------------------------------- +Wed Jun 4 06:08:05 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. + +------------------------------------------------------------------- +Tue Jan 28 09:45:54 UTC 2025 - John Paul Adrian Glaubitz + +- Update to version 1.3.4 + * Update README + * Refactor release process to use Tox + for better environment management +- from version 1.3.3 + * Replace deprecated abctractproperty + * Drop support for Python 3.7/3.8 + * Add support for Python 3.13 + * Add GitHub Actions workflow for building + and publishing to PyPI + * Update copyright years + * Bump actions/setup-python from 4 to 5 + +------------------------------------------------------------------- +Mon Dec 4 10:42:07 UTC 2023 - Dirk Müller + +- update to 1.3.2: + * Fix `DateTime` conversion for timezone aware datetime + * Modify to use `pypa/build` for package build + * Add support for Python 3.12 + +------------------------------------------------------------------- +Tue Dec 7 15:27:29 UTC 2021 - pgajdos@suse.com + +- remove pytest-runner from BuildRequires, it is not needed + +------------------------------------------------------------------- +Sat Oct 30 20:46:13 UTC 2021 - Dirk Müller + +- update to 1.3.0: + * add python 3.6, drop support for python 3.5 + * Fix linting error + * Refactorings + * Add support for string with thousand separators as integer + +------------------------------------------------------------------- +Fri Apr 23 11:27:31 UTC 2021 - Matej Cepl + +- Update to version 1.1.5: + - Change packaging dependency from mandatory to optional. + +------------------------------------------------------------------- +Sat Mar 6 13:20:09 UTC 2021 - Martin Hauke + +- Update to version 1.1.4 + * Fix bool values conversion +- Update to version 1.1.3 + * Add support for Python 3.10 + * Improve error messages when conversion error happens. + * Drop dependency of deprecated distutils +- Update to version 1.1.2 + * Modify dependencies + +------------------------------------------------------------------- +Wed Jul 8 14:39:57 UTC 2020 - Ondřej Súkup + +- Update to 1.1.1 + - no upstream changelog + +------------------------------------------------------------------- +Fri Apr 17 09:22:56 UTC 2020 - Martin Hauke + +- Update to version 1.1.0 + * Improve type annotations + * Improve dictionary type detection + * Rename a type from Binary to Bytes + +------------------------------------------------------------------- +Sun Mar 29 15:18:34 UTC 2020 - Martin Hauke + +- Update to version 1.0.0 + * Drop Python 2 support + * Add support for Python 3.9 + * Add extract_typepy_from_dtype function + * Remove deprecated functions + * Modify NullString not to strip white spaces in default + +------------------------------------------------------------------- +Tue Mar 17 08:22:09 UTC 2020 - pgajdos@suse.com + +- version update to 0.6.6 + * no upstream changelog found + +------------------------------------------------------------------- +Thu Feb 6 16:36:52 UTC 2020 - Martin Hauke + +- Update to version 0.6.4 +- Drop patch: + * merged_commit_32bit.patch (not longer needed) + +------------------------------------------------------------------- +Fri May 10 02:49:09 PM UTC 2019 - John Vandenberg + +- Initial spec for v0.5.0 diff --git a/python-typepy.spec b/python-typepy.spec new file mode 100644 index 0000000..d1ee643 --- /dev/null +++ b/python-typepy.spec @@ -0,0 +1,74 @@ +# +# spec file for package python-typepy +# +# 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-typepy +Version: 1.3.4 +Release: 0 +Summary: Python library for run time variable type checker +License: MIT +URL: https://github.com/thombashi/typepy +Source: https://files.pythonhosted.org/packages/source/t/typepy/typepy-%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools >= 64} +BuildRequires: %{python_module setuptools_scm >= 8} +BuildRequires: %{python_module wheel} +BuildRequires: python-rpm-macros +# SECTION test requirements +BuildRequires: %{python_module mbstrdecoder >= 1.0.0} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module python-dateutil >= 2.8.0} +BuildRequires: %{python_module pytz >= 2018.9} +BuildRequires: %{python_module tcolorpy} +# /SECTION +BuildRequires: fdupes +Requires: python-mbstrdecoder >= 1.0.0 +Suggests: python-python-dateutil >= 2.8.0 +Suggests: python-pytz >= 2018.9 +Suggests: python-path.py +Suggests: python-tcolorpy +BuildArch: noarch + +%python_subpackages + +%description +typepy is a Python library for variable type checker/validator/converter at run time. + +%prep +%setup -q -n typepy-%{version} + +# Remove build alias +sed -i '/build =/d' setup.cfg + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%license LICENSE +%doc README.rst +%{python_sitelib}/typepy +%{python_sitelib}/typepy-%{version}.dist-info + +%changelog diff --git a/typepy-1.3.2.tar.gz b/typepy-1.3.2.tar.gz new file mode 100644 index 0000000..3cfb967 --- /dev/null +++ b/typepy-1.3.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b69fd48b9f50cdb3809906eef36b855b3134ff66c8893a4f8580abddb0b39517 +size 24233 diff --git a/typepy-1.3.4.tar.gz b/typepy-1.3.4.tar.gz new file mode 100644 index 0000000..e15a7da --- /dev/null +++ b/typepy-1.3.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:89c1f66de6c6133209c43a94d23431d320ba03ef5db18f241091ea594035d9de +size 39558