Blame SPECS/python-typepy.spec
|
rdobuilder |
c2447d |
%global pypi_name typepy
|
|
rdobuilder |
c2447d |
|
|
rdobuilder |
c2447d |
Name: python-%{pypi_name}
|
|
rdobuilder |
c2447d |
Version: 1.3.0
|
|
rdobuilder |
c2447d |
Release: 2%{?dist}
|
|
rdobuilder |
c2447d |
Summary: Python library for variable type checker/validator/converter at a run time
|
|
rdobuilder |
c2447d |
|
|
rdobuilder |
c2447d |
License: MIT
|
|
rdobuilder |
c2447d |
URL: https://github.com/thombashi/typepy
|
|
rdobuilder |
c2447d |
Source0: %{pypi_source %{pypi_name}}
|
|
rdobuilder |
c2447d |
BuildArch: noarch
|
|
rdobuilder |
c2447d |
|
|
rdobuilder |
c2447d |
BuildRequires: python3-devel
|
|
rdobuilder |
c2447d |
BuildRequires: pyproject-rpm-macros
|
|
rdobuilder |
c2447d |
BuildRequires: python3-pytest
|
|
rdobuilder |
c2447d |
|
|
rdobuilder |
c2447d |
#test requirements
|
|
rdobuilder |
c2447d |
BuildRequires: python3-tcolorpy
|
|
rdobuilder |
c2447d |
BuildRequires: python3-pytz
|
|
rdobuilder |
c2447d |
BuildRequires: python3-dateutil
|
|
rdobuilder |
c2447d |
%description
|
|
rdobuilder |
c2447d |
Python library for variable type checker/validator/converter at a run time.
|
|
rdobuilder |
c2447d |
|
|
rdobuilder |
c2447d |
%package -n python3-%{pypi_name}
|
|
rdobuilder |
c2447d |
Summary: %{summary}
|
|
rdobuilder |
c2447d |
|
|
rdobuilder |
c2447d |
Requires: python3-mbstrdecoder >= 1.0.0
|
|
rdobuilder |
c2447d |
|
|
rdobuilder |
c2447d |
%description -n python3-%{pypi_name}
|
|
rdobuilder |
c2447d |
Python library for variable type checker/validator/converter at a run time.
|
|
rdobuilder |
c2447d |
|
|
rdobuilder |
c2447d |
%pyproject_extras_subpkg -n python3-%{pypi_name} datetime
|
|
rdobuilder |
c2447d |
|
|
rdobuilder |
c2447d |
%prep
|
|
rdobuilder |
c2447d |
%autosetup -p1 -n %{pypi_name}-%{version}
|
|
rdobuilder |
c2447d |
|
|
rdobuilder |
c2447d |
%generate_buildrequires
|
|
rdobuilder |
c2447d |
%pyproject_buildrequires
|
|
rdobuilder |
c2447d |
|
|
rdobuilder |
c2447d |
%build
|
|
rdobuilder |
c2447d |
%pyproject_wheel
|
|
rdobuilder |
c2447d |
|
|
rdobuilder |
c2447d |
%install
|
|
rdobuilder |
c2447d |
%pyproject_install
|
|
rdobuilder |
c2447d |
%pyproject_save_files %{pypi_name}
|
|
rdobuilder |
c2447d |
|
|
rdobuilder |
c2447d |
%check
|
|
rdobuilder |
c2447d |
%pytest -v
|
|
rdobuilder |
c2447d |
|
|
rdobuilder |
c2447d |
%files -n python3-%{pypi_name} -f %{pyproject_files}
|
|
rdobuilder |
c2447d |
%license LICENSE
|
|
rdobuilder |
c2447d |
%doc README.rst
|
|
rdobuilder |
c2447d |
|
|
rdobuilder |
c2447d |
%changelog
|
|
rdobuilder |
c2447d |
* Thu Mar 02 2023 Karolina Kula <kkula@redhat.com> - 1.3.0-2
|
|
rdobuilder |
c2447d |
- Add datetime subpackage
|
|
rdobuilder |
c2447d |
* Thu Oct 13 2022 Karolina Kula <kkula@redhat.com> - 1.3.0-1
|
|
rdobuilder |
c2447d |
- Update to 1.3.0
|
|
rdobuilder |
c2447d |
* Fri Sep 23 2022 Karolina Kula <kkula@redhat.com> - 1.2.0-2
|
|
rdobuilder |
c2447d |
- fix rpmlint issues
|
|
rdobuilder |
c2447d |
* Thu Sep 08 2022 Karolina Kula <kkula@redhat.com> - 1.2.0-1
|
|
rdobuilder |
c2447d |
- initial package build
|
|
rdobuilder |
c2447d |
|