3e6accf
Name:           uflash
3763eb6
Version:        1.0.3
3763eb6
Release:        1%{?dist}
3e6accf
Summary:        A module and utility to flash Python onto the BBC micro:bit
3e6accf
Group:          Development/Tools
3e6accf
License:        MIT
3e6accf
URL:            https://github.com/ntoll/uflash
3763eb6
Source0:        https://files.pythonhosted.org/packages/source/u/%{name}/%{name}-%{version}.tar.gz
3763eb6
3763eb6
# For tests, they don't have tags
3763eb6
%define hash    04afb7e9c7118a7d56f1f2b2328fe9162a26c24e
3763eb6
Source1:        https://github.com/ntoll/uflash/archive/%{hash}.tar.gz
3763eb6
BuildRequires:  python3-pytest
3763eb6
3e6accf
BuildRequires:  python3-devel, python3-setuptools
3763eb6
# Entrypoints:
3763eb6
Requires:       python3-setuptools
3e6accf
BuildArch:      noarch
3e6accf
3e6accf
3e6accf
%description
3e6accf
A utility for flashing the BBC micro:bit with Python scripts and the
3e6accf
MicroPython runtime. You pronounce the name of this utility "micro-flash". ;-)
3e6accf
It provides two services. A library of functions to programatically create a
3e6accf
hex file and flash it onto a BBC micro:bit.  A command line utility called
3e6accf
uflash that will flash Python scripts onto a BBC micro:bit.
3e6accf
3e6accf
3e6accf
3e6accf
3e6accf
%prep
3e6accf
%setup -q
3e6accf
3e6accf
3e6accf
%build
3763eb6
%py3_build
3e6accf
3e6accf
%install
3763eb6
%py3_install
3e6accf
3763eb6
%check
3763eb6
tar -xf %{SOURCE1}
3763eb6
mv %{name}-%{hash}/tests .
3763eb6
rm -rf %{name}-%{hash}
3763eb6
py.test-3
3e6accf
3e6accf
%files
3763eb6
%doc README.rst CHANGES.rst
3763eb6
%license LICENSE
3e6accf
%{_bindir}/uflash
3e6accf
%{python3_sitelib}/uflash*
3e6accf
%{python3_sitelib}/__pycache__/uflash*
3e6accf
3e6accf
3e6accf
3e6accf
%changelog
3763eb6
* Tue Aug 16 2016 Miro HronĨok <mhroncok@redhat.com> - 1.0.3-1
3763eb6
- Update to 1.0.3
3763eb6
- Use new %%py3_ macros for build and install
3763eb6
- Update source URL
3763eb6
- Include LICENSE and CHANGES.rst
3763eb6
- Require setuptools for entrypoints
3763eb6
- Add tests
3763eb6
546aaf7
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.18b0-2
546aaf7
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
546aaf7
3e6accf
* Mon Jan 18 2016 Kushal Das <kushal@fedoraprojects.org> - 0.9.18b0-1
3e6accf
- Initial package creation