1
0
python-flickrapi/python-flickrapi.spec

71 lines
2.4 KiB
RPMSpec
Raw Permalink Normal View History

#
# spec file for package python-flickrapi
#
# Copyright (c) 2024 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.
- update to 2.3: - Removed flickrapi/contrib.py, as a persistent connection is now managed (much better) - Added explicit support for Python 3.5. - Moved from a Mercurial repository at BitBucket to a [Git repository at GitHub](https://github.com/sybrenstuvel/flickrapi/). - Mocking some calls to Flickr, so that unit tests can run without requiring the user to authenticate via the browser. This also prevents the upload of the test photo. - More serious testing, using py.test and Tox to test on all support versions of Python. - Automated builds are performed with Travis-CI. - Make flickrapi token storage directory configurable. [[ Feature request #68 ]](https://github.com/sybrenstuvel/flickrapi/issues/68) - Put requests in a session to benefit from connection reuse (Alexandre L). - When uploading a photo, send the title as UTF8 - Sort many photosets with 'flickr.photosets.orderSets' failed [[ Bug report #74]](https://github.com/sybrenstuvel/flickrapi/issues/74) - Converted requested_permissions to unicode and ported authentication example to Python 3 (Michael Klich). - update to version 2.0: * Major revision; now uses OAuth to interface with Flickr. Combines work of Sybren A. Stüvel, Jim Easterbrook, Thai Nguyen, Nick Loadholtes and Bengt. - drop flickrapi-drop-bootstrap-distribute.patch: fixed upstream - point the source URL to pypi - remove unneeded depedencies to python-docutils, python-xml and unzip - add new dependencies required by upstream: * python-requests OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flickrapi?expand=0&rev=11
2017-05-17 08:19:29 +00:00
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: python-flickrapi
Version: 2.4.0
Release: 0
Summary: Python interface to Flickr
License: Python-2.0
URL: http://stuvel.eu/projects/flickrapi
Source0: https://files.pythonhosted.org/packages/source/f/flickrapi/flickrapi-%{version}.tar.gz
# Based on https://github.com/sybrenstuvel/flickrapi/commit/e47e62df304d36ae81c483230bb41e6f4dde8bfd
Patch0: python-flickrapi-no-python2.patch
BuildRequires: %{python_module pip}
BuildRequires: %{python_module requests >= 2.4.3}
BuildRequires: %{python_module requests-oauthlib >= 0.4.2}
BuildRequires: %{python_module requests-toolbelt >= 0.3.1}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
- update to 2.3: - Removed flickrapi/contrib.py, as a persistent connection is now managed (much better) - Added explicit support for Python 3.5. - Moved from a Mercurial repository at BitBucket to a [Git repository at GitHub](https://github.com/sybrenstuvel/flickrapi/). - Mocking some calls to Flickr, so that unit tests can run without requiring the user to authenticate via the browser. This also prevents the upload of the test photo. - More serious testing, using py.test and Tox to test on all support versions of Python. - Automated builds are performed with Travis-CI. - Make flickrapi token storage directory configurable. [[ Feature request #68 ]](https://github.com/sybrenstuvel/flickrapi/issues/68) - Put requests in a session to benefit from connection reuse (Alexandre L). - When uploading a photo, send the title as UTF8 - Sort many photosets with 'flickr.photosets.orderSets' failed [[ Bug report #74]](https://github.com/sybrenstuvel/flickrapi/issues/74) - Converted requested_permissions to unicode and ported authentication example to Python 3 (Michael Klich). - update to version 2.0: * Major revision; now uses OAuth to interface with Flickr. Combines work of Sybren A. Stüvel, Jim Easterbrook, Thai Nguyen, Nick Loadholtes and Bengt. - drop flickrapi-drop-bootstrap-distribute.patch: fixed upstream - point the source URL to pypi - remove unneeded depedencies to python-docutils, python-xml and unzip - add new dependencies required by upstream: * python-requests OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flickrapi?expand=0&rev=11
2017-05-17 08:19:29 +00:00
BuildRequires: python-rpm-macros
Requires: python-requests >= 2.4.3
Requires: python-requests-oauthlib >= 0.4.2
Requires: python-requests-toolbelt >= 0.3.1
BuildArch: noarch
- update to 2.3: - Removed flickrapi/contrib.py, as a persistent connection is now managed (much better) - Added explicit support for Python 3.5. - Moved from a Mercurial repository at BitBucket to a [Git repository at GitHub](https://github.com/sybrenstuvel/flickrapi/). - Mocking some calls to Flickr, so that unit tests can run without requiring the user to authenticate via the browser. This also prevents the upload of the test photo. - More serious testing, using py.test and Tox to test on all support versions of Python. - Automated builds are performed with Travis-CI. - Make flickrapi token storage directory configurable. [[ Feature request #68 ]](https://github.com/sybrenstuvel/flickrapi/issues/68) - Put requests in a session to benefit from connection reuse (Alexandre L). - When uploading a photo, send the title as UTF8 - Sort many photosets with 'flickr.photosets.orderSets' failed [[ Bug report #74]](https://github.com/sybrenstuvel/flickrapi/issues/74) - Converted requested_permissions to unicode and ported authentication example to Python 3 (Michael Klich). - update to version 2.0: * Major revision; now uses OAuth to interface with Flickr. Combines work of Sybren A. Stüvel, Jim Easterbrook, Thai Nguyen, Nick Loadholtes and Bengt. - drop flickrapi-drop-bootstrap-distribute.patch: fixed upstream - point the source URL to pypi - remove unneeded depedencies to python-docutils, python-xml and unzip - add new dependencies required by upstream: * python-requests OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flickrapi?expand=0&rev=11
2017-05-17 08:19:29 +00:00
%ifpython2
Provides: python-flickrapi-doc = %{version}
Obsoletes: python-flickrapi-doc < %{version}
- update to 2.3: - Removed flickrapi/contrib.py, as a persistent connection is now managed (much better) - Added explicit support for Python 3.5. - Moved from a Mercurial repository at BitBucket to a [Git repository at GitHub](https://github.com/sybrenstuvel/flickrapi/). - Mocking some calls to Flickr, so that unit tests can run without requiring the user to authenticate via the browser. This also prevents the upload of the test photo. - More serious testing, using py.test and Tox to test on all support versions of Python. - Automated builds are performed with Travis-CI. - Make flickrapi token storage directory configurable. [[ Feature request #68 ]](https://github.com/sybrenstuvel/flickrapi/issues/68) - Put requests in a session to benefit from connection reuse (Alexandre L). - When uploading a photo, send the title as UTF8 - Sort many photosets with 'flickr.photosets.orderSets' failed [[ Bug report #74]](https://github.com/sybrenstuvel/flickrapi/issues/74) - Converted requested_permissions to unicode and ported authentication example to Python 3 (Michael Klich). - update to version 2.0: * Major revision; now uses OAuth to interface with Flickr. Combines work of Sybren A. Stüvel, Jim Easterbrook, Thai Nguyen, Nick Loadholtes and Bengt. - drop flickrapi-drop-bootstrap-distribute.patch: fixed upstream - point the source URL to pypi - remove unneeded depedencies to python-docutils, python-xml and unzip - add new dependencies required by upstream: * python-requests OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flickrapi?expand=0&rev=11
2017-05-17 08:19:29 +00:00
%endif
%python_subpackages
%description
The easiest to use, most complete, and most actively developed
Python interface to the Flickr API. It includes support for
authorized and non-authorized access, uploading and replacing
photos, and all Flickr API functions.
%prep
%autosetup -p1 -n flickrapi-%{version}
sed -i "1d" flickrapi/__init__.py # Fix non-executable script
%build
%pyproject_wheel
%install
%pyproject_install
- update to 2.3: - Removed flickrapi/contrib.py, as a persistent connection is now managed (much better) - Added explicit support for Python 3.5. - Moved from a Mercurial repository at BitBucket to a [Git repository at GitHub](https://github.com/sybrenstuvel/flickrapi/). - Mocking some calls to Flickr, so that unit tests can run without requiring the user to authenticate via the browser. This also prevents the upload of the test photo. - More serious testing, using py.test and Tox to test on all support versions of Python. - Automated builds are performed with Travis-CI. - Make flickrapi token storage directory configurable. [[ Feature request #68 ]](https://github.com/sybrenstuvel/flickrapi/issues/68) - Put requests in a session to benefit from connection reuse (Alexandre L). - When uploading a photo, send the title as UTF8 - Sort many photosets with 'flickr.photosets.orderSets' failed [[ Bug report #74]](https://github.com/sybrenstuvel/flickrapi/issues/74) - Converted requested_permissions to unicode and ported authentication example to Python 3 (Michael Klich). - update to version 2.0: * Major revision; now uses OAuth to interface with Flickr. Combines work of Sybren A. Stüvel, Jim Easterbrook, Thai Nguyen, Nick Loadholtes and Bengt. - drop flickrapi-drop-bootstrap-distribute.patch: fixed upstream - point the source URL to pypi - remove unneeded depedencies to python-docutils, python-xml and unzip - add new dependencies required by upstream: * python-requests OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flickrapi?expand=0&rev=11
2017-05-17 08:19:29 +00:00
rm -rf %{buildroot}%{python_sitelib}/*.txt # Remove wrongly installed documentation
%python_expand %fdupes %{buildroot}%{$python_sitelib}
- update to 2.3: - Removed flickrapi/contrib.py, as a persistent connection is now managed (much better) - Added explicit support for Python 3.5. - Moved from a Mercurial repository at BitBucket to a [Git repository at GitHub](https://github.com/sybrenstuvel/flickrapi/). - Mocking some calls to Flickr, so that unit tests can run without requiring the user to authenticate via the browser. This also prevents the upload of the test photo. - More serious testing, using py.test and Tox to test on all support versions of Python. - Automated builds are performed with Travis-CI. - Make flickrapi token storage directory configurable. [[ Feature request #68 ]](https://github.com/sybrenstuvel/flickrapi/issues/68) - Put requests in a session to benefit from connection reuse (Alexandre L). - When uploading a photo, send the title as UTF8 - Sort many photosets with 'flickr.photosets.orderSets' failed [[ Bug report #74]](https://github.com/sybrenstuvel/flickrapi/issues/74) - Converted requested_permissions to unicode and ported authentication example to Python 3 (Michael Klich). - update to version 2.0: * Major revision; now uses OAuth to interface with Flickr. Combines work of Sybren A. Stüvel, Jim Easterbrook, Thai Nguyen, Nick Loadholtes and Bengt. - drop flickrapi-drop-bootstrap-distribute.patch: fixed upstream - point the source URL to pypi - remove unneeded depedencies to python-docutils, python-xml and unzip - add new dependencies required by upstream: * python-requests OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flickrapi?expand=0&rev=11
2017-05-17 08:19:29 +00:00
%files %{python_files}
%license LICENSE.txt
%doc README.md
%{python_sitelib}/flickrapi
%{python_sitelib}/flickrapi-%{version}.dist-info
%changelog