From 4b02c84394682c9c00a10c53d98b1dcc8a72a436 Mon Sep 17 00:00:00 2001 From: rdobuilder Date: Mar 13 2023 06:58:13 +0000 Subject: Update to 1.2.0 Related-to: https://review.rdoproject.org/r/q/I66114ffbf84f3292c183ca1d39cf38d594731087 --- diff --git a/.python-datetimerange.metadata b/.python-datetimerange.metadata new file mode 100644 index 0000000..152f30e --- /dev/null +++ b/.python-datetimerange.metadata @@ -0,0 +1 @@ +3a559825b94ce73362fcc35872469f9c8c02c780 SOURCES/DateTimeRange-1.2.0.tar.gz diff --git a/SOURCES/.gitignore b/SOURCES/.gitignore new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/SOURCES/.gitignore diff --git a/SPECS/python-datetimerange.spec b/SPECS/python-datetimerange.spec new file mode 100644 index 0000000..a7d167a --- /dev/null +++ b/SPECS/python-datetimerange.spec @@ -0,0 +1,59 @@ +%global pypi_name DateTimeRange +%global module_name datetimerange + +Name: python-%{module_name} +Version: 1.2.0 +Release: 1%{?dist} +Summary: Python module DateTimeRange + +License: MIT +URL: https://github.com/thombashi/DateTimeRange +Source0: %{pypi_source %{pypi_name}} +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: pyproject-rpm-macros +BuildRequires: python3-wheel +BuildRequires: python3-typepy + +#test requirements +BuildRequires: python3-pytest +BuildRequires: python3-pytz + + +%global _description %{expand: +DateTimeRange is a Python library to handle a time range. e.g. check whether +a time is within the time range, get the intersection of time ranges, +truncating a time range, iterate through a time range, and so forth.} + +%description %_description + +%package -n python3-%{module_name} +Summary: %{summary} + +%description -n python3-%{module_name} +%_description + +%prep +%autosetup -p1 -n %{pypi_name}-%{version} +%generate_buildrequires +%pyproject_buildrequires + +%build +%pyproject_wheel + +%install +%pyproject_install +%pyproject_save_files %{module_name} + +%check +%pytest -v + +%files -n python3-%{module_name} -f %{pyproject_files} +%license LICENSE +%doc README.rst + +%changelog +* Wed Feb 08 2023 Karolina Kula - 1.2.0-1 +- initial package build +