113757a
Name:           python-nudatus
3ff5160
Version:        0.0.5
c031107
Release:        %autorelease
fba95c0
Summary:        Strip comments from Python scripts
fba95c0
755bfb7
# SPDX
fba95c0
License:        MIT
fba95c0
URL:            https://github.com/zanderbrown/nudatus
2861ae2
Source:         %{url}/archive/%{version}/nudatus-%{version}.tar.gz
2aa974f
2aa974f
# Python 3.12 support, proposed upstream
2aa974f
Patch:          https://github.com/ZanderBrown/nudatus/pull/11.patch
2aa974f
fba95c0
BuildArch:      noarch
fba95c0
fba95c0
BuildRequires:  python3-devel
304a652
# test requirements mixed with coverage upstream, BRing pytest manually is easier
fba95c0
BuildRequires:  python3dist(pytest)
fba95c0
fba95c0
%description
fba95c0
Nudatus is a tool to remove comments from python scripts. It's created for use
fba95c0
in uflash to help squeeze longer programs onto the micro:bit but it should be
fba95c0
suitable for various environments with restricted storage.
fba95c0
113757a
%package -n     python3-nudatus
fba95c0
Summary:        %{summary}
fba95c0
113757a
Provides:       nudatus == %{version}-%{release}
fba95c0
113757a
%description -n python3-nudatus
fba95c0
Nudatus is a tool to remove comments from python scripts. It's created for use
fba95c0
in uflash to help squeeze longer programs onto the micro:bit but it should be
fba95c0
suitable for various environments with restricted storage.
fba95c0
fba95c0
fba95c0
%prep
113757a
%autosetup -p1 -n nudatus-%{version}
fba95c0
304a652
%generate_buildrequires
2861ae2
%pyproject_buildrequires
304a652
fba95c0
%build
304a652
%pyproject_wheel
fba95c0
fba95c0
%install
304a652
%pyproject_install
113757a
%pyproject_save_files nudatus
fba95c0
fba95c0
%check
304a652
%pytest -vvv tests
fba95c0
113757a
%files -n python3-nudatus -f %{pyproject_files}
fba95c0
%doc README.rst
fba95c0
%{_bindir}/nudatus
fba95c0
fba95c0
%changelog
c031107
%autochangelog