public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-yfinance] rawhide: Update rawhide to upstream release 1.8.0 rhbz#2515365
@ 2026-11-28 19:51 Filipe Rosset
0 siblings, 0 replies; only message in thread
From: Filipe Rosset @ 2026-11-28 19:51 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-yfinance
Branch : rawhide
Commit : 2015052f28b96b99877f6386cb186fe2378d281f
Author : Filipe Rosset <rosset.filipe@gmail.com>
Date : 2026-11-24T21:46:24-03:00
Stats : +9/-19 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/python-yfinance/c/2015052f28b96b99877f6386cb186fe2378d281f?branch=rawhide
Log:
Update rawhide to upstream release 1.8.0 rhbz#2515365
---
diff --git a/python-yfinance.spec b/python-yfinance.spec
index b846b90..bb4b3c5 100644
--- a/python-yfinance.spec
+++ b/python-yfinance.spec
@@ -1,19 +1,15 @@
%global srcname yfinance
-%global forgeurl https://github.com/ranaroussi/%{srcname}
-Version: 1.5.2
-%global tag %{version}
-%forgemeta
+Version: 1.8.0
Name: python-%{srcname}
Release: %autorelease
Summary: Download market data from Yahoo! Finance API
License: Apache-2.0
-URL: %forgeurl
-Source0: %forgesource
+URL: https://github.com/ranaroussi/%{srcname}
+Source: %pypi_source %{srcname}
BuildArch: noarch
-
BuildRequires: python3-devel
%global _description %{expand:
@@ -33,15 +29,15 @@ Summary: %{summary}
%prep
-%forgeautosetup
+%autosetup -n %{srcname}-%{version}
+
+# curl_cffi is not packaged in Fedora. It is optional at runtime and
+# yfinance falls back to plain requests when it is unavailable.
+%pyproject_patch_dependency curl_cffi:ignore
# Remove the python shebang from non-executable files.
find yfinance -name "*.py" -exec sed -i -e '1{\@^#!/usr/bin/env python@d}' {} +
-# curl_cffi is not packaged in Fedora, but is optional and falls back to requests.
-sed -i '/curl_cffi/d' requirements.txt
-sed -i "s/'curl_cffi>=0.15',//" setup.py
-
%generate_buildrequires
%pyproject_buildrequires
@@ -52,12 +48,6 @@ sed -i "s/'curl_cffi>=0.15',//" setup.py
%install
%pyproject_install
-
-# A sample executable is included but it does not seem to work. It's not needed
-# for the package since this is a python library meant to be used by other
-# python executables.
-rm -vf %{buildroot}%{_bindir}/sample
-
%pyproject_save_files yfinance
diff --git a/sources b/sources
index 5e84b3a..87b4b2a 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (yfinance-1.5.2.tar.gz) = f52a0964478f9627dbb3523a418c2e6d144854157ece3ebd3658a5a75e134920e0895f938dc37f742b13acfc67177258412344e88a0587fa65942148195f4ecd
+SHA512 (yfinance-1.8.0.tar.gz) = 94d1d6935b1bf1d4e24751d2cc21dd29d50d6cba18ab2a826e93829e24a72692618d7f8fc396ea0b338ff270998abb8aebdb8362fcde66b472d9383427141dd9
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-28 19:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-28 19:51 [rpms/python-yfinance] rawhide: Update rawhide to upstream release 1.8.0 rhbz#2515365 Filipe Rosset
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox