Compare commits

..

8 commits

Author SHA1 Message Date
Fedora Release Engineering
bcaf347849 Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild 2026-07-17 08:07:31 +00:00
Python Maint
ae2bc62188 Rebuilt for Python 3.15 2026-06-03 21:01:15 +02:00
Fedora Release Engineering
c09df6a376 Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild 2026-01-20 03:30:35 +00:00
Python Maint
651171abd3 Rebuilt for Python 3.14.0rc3 bytecode 2025-09-19 15:01:03 +02:00
Python Maint
59e74ebbe0 Rebuilt for Python 3.14.0rc2 bytecode 2025-08-15 15:21:14 +02:00
Fedora Release Engineering
7745d464b5 Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-25 19:43:53 +00:00
Miro Hrončok
3deeae7017 Modernize packaging
- Fixes: rhbz#2378486

(The nudatus dependency seems unused.)
2025-07-08 19:46:12 +02:00
Python Maint
d8d24f591e Rebuilt for Python 3.14 2025-06-02 23:24:57 +02:00

View file

@ -4,25 +4,19 @@ Release: %autorelease
Summary: A module and utility to flash Python onto the BBC micro:bit
License: MIT
URL: https://github.com/ntoll/uflash
Source0: %pypi_source
Source0: %{pypi_source uflash}
# For tests, they don't have tags
%define hash 147ea945fbe841b0ae17888ab60a60c6080b1225
Source1: https://github.com/ntoll/uflash/archive/%{hash}.tar.gz
BuildRequires: python3-pytest
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-nudatus
Requires: python3-setuptools
Recommends: python3-nudatus
BuildRequires: python3-pytest
BuildArch: noarch
# Other tools are using this as a module, so provide also the python3- name
Provides: python3-%{name} == %{version}-%{release}
%{?python_provide:%python_provide python3-%{name}}
%py_provides python3-%{name}
%description
A utility for flashing the BBC micro:bit with Python scripts and the
@ -33,30 +27,34 @@ uflash that will flash Python scripts onto a BBC micro:bit.
%prep
%setup -q
%build
%py3_build
%install
%py3_install
%check
%autosetup -p1
tar -xf %{SOURCE1}
mv %{name}-%{hash}/tests .
rm -rf %{name}-%{hash}
py.test-3 -vv
%files
%generate_buildrequires
%pyproject_buildrequires
%build
%pyproject_wheel
%install
%pyproject_install
%pyproject_save_files -l 'uflash*'
%check
%pyproject_check_import
%pytest
%files -f %{pyproject_files}
%doc README.rst CHANGES.rst
%license LICENSE
%{_bindir}/uflash
%{_bindir}/py2hex
%{python3_sitelib}/uflash*
%{python3_sitelib}/__pycache__/uflash*
%changelog