2020-02-07 07:07:46 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-typepy
|
|
|
|
#
|
2025-01-28 10:33:59 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2020-02-07 07:07:46 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2020-03-17 08:32:02 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
2020-02-07 07:07:46 +00:00
|
|
|
|
|
|
|
|
2023-12-04 10:42:49 +00:00
|
|
|
%{?sle15_python_module_pythons}
|
2020-02-07 07:07:46 +00:00
|
|
|
Name: python-typepy
|
2025-01-28 10:33:59 +00:00
|
|
|
Version: 1.3.4
|
2020-02-07 07:07:46 +00:00
|
|
|
Release: 0
|
2021-04-23 11:32:49 +00:00
|
|
|
Summary: Python library for run time variable type checker
|
2020-03-17 08:32:02 +00:00
|
|
|
License: MIT
|
|
|
|
URL: https://github.com/thombashi/typepy
|
2020-02-07 07:07:46 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/t/typepy/typepy-%{version}.tar.gz
|
2025-06-04 06:25:53 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
|
|
|
BuildRequires: %{python_module setuptools >= 64}
|
|
|
|
BuildRequires: %{python_module setuptools_scm >= 8}
|
|
|
|
BuildRequires: %{python_module wheel}
|
2020-03-17 08:32:02 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2020-02-07 07:07:46 +00:00
|
|
|
# SECTION test requirements
|
2020-04-17 09:38:03 +00:00
|
|
|
BuildRequires: %{python_module mbstrdecoder >= 1.0.0}
|
2021-12-07 16:03:51 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
2020-02-07 07:07:46 +00:00
|
|
|
BuildRequires: %{python_module python-dateutil >= 2.8.0}
|
|
|
|
BuildRequires: %{python_module pytz >= 2018.9}
|
2021-03-06 17:35:16 +00:00
|
|
|
BuildRequires: %{python_module tcolorpy}
|
2020-02-07 07:07:46 +00:00
|
|
|
# /SECTION
|
|
|
|
BuildRequires: fdupes
|
2020-04-17 09:38:03 +00:00
|
|
|
Requires: python-mbstrdecoder >= 1.0.0
|
2020-02-07 07:07:46 +00:00
|
|
|
Suggests: python-python-dateutil >= 2.8.0
|
|
|
|
Suggests: python-pytz >= 2018.9
|
|
|
|
Suggests: python-path.py
|
2021-03-06 17:35:16 +00:00
|
|
|
Suggests: python-tcolorpy
|
2020-02-07 07:07:46 +00:00
|
|
|
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
|
2025-06-04 06:25:53 +00:00
|
|
|
%pyproject_wheel
|
2020-02-07 07:07:46 +00:00
|
|
|
|
|
|
|
%install
|
2025-06-04 06:25:53 +00:00
|
|
|
%pyproject_install
|
2020-02-07 07:07:46 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
%check
|
|
|
|
%pytest
|
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
%license LICENSE
|
2021-03-06 17:35:16 +00:00
|
|
|
%doc README.rst
|
2025-06-04 06:25:53 +00:00
|
|
|
%{python_sitelib}/typepy
|
|
|
|
%{python_sitelib}/typepy-%{version}.dist-info
|
2020-02-07 07:07:46 +00:00
|
|
|
|
|
|
|
%changelog
|