From ba1eaa06267808773e74bebffaf96dad4822a865a36fb9ff4dbc0d67c30b5b4b Mon Sep 17 00:00:00 2001 From: Todd R Date: Thu, 31 May 2018 18:33:04 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyosf?expand=0&rev=4 --- python-pyosf.spec | 79 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 python-pyosf.spec diff --git a/python-pyosf.spec b/python-pyosf.spec new file mode 100644 index 0000000..1ee34b3 --- /dev/null +++ b/python-pyosf.spec @@ -0,0 +1,79 @@ +# +# spec file for package python-pyosf +# +# Copyright (c) 2018 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 +# 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 http://bugs.opensuse.org/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-pyosf +Version: 1.0.5 +Release: 0 +Summary: Python lib for synching with OpenScienceFramework projects +License: MIT +Group: Development/Languages/Python +Url: https://github.com/psychopy/pyosf +Source: https://files.pythonhosted.org/packages/source/p/pyosf/pyosf-%{version}.zip +Source10: https://raw.githubusercontent.com/psychopy/pyosf/v%{version}/README.md +Source11: https://raw.githubusercontent.com/psychopy/pyosf/v%{version}/The MIT License (MIT).md +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildRequires: unzip +# SECTION test requirements +BuildRequires: %{python_module coverage} +BuildRequires: %{python_module pytest-runner} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module requests} +# /SECTION +Requires: python-requests +BuildArch: noarch + +%python_subpackages + +%description +The pyosf package is a pure Python library for simple file sync with +Open Science Framework. + +This package is for simple synchronisation of files from the local +file space to the Open Science Framework (OSF). There is a more +complex fully-featured sync package by the Center for Open Science, +who created OSF, called osf-sync. + +The OSF official package is designed for continuous automated +synchronisation of many projects (a la Dropbox). We needed something +simpler (for combination with PsychoPy). The pyosf package aims to +perform basic search/login/sync operations with single projects on +OSF but only when instructed to do so (no continuous sync). + +%prep +%setup -q -n pyosf-%{version} +cp %{SOURCE10} . +cp "%{SOURCE11}" LICENSE.md + +%build +%python_build + +%install +%python_install +%python_exec %fdupes %{buildroot}%{$python_sitelib} + +%files %{python_files} +%defattr(-,root,root,-) +%doc README.md +%license LICENSE.md +%{python_sitelib}/* + +%changelog