https://bugzilla.redhat.com/show_bug.cgi?id=1786732
Robert-André Mauchin zebob.m@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |zebob.m@gmail.com Blocks| |177841 (FE-NEEDSPONSOR) Doc Type|--- |If docs needed, set a value
--- Comment #1 from Robert-André Mauchin zebob.m@gmail.com --- - Fix this:
Summary: Example python module
- Source is 404:
Getting https://files.pythonhosted.org/packages/source/p/pyhocon/pyhocon-0.3.53.tar.... to ./pyhocon-0.3.53.tar.gz % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 curl: (22) The requested URL returned error: 404
Use the Source from Github, Pypi seems unreliable on this.
Source0: https://github.com/chimpler/pyhocon/archive/%%7Bversion%7D/%%7Bname%7D-%%7Bv...
- Same as before, just name the main package pyhocon since it's a binary
- Generate the docs:
BuildRequires: python3-devel BuildRequires: python3dist(pyparsing) BuildRequires: python3dist(python-dateutil) BuildRequires: python3dist(mock) BuildRequires: python3dist(pytest) BuildRequires: python3dist(sphinx)
[…]
# generate html docs PYTHONPATH=${PWD} sphinx-build-3 docs/source html # remove the sphinx-build leftovers rm -rf html/.{doctrees,buildinfo}
- Tests fail on Python 3.8 (Rawhide): report the errors upstream and wait for them to release a version compatible with Python 3.8
%global srcname pyhocon
Name: %{srcname} Version: 0.3.53 Release: 2%{?dist} Summary: Example python module
License: ASL 2.0 URL: https://pypi.python.org/pypi/pyhocon Source0: https://github.com/chimpler/pyhocon/archive/%%7Bversion%7D/%%7Bname%7D-%%7Bv...
BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3dist(pyparsing) BuildRequires: python3dist(python-dateutil) BuildRequires: python3dist(mock) BuildRequires: python3dist(pytest) BuildRequires: python3dist(sphinx)
%global _description %{expand: pyhocon is a HOCON parser for Python. Additionally we provide a tool (pyhocon) to convert any HOCON content into json, yaml and properties format.}
%description %_description
%prep %autosetup -n %{srcname}-%{version}
%build %py3_build # generate html docs PYTHONPATH=${PWD} sphinx-build-3 docs/source html # remove the sphinx-build leftovers rm -rf html/.{doctrees,buildinfo}
%install %py3_install
%check %{__python3} setup.py test
%files %license LICENSE %doc CHANGELOG.md README.md html/ %{python3_sitelib}/%{srcname}-*.egg-info/ %{python3_sitelib}/%{srcname}/ %{_bindir}/pyhocon
%changelog * Sun Dec 22 2019 Martin Jackson mhjacks@swbell.net - 0.3.53-2 - Fixed license designation - Specified module deps as BuildRequires - Re-enabled %check
* Fri Dec 20 2019 Martin Jackson mhjacks@swbell.net - 0.3.53-1 - First build.
Referenced Bugs:
https://bugzilla.redhat.com/show_bug.cgi?id=177841 [Bug 177841] Tracker: Review requests from new Fedora packagers who need a sponsor