14
0
forked from pool/python-pdd

Accepting request 697443 from home:pgajdos

- version update to 1.4
  - Command piggybacking with countdown timer
  - Show current time for timers
  - Disable showing epoch time on `pdd`
- run the test suite

OBS-URL: https://build.opensuse.org/request/show/697443
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pdd?expand=0&rev=3
This commit is contained in:
Tomáš Chvátal
2019-04-24 10:27:55 +00:00
committed by Git OBS Bridge
parent 0060c8bfe3
commit 03a74e87cb
4 changed files with 29 additions and 10 deletions

View File

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

3
pdd-1.4.tar.gz Normal file
View File

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

View File

@@ -1,3 +1,12 @@
-------------------------------------------------------------------
Wed Apr 24 09:21:19 UTC 2019 - pgajdos@suse.com
- version update to 1.4
- Command piggybacking with countdown timer
- Show current time for timers
- Disable showing epoch time on `pdd`
- run the test suite
-------------------------------------------------------------------
Wed Aug 8 16:43:20 UTC 2018 - dmarcoux@posteo.de

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-pdd
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2019 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
@@ -12,29 +12,32 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
# pdd is not available for Python 2
%define skip_python2 1
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-pdd
Version: 1.3.1
Version: 1.4
Release: 0
License: GPL-3.0
Summary: Tiny date, time diff calculator with timers
Url: https://github.com/jarun/pdd
License: GPL-3.0-only
Group: Development/Languages/Python
Url: https://github.com/jarun/pdd
Source: https://files.pythonhosted.org/packages/source/p/pdd/pdd-%{version}.tar.gz
BuildRequires: python-rpm-macros
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: python-rpm-macros
# SECTION test requirements
BuildRequires: %{python_module python-dateutil}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module python-dateutil}
# /SECTION
BuildRequires: fdupes
Requires: python-python-dateutil
Requires: python-setuptools
BuildArch: noarch
%python_subpackages
@@ -46,12 +49,19 @@ pdd (Python3 Date Diff) is a small cmdline utility to calculate date and time di
%setup -q -n pdd-%{version}
%build
# this seems to be fixed in github (there is pdd instead of pdd.py,
# what setup.py expects, if I have not missed anything)
mv pdd.py pdd
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
chmod 755 pdd
%pytest test.py
%files %{python_files}
%doc README.md CHANGELOG
%license LICENSE