Name: edgar-tool Version: 2.1.2 Release: 2%{?dist} Summary: Search and retrieve corporate and financial data from the US SEC # LICENSE is the GPL-3.0 text; pyproject.toml says "GPLv3" and no file # says "or later". License: GPL-3.0-only URL: https://github.com/bellingcat/EDGAR Source0: %{url}/archive/v%{version}/EDGAR-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-pytest BuildRequires: python3-freezegun %description edgar-tool, from Bellingcat, searches the US Securities and Exchange Commission's EDGAR database from the command line: full-text search of filings by keyword, company, filing type, location and date, and the latest filings from EDGAR's RSS feeds. Results are written as CSV, JSON or JSON Lines. %prep %autosetup -n EDGAR-%{version} -p1 # Upstream's caret pins predate Fedora's versions; pytest is a test # dependency, not a runtime one. sed -i -e '/^\[tool.poetry.dependencies\]/,/^$/{/^pytest = /d; s/= "[~^][^"]*"/= "*"/}' \ pyproject.toml %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install # f43's poetry-core does not record License-File (PEP 639). %pyproject_save_files -L edgar_tool %check %pyproject_check_import %{py3_test_envvars} %{buildroot}%{_bindir}/edgar --help >/dev/null # test_end_to_end.py queries the live SEC website. Since click 8.2, # no_args_is_help prints the help and exits 2, not 0 (upstream pins 8.1). # The other two match typer's error wording, which newer typer (f45) words # differently ("{text}..." for "TEXT..."). %pytest --ignore=tests/test_end_to_end.py \ --deselect tests/test_cli.py::TestTextSearch::test_cli_should_return_help_string_when_passed_no_args \ --deselect tests/test_cli.py::TestTextSearch::test_no_text_fails \ --deselect tests/test_cli.py::TestRss::test_with_no_tickers_fails %files -f %{pyproject_files} %license LICENSE %doc README.md %{_bindir}/edgar %{_bindir}/edgar-tool %changelog * Fri Oct 30 2026 Morgan Hough - 2.1.2-2 - Build on f43 (no PEP 639 metadata there) and f45 (newer typer wording) * Fri Oct 30 2026 Morgan Hough - 2.1.2-1 - Initial package