[Bug 2233084] Review Request: python-click-option-group - Option groups missing in Click

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Robert-André Mauchin 🐧 <zebob.m@xxxxxxxxx> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |zebob.m@xxxxxxxxx



--- Comment #7 from Robert-André Mauchin 🐧 <zebob.m@xxxxxxxxx> ---
 - Ok, it would be nice to build the docs. For that you need the Github
archive. 


For that you need build python-m2r2 :


%global pypi_name m2r2

Name:           python-%{pypi_name}
Version:        0.3.3.post2
Release:        %autorelease
Summary:         Markdown to reStructuredText converter

License:        MIT
URL:            https://github.com/crossnox/m2r2
Source:         %URL/archive/v%{version}/%{pypi_name}-%{version}.tar.gz

BuildArch:      noarch
BuildRequires:  python3-devel
BuildRequires:  python3dist(pytest)
BuildRequires:  python3dist(sphinx)

%global _description %{expand:
M2R2 converts a markdown file including reStructuredText (rst) markups to a
valid rst format.}

%description %_description

%package -n python3-%{pypi_name}
Summary:        %{summary}

%description -n python3-%{pypi_name} %_description


%package -n python-%{pypi_name}-doc
Summary:        Documentation for python-%{pypi_name}
BuildArch:      noarch

%description -n python-%{pypi_name}-doc
%{common_description}

This package is providing the documentation for %{pypi_name}.


%prep
%autosetup -n %{pypi_name}-%{version}
sed -i 's|__version__ = get_distribution("m2r2").version|__version__ =
"%{version}"|' m2r2.py


%generate_buildrequires
%pyproject_buildrequires -t


%build
%pyproject_wheel

%install
%pyproject_install
%pyproject_save_files m2r2


# generate html docs
export PYTHONPATH=$PYTHONPATH:%{buildroot}%{python3_sitelib}/
sphinx-build-3 -b html docs/ html
# remove the sphinx-build-3 leftovers
rm -rf html/.{doctrees,buildinfo}

%check
%pytest


%files -n python3-%{pypi_name} -f %{pyproject_files}
%license LICENSE
%doc CHANGES.md  README.md
%{_bindir}/m2r2

%files -n python-%{pypi_name}-doc
%doc html
%license LICENSE


%changelog
%autochangelog
========================================================

%global pypi_name click-option-group
%global pypi_name_with_underscore %(echo "%{pypi_name}" | sed "s/-/_/g")

Name:           python-%{pypi_name}
Version:        0.5.6
Release:        %autorelease
Summary:        Option groups missing in Click

License:        BSD-3-Clause
URL:            https://github.com/click-contrib/click-option-group
Source:         %URL/archive/v%{version}/%{pypi_name}-%{version}.tar.gz

BuildArch:      noarch
BuildRequires:  python3-devel
BuildRequires:  python3dist(m2r2)
BuildRequires:  python3dist(sphinx)
BuildRequires:  python3dist(pallets-sphinx-themes)

%global _description %{expand:
click-option-group is a Click-extension package that adds option groups missing
in Click.}

%description %_description


%package -n python3-click-option-group
Summary:        %{summary}

%description -n python3-click-option-group %_description


%package -n python-%{pypi_name}-doc
Summary:        Documentation for python-%{pypi_name}
BuildArch:      noarch

%description -n python-%{pypi_name}-doc
%_description

This package is providing the documentation for %{pypi_name}.


%prep
%autosetup -n click-option-group-%{version}


%generate_buildrequires
%pyproject_buildrequires -x tests


%build
%pyproject_wheel


%install
%pyproject_install
%pyproject_save_files click_option_group


# generate html docs
export PYTHONPATH=$PYTHONPATH:%{buildroot}%{python3_sitelib}/
sphinx-build-3 -b html docs/ html
# remove the sphinx-build-3 leftovers
rm -rf html/.{doctrees,buildinfo}


%check
%pytest


%files -n python3-click-option-group -f %{pyproject_files}
%license LICENSE
%doc README.md


%files -n python-%{pypi_name}-doc
%doc html
%license LICENSE


%changelog
%autochangelog


========================================================

-  description must be split after 80 column:

%global _description %{expand:
click-option-group is a Click-extension package that adds option groups missing
in Click.
}

->

%global _description %{expand:
click-option-group is a Click-extension package that adds option groups missing
in Click.}


-- 
You are receiving this mail because:
You are always notified about changes to this product and component
You are on the CC list for the bug.
https://bugzilla.redhat.com/show_bug.cgi?id=2233084

Report this comment as SPAM: https://bugzilla.redhat.com/enter_bug.cgi?product=Bugzilla&format=report-spam&short_desc=Report%20of%20Bug%202233084%23c7
_______________________________________________
package-review mailing list -- package-review@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to package-review-leave@xxxxxxxxxxxxxxxxxxxxxxx
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/package-review@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue




[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite Conditions]     [KDE Users]

  Powered by Linux