File python-abow.spec of Package python-abow
#
# spec file for package python-abow
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: python-abow
Version: 0.5.3
Release: 0
Summary: A Bottle of Wiki - personal wiki
License: AGPL-3.0-or-later
URL: https://pypi.org/project/abow/
Source0: https://files.pythonhosted.org/packages/source/a/abow/abow-%{version}.tar.gz
BuildRequires: %{python_module Markdown >= 3.2}
BuildRequires: %{python_module base >= 3.9}
BuildRequires: %{python_module bottle >= 0.12.0}
BuildRequires: %{python_module hatchling}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pymdown-extensions >= 7.0}
BuildRequires: %{python_module pytest}
BuildRequires: fdupes
BuildRequires: glibc-locale
BuildRequires: python-rpm-macros
Requires: python-Markdown >= 3.2
Requires: python-bottle >= 0.12.0
Requires: python-pymdown-extensions >= 7.0
Recommends: python-Pygments >= 2.4
BuildArch: noarch
%python_subpackages
%description
A Bottle of Wiki (abbreviated abow) is a personal wiki. Use it for viewing and
editing pages written in markdown directly your browser. It is made to be usable
both on mobile and desktop.
While you won't be hosting Wikipedia on a Bottle of Wiki, it is easy to deploy
and does not require a database: pages are saved as text files. It has no notion
of users, access rights, page history, comments, discussion or even edit
conflict. It is meant to be used by one person.
A Bottle of Wiki is a wiki built with bottle (https://bottlepy.org/).
%prep
%setup -q -n abow-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%license LICENSE.md
%doc README.md config.example usage.md
%{python_sitelib}/abow-%{version}.dist-info
%{python_sitelib}/abow
%lang(en) %{python_sitelib}/abow/locale/en/LC_MESSAGES/abow.mo
%lang(fr) %{python_sitelib}/abow/locale/fr/LC_MESSAGES/abow.mo
%changelog