Accepting request 612091 from devel:languages:python

python package to query google scholar and get references in various formats

OBS-URL: https://build.opensuse.org/request/show/612091
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-gscholar?expand=0&rev=1
This commit is contained in:
Dominique Leuenberger 2018-06-02 10:07:58 +00:00 committed by Git OBS Bridge
commit a3288b473b
5 changed files with 105 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -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

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

3
gscholar-1.6.1.tar.gz Normal file
View File

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

20
python-gscholar.changes Normal file
View File

@ -0,0 +1,20 @@
-------------------------------------------------------------------
Thu May 24 17:34:04 UTC 2018 - toddrme2178@gmail.com
- Spec file cleanup
- Fix rpmlint issues
-------------------------------------------------------------------
Sat Feb 17 18:26:17 UTC 2018 - arun@gmx.de
- specfile:
* add README.md CHANGELOG.md and use LICENSE from tar-ball
- update to version 1.6.1:
* Include Changelog and LICENSE files in source distribution
* Wrapped main script in proper main test
-------------------------------------------------------------------
Tue Feb 6 22:38:43 UTC 2018 - arun@gmx.de
- initial package

58
python-gscholar.spec Normal file
View File

@ -0,0 +1,58 @@
#
# spec file for package python-gscholar
#
# 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-gscholar
Version: 1.6.1
Release: 0
Summary: Python library to query Google Scholar
License: MIT
Group: Development/Languages/Python
Url: https://github.com/venthur/gscholar
Source0: https://files.pythonhosted.org/packages/source/g/gscholar/gscholar-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
%python_subpackages
%description
This package provides a python package and CLI to query google scholar
and get references in various formats (e.g. bibtex, endnote, etc.)
%prep
%setup -q -n gscholar-%{version}
sed -i -e '/^#!\//, 1d' gscholar/__main__.py
sed -i -e '/^#!\//, 1d' gscholar/gscholar.py
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%files %{python_files}
%license LICENSE
%doc README.md CHANGELOG.md
%{python_sitelib}/*
%python3_only %{_bindir}/gscholar
%changelog