forked from pool/python-tweepy
* Re-improve clarity of OAuth 2.0 User Context example code * Fix SyntaxWarning * Install 'build' * Bump version number to 4.15.0 * Docs config updates to fix build * Fix Sphinx context injection removal by readthedocs * Revert hoverxref upgrade for now until sphinx can be updated * Fix build error for docs related to 'html_context' setting * Modernize packaging configuration * Add new publish workflow to use trusted publisher * Add dev and test dependencies * Update publish workflow... * Add support for posting tweets to Communities * Update .gitignore * Release 4.16.0 - Drop fix-package-version.patch, merged upstream - Update BuildRequires from pyproject.toml - Use Python 3.11 on SLE-15 by default OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tweepy?expand=0&rev=36
71 lines
2.3 KiB
RPMSpec
71 lines
2.3 KiB
RPMSpec
#
|
|
# spec file for package python-tweepy
|
|
#
|
|
# Copyright (c) 2025 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/
|
|
#
|
|
|
|
|
|
%{?sle15_python_module_pythons}
|
|
Name: python-tweepy
|
|
Version: 4.16.0
|
|
Release: 0
|
|
Summary: Twitter library for python
|
|
License: MIT
|
|
URL: https://github.com/tweepy/tweepy
|
|
Source: https://github.com/tweepy/tweepy/archive/v%{version}.tar.gz
|
|
BuildRequires: %{python_module aiohttp}
|
|
BuildRequires: %{python_module async-lru}
|
|
BuildRequires: %{python_module flit-core}
|
|
BuildRequires: %{python_module pip}
|
|
BuildRequires: %{python_module pytest}
|
|
BuildRequires: %{python_module requests >= 2.27.0}
|
|
BuildRequires: %{python_module requests-oauthlib >= 1.0.0}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: %{python_module urllib3 < 2}
|
|
BuildRequires: %{python_module vcrpy >= 1.10.3}
|
|
BuildRequires: %{python_module wheel}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-generators
|
|
BuildRequires: python-rpm-macros
|
|
BuildArch: noarch
|
|
%{?python_enable_dependency_generator}
|
|
%python_subpackages
|
|
|
|
%description
|
|
A library for accessing the Twitter.com API. Supports OAuth, covers the entire
|
|
API, and streaming API.
|
|
|
|
%prep
|
|
%autosetup -p1 -n tweepy-%{version}
|
|
|
|
%build
|
|
%pyproject_wheel
|
|
|
|
%install
|
|
%pyproject_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
export USE_REPLAY=1
|
|
# TweepyAuthTests, test_filter_track, test_sample, test_sitestream, test_userstream and test_exp_backoff fail due to network
|
|
%pytest -rs -k 'not (TweepyAuthTests or test_filter_track or test_sample or test_sitestream or test_userstream or test_exp_backoff)'
|
|
|
|
%files %{python_files}
|
|
%doc README.md docs/*.rst docs/*.md
|
|
%license LICENSE
|
|
%{python_sitelib}/tweepy
|
|
%{python_sitelib}/tweepy-%{version}.dist-info
|
|
|
|
%changelog
|