https://bugzilla.redhat.com/show_bug.cgi?id=1786732

Robert-André Mauchin <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]
             Blocks|                            |177841 (FE-NEEDSPONSOR)
           Doc Type|---                         |If docs needed, set a value



--- Comment #1 from Robert-André Mauchin <[email protected]> ---
 - Fix this:

Summary:        Example python module


 - Source is 404:

Getting
https://files.pythonhosted.org/packages/source/p/pyhocon/pyhocon-0.3.53.tar.gz
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/%{version}/%{name}-%{version}.tar.gz

 - 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/%{version}/%{name}-%{version}.tar.gz

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 <[email protected]> - 0.3.53-2
- Fixed license designation
- Specified module deps as BuildRequires
- Re-enabled %check

* Fri Dec 20 2019 Martin Jackson <[email protected]> - 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
-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are always notified about changes to this product and component
_______________________________________________
package-review mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]

Reply via email to