14
0

Accepting request 897183 from home:pgajdos:python

- use github tarball with tests
- %check: use %pytest rpm macro

OBS-URL: https://build.opensuse.org/request/show/897183
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyRFC3339?expand=0&rev=7
This commit is contained in:
2021-06-03 12:29:31 +00:00
committed by Git OBS Bridge
parent 6e0563247e
commit b2fb73b644
3 changed files with 13 additions and 6 deletions

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1 version https://git-lfs.github.com/spec/v1
oid sha256:81b8cbe1519cdb79bed04910dd6fa4e181faf8c88dff1e1b987b5f7ab23a5b1a oid sha256:2708b8eacfa37b44dcb1f001f1464a9d541a6f3d7d9948603298e8ba1a8af361
size 5290 size 11727

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Jun 3 11:27:14 UTC 2021 - pgajdos@suse.com
- use github tarball with tests
- %check: use %pytest rpm macro
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Aug 28 12:15:23 UTC 2018 - tchvatal@suse.com Tue Aug 28 12:15:23 UTC 2018 - tchvatal@suse.com

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-pyRFC3339 # spec file for package python-pyRFC3339
# #
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2021 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -12,7 +12,7 @@
# license that conforms to the Open Source Definition (Version 1.9) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # 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/
# #
@@ -24,8 +24,9 @@ Summary: Generate and parse RFC 3339 timestamps
License: MIT License: MIT
Group: Development/Languages/Python Group: Development/Languages/Python
URL: https://github.com/kurtraschke/pyRFC3339 URL: https://github.com/kurtraschke/pyRFC3339
Source: https://files.pythonhosted.org/packages/source/p/pyRFC3339/pyRFC3339-%{version}.tar.gz Source: https://github.com/kurtraschke/pyRFC3339/archive/refs/tags/v1.1.tar.gz#/pyRFC3339-%{version}.tar.gz
BuildRequires: %{python_module nose} BuildRequires: %{python_module nose}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module pytz} BuildRequires: %{python_module pytz}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: fdupes BuildRequires: fdupes
@@ -48,7 +49,7 @@ pyRFC3339 parses and generates :RFC:`3339`-compliant timestamps using Python `da
%python_expand %fdupes %{buildroot}%{$python_sitelib}/pyrfc3339 %python_expand %fdupes %{buildroot}%{$python_sitelib}/pyrfc3339
%check %check
%python_exec setup.py test %pytest pyrfc3339/tests/tests.py
%files %{python_files} %files %{python_files}
%license LICENSE.txt %license LICENSE.txt