[packages/python3-arrow] - python-arrow.spec updated to 1.3.0 for python 3.8+

qboosh qboosh at pld-linux.org
Tue Jul 15 21:47:23 CEST 2025


commit 46749e31d56d6939421fcb288b6e8326cabac07f
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Tue Jul 15 21:49:00 2025 +0200

    - python-arrow.spec updated to 1.3.0 for python 3.8+

 python-arrow.spec  | 182 -----------------------------------------------------
 python3-arrow.spec | 109 ++++++++++++++++++++++++++++++++
 2 files changed, 109 insertions(+), 182 deletions(-)
---
diff --git a/python-arrow.spec b/python-arrow.spec
deleted file mode 100644
index fcc4199..0000000
--- a/python-arrow.spec
+++ /dev/null
@@ -1,182 +0,0 @@
-#
-# Conditional build:
-%bcond_without	doc	# Sphinx documentation
-%bcond_without	tests	# unit tests
-%bcond_without	python2 # CPython 2.x module
-%bcond_without	python3 # CPython 3.x module
-
-%define	module	arrow
-Summary:	Better dates and times for Python
-Summary(pl.UTF-8):	Lepsze daty i czasy dla Pythona
-Name:		python-%{module}
-# keep 0.x here for python2 support
-Version:	0.17.0
-Release:	1
-License:	Apache v2.0
-Group:		Libraries/Python
-#Source0Download: https://pypi.org/simple/arrow/
-Source0:	https://files.pythonhosted.org/packages/source/a/arrow/%{module}-%{version}.tar.gz
-# Source0-md5:	76d66d0d03effad1407fb4dcebce9566
-URL:		https://pypi.org/project/arrow/
-%if %{with python2}
-BuildRequires:	python-modules >= 1:2.7
-BuildRequires:	python-setuptools
-%if %{with tests}
-BuildRequires:	python-backports.functools_lru_cache >= 1.2.1
-# optional
-BuildRequires:	python-dateparser >= 0.7
-BuildRequires:	python-dateutil >= 2.7.0
-BuildRequires:	python-pytest >= 4.6
-BuildRequires:	python-pytest-mock >= 2.0
-BuildRequires:	python-pytz >= 2019
-BuildRequires:	python-simplejson
-%endif
-%endif
-%if %{with python3}
-BuildRequires:	python3-modules >= 1:3.5
-BuildRequires:	python3-setuptools
-%if %{with tests}
-# optional
-BuildRequires:	python3-dateparser >= 0.7
-BuildRequires:	python3-dateutil >= 2.7.0
-BuildRequires:	python3-pytest >= 6.0
-BuildRequires:	python3-pytest-mock >= 3.2
-BuildRequires:	python3-pytz >= 2019
-BuildRequires:	python3-simplejson
-%endif
-%endif
-BuildRequires:	rpmbuild(macros) >= 1.714
-BuildRequires:	rpm-pythonprov
-%if %{with doc}
-BuildRequires:	sphinx-pdg-2 >= 1.8
-%endif
-Requires:	python-modules >= 1:2.7
-BuildArch:	noarch
-BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-
-%description
-Arrow is a Python library that offers a sensible, human-friendly
-approach to creating, manipulating, formatting and converting dates,
-times, and timestamps. It implements and updates the datetime type,
-plugging gaps in functionality, and provides an intelligent module API
-that supports many common creation scenarios.
-
-Simply put, it helps you work with dates and times with fewer imports
-and a lot less code.
-
-%description -l pl.UTF-8
-Arrow to biblioteka Pythona oferująca sensowne, przyjazne dla
-człowieka podejście do tworzenia, operowania, formatowania i
-konwertowania dat, czasów i znaczników czasu. Implementuje i
-uaktualnia typ datetime, łatając luki w funkcjonalności oraz zapewnia
-inteligentne API modułu, obsługujące wiele scenariuszy tworzenia.
-
-Mówiąc prosto, pozwala pracować z datami i czasami z mniejszą liczbą
-importów i znacznie mniejszą ilością kodu.
-
-%package -n python3-arrow
-Summary:	Better dates and times for Python
-Summary(pl.UTF-8):	Lepsze daty i czasy dla Pythona
-Group:		Libraries/Python
-Requires:	python3-modules >= 1:3.5
-
-%description -n python3-arrow
-Arrow is a Python library that offers a sensible, human-friendly
-approach to creating, manipulating, formatting and converting dates,
-times, and timestamps. It implements and updates the datetime type,
-plugging gaps in functionality, and provides an intelligent module API
-that supports many common creation scenarios.
-
-Simply put, it helps you work with dates and times with fewer imports
-and a lot less code.
-
-%description -n python3-arrow -l pl.UTF-8
-Arrow to biblioteka Pythona oferująca sensowne, przyjazne dla
-człowieka podejście do tworzenia, operowania, formatowania i
-konwertowania dat, czasów i znaczników czasu. Implementuje i
-uaktualnia typ datetime, łatając luki w funkcjonalności oraz zapewnia
-inteligentne API modułu, obsługujące wiele scenariuszy tworzenia.
-
-Mówiąc prosto, pozwala pracować z datami i czasami z mniejszą liczbą
-importów i znacznie mniejszą ilością kodu.
-
-%package apidocs
-Summary:	API documentation for Python arrow module
-Summary(pl.UTF-8):	Dokumentacja API modułu Pythona arrow
-Group:		Documentation
-
-%description apidocs
-API documentation for Python arrow module.
-
-%description apidocs -l pl.UTF-8
-Dokumentacja API modułu Pythona arrow.
-
-%prep
-%setup -q -n %{module}-%{version}
-
-# Remove bundled egg-info
-%{__rm} -r %{module}.egg-info
-
-%build
-%if %{with python2}
-%py_build
-
-%if %{with tests}
-PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
-PYTEST_PLUGINS=pytest_cov.plugin,pytest_mock.plugin \
-%{__python} -m pytest tests
-%endif
-%endif
-
-%if %{with python3}
-%py3_build
-
-%if %{with tests}
-PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
-PYTEST_PLUGINS=pytest_cov.plugin,pytest_mock.plugin \
-%{__python3} -m pytest tests
-%endif
-%endif
-
-%if %{with doc}
-%{__make} -C docs html \
-	SPHINXBUILD=sphinx-build-2
-%endif
-
-%install
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%py_install
-
-%py_postclean
-%endif
-
-%if %{with python3}
-%py3_install
-%endif
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%files
-%defattr(644,root,root,755)
-%doc CHANGELOG.rst README.rst
-%{py_sitescriptdir}/arrow
-%{py_sitescriptdir}/arrow-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-%{module}
-%defattr(644,root,root,755)
-%doc CHANGELOG.rst README.rst
-%{py3_sitescriptdir}/arrow
-%{py3_sitescriptdir}/arrow-%{version}-py*.egg-info
-%endif
-
-%if %{with doc}
-%files apidocs
-%defattr(644,root,root,755)
-%doc docs/_build/html/{_static,*.html,*.js}
-%endif
diff --git a/python3-arrow.spec b/python3-arrow.spec
new file mode 100644
index 0000000..58d0d41
--- /dev/null
+++ b/python3-arrow.spec
@@ -0,0 +1,109 @@
+#
+# Conditional build:
+%bcond_without	doc	# Sphinx documentation
+%bcond_without	tests	# unit tests
+
+%define	module	arrow
+Summary:	Better dates and times for Python
+Summary(pl.UTF-8):	Lepsze daty i czasy dla Pythona
+Name:		python3-%{module}
+Version:	1.3.0
+Release:	1
+License:	Apache v2.0
+Group:		Libraries/Python
+#Source0Download: https://pypi.org/simple/arrow/
+Source0:	https://files.pythonhosted.org/packages/source/a/arrow/%{module}-%{version}.tar.gz
+# Source0-md5:	f03ecc3edbe2db99f366142f6e0f6d0b
+URL:		https://pypi.org/project/arrow/
+%if %{with tests}
+BuildRequires:	python3-modules >= 1:3.8
+BuildRequires:	python3-setuptools
+# optional
+BuildRequires:	python3-dateparser >= 1
+BuildRequires:	python3-dateutil >= 2.7.0
+BuildRequires:	python3-pytest >= 6.0
+BuildRequires:	python3-pytest-cov
+BuildRequires:	python3-pytest-mock >= 3.2
+BuildRequires:	python3-pytz >= 2021.1
+BuildRequires:	python3-simplejson >= 3
+%endif
+BuildRequires:	rpmbuild(macros) >= 1.714
+BuildRequires:	rpm-pythonprov
+%if %{with doc}
+# ?
+#BuildRequires:	python3-sphinx_autobuild
+BuildRequires:	python3-sphinx_autodoc_typehints
+BuildRequires:	python3-sphinx_rtd_theme >= 1.3.0
+BuildRequires:	sphinx-pdg-3 >= 7.0.0
+%endif
+Requires:	python3-modules >= 1:3.8
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Arrow is a Python library that offers a sensible, human-friendly
+approach to creating, manipulating, formatting and converting dates,
+times, and timestamps. It implements and updates the datetime type,
+plugging gaps in functionality, and provides an intelligent module API
+that supports many common creation scenarios.
+
+Simply put, it helps you work with dates and times with fewer imports
+and a lot less code.
+
+%description -l pl.UTF-8
+Arrow to biblioteka Pythona oferująca sensowne, przyjazne dla
+człowieka podejście do tworzenia, operowania, formatowania i
+konwertowania dat, czasów i znaczników czasu. Implementuje i
+uaktualnia typ datetime, łatając luki w funkcjonalności oraz zapewnia
+inteligentne API modułu, obsługujące wiele scenariuszy tworzenia.
+
+Mówiąc prosto, pozwala pracować z datami i czasami z mniejszą liczbą
+importów i znacznie mniejszą ilością kodu.
+
+%package apidocs
+Summary:	API documentation for Python arrow module
+Summary(pl.UTF-8):	Dokumentacja API modułu Pythona arrow
+Group:		Documentation
+
+%description apidocs
+API documentation for Python arrow module.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API modułu Pythona arrow.
+
+%prep
+%setup -q -n %{module}-%{version}
+
+%build
+%py3_build
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS=pytest_cov.plugin,pytest_mock.plugin \
+%{__python3} -m pytest tests
+%endif
+
+%if %{with doc}
+%{__make} -C docs html \
+	SPHINXBUILD=sphinx-build-3
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGELOG.rst README.rst
+%{py3_sitescriptdir}/arrow
+%{py3_sitescriptdir}/arrow-%{version}-py*.egg-info
+
+%if %{with doc}
+%files apidocs
+%defattr(644,root,root,755)
+%doc docs/_build/html/{_static,*.html,*.js}
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-arrow.git/commitdiff/46749e31d56d6939421fcb288b6e8326cabac07f



More information about the pld-cvs-commit mailing list