Accepting request 510513 from home:alois:branches:devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/510513
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-arrow?expand=0&rev=3
This commit is contained in:
Thomas Bechtold 2017-07-17 05:00:55 +00:00 committed by Git OBS Bridge
parent 63677733f1
commit 1e1cb449d1
4 changed files with 28 additions and 20 deletions

3
arrow-0.10.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:805906f09445afc1f0fc80187db8fe07670e3b25cdafa09b8d8ac264a8c0c722
size 86506

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a280fbd0f1371f54d5b3c09ddc2cd58122ff6a0811500ab237e8ef27fd23b9e9
size 63466

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sat Jul 15 18:33:22 UTC 2017 - aloisio@gmx.com
- Update to 0.10.0 (see HISTORY.md)
- Converted to singlespec
-------------------------------------------------------------------
Fri Feb 26 12:54:58 UTC 2016 - tbechtold@suse.com

View File

@ -1,7 +1,7 @@
#
# spec file for package python-arrow
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -16,25 +16,26 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-arrow
Version: 0.4.4
Version: 0.10.0
Release: 0
Summary: Better dates and times for Python
License: Apache-2.0
Group: Development/Languages/Python
Url: http://crsmithdev.com/arrow
Source: https://pypi.python.org/packages/source/a/arrow/arrow-%{version}.tar.gz
BuildRequires: python-chai
BuildRequires: python-devel
BuildRequires: python-nose
BuildRequires: python-python-dateutil
Source: https://files.pythonhosted.org/packages/source/a/arrow/arrow-%{version}.tar.gz
BuildRequires: %{python_module chai}
BuildRequires: %{python_module devel}
BuildRequires: %{python_module nose}
BuildRequires: %{python_module python-dateutil}
BuildRequires: %{python_module simplejson}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-python-dateutil
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
BuildArch: noarch
%endif
%python_subpackages
%description
Arrow is a Python library that offers a sensible, human-friendly
@ -47,22 +48,23 @@ less code.
Arrow is heavily inspired by moment.js and requests.
%prep
%setup -q -n arrow-%{version}
rm -rf arrow.egg-info
%build
python setup.py build
%python_build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%python_install
%python_expand %fdupes -s %{buildroot}%{$python_sitelib}
%check
PYTHONPATH="%{buildroot}%{python_sitelib}:$PYTHONPATH" nosetests
%python_expand PYTHONPATH="%{buildroot}%{$python_sitelib}:$PYTHONPATH" $python %{_bindir}/nosetests
%files
%files %{python_files}
%defattr(-,root,root,-)
%doc LICENSE README.md HISTORY.md
%doc LICENSE README.rst HISTORY.md
%{python_sitelib}/*
%changelog