File python-appdirs.spec of Package python-appdirs

%{?vortex_header}%{!?vortex_header:%global vortex_pkg vortex-2024-07}

Name:          python-appdirs
Version:       1.4.4
Release:       %autorelease
Summary:       Python module for determining platform-specific directories

# https://spdx.org/licenses/MIT.html
License:       MIT
URL:           https://github.com/ActiveState/appdirs
Source:        %{pypi_source appdirs}

BuildArch:     noarch

BuildRequires: %{vortex_pkg}-python3-devel

%description
A small Python module for determining appropriate " + " platform-specific
directories, e.g. a "user data dir".


%package -n %{vortex_pkg}-python3-appdirs
Summary:        %{summary}

%description -n %{vortex_pkg}-python3-appdirs
A small Python 3 module for determining appropriate " + " platform-specific
directories, e.g. a "user data dir".


%prep
%autosetup -n appdirs-%{version}
sed -i -e '1{\@^#!/usr/bin/env python@d}' appdirs.py


%generate_buildrequires
%pyproject_buildrequires


%build
%pyproject_wheel


%install
%pyproject_install
%pyproject_save_files appdirs


%check
# upstream's tox.ini just wraps this command with no extra deps
# we don't use %%tox here to avoid a dependency loop: tox->platformdirs->appdirs
%{python3} setup.py test


%files -n %{vortex_pkg}-python3-appdirs -f %{pyproject_files}
%doc README.rst CHANGES.rst


%changelog
%autochangelog
openSUSE Build Service is sponsored by