From 039263900077caa462db179cb02d47e8e671a012a88d8646eb092397244e4346 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Wed, 26 May 2021 21:23:58 +0000 Subject: [PATCH] Accepting request 895367 from home:sebix new package OBS-URL: https://build.opensuse.org/request/show/895367 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-time-machine?expand=0&rev=1 --- .gitattributes | 23 ++++++++++++++ .gitignore | 1 + python-time-machine.changes | 4 +++ python-time-machine.spec | 60 +++++++++++++++++++++++++++++++++++++ time-machine-2.1.0.tar.gz | 3 ++ 5 files changed, 91 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 python-time-machine.changes create mode 100644 python-time-machine.spec create mode 100644 time-machine-2.1.0.tar.gz diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/python-time-machine.changes b/python-time-machine.changes new file mode 100644 index 0000000..cff012f --- /dev/null +++ b/python-time-machine.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Tue May 25 11:43:44 UTC 2021 - Sebastian Wagner + +- initial package for version 2.1.0. diff --git a/python-time-machine.spec b/python-time-machine.spec new file mode 100644 index 0000000..dfaa95d --- /dev/null +++ b/python-time-machine.spec @@ -0,0 +1,60 @@ +# +# spec file for package python-time-machine +# +# Copyright (c) 2021 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-time-machine +Version: 2.1.0 +Release: 0 +Summary: Travel through time in your tests +License: MIT +URL: https://github.com/adamchainz/time-machine +Source: https://files.pythonhosted.org/packages/source/t/time_machine/time-machine-%{version}.tar.gz +BuildRequires: python-rpm-macros +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +# SECTION +BuildRequires: %{python_module pytest-runner} +BuildRequires: %{python_module dateutil} +BuildRequires: %{python_module pytzdata} +# /SECTION +BuildRequires: fdupes +%python_subpackages + +%description +This library mocks all functions from Python's standard library that return the current date or datetime. +It can be used independently, as a function decorator, or as a context manager. + +%prep +%setup -q -n time-machine-%{version} + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest_arch + +%files %{python_files} +%doc README.rst HISTORY.rst +%license LICENSE +%{python_sitearch}/* + +%changelog diff --git a/time-machine-2.1.0.tar.gz b/time-machine-2.1.0.tar.gz new file mode 100644 index 0000000..4aee802 --- /dev/null +++ b/time-machine-2.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:45f442ef4fd069453c46c7d94d6c92417462db9379176bb5e51885d1e5e3b62e +size 132908