404bb7
# Created by pyp2rpm-3.2.2
404bb7
Name:           ampy
4812e0
Version:        1.0.5
8d080c
Release:        6%{?dist}
404bb7
Summary:        Command line tool to interact with a MicroPython board over a serial connection
404bb7
404bb7
License:        MIT
404bb7
URL:            https://github.com/adafruit/ampy
404bb7
404bb7
# Use GitHub archive instead of PyPi sdist to have tests, README, LICENSE
4812e0
Source0:        %{url}/archive/%{version}/%{name}-%{version}.tar.gz
404bb7
BuildArch:      noarch
404bb7
404bb7
BuildRequires:  python3-devel
404bb7
BuildRequires:  python3-setuptools
404bb7
4812e0
%?python_enable_dependency_generator
404bb7
404bb7
Provides:       adafruit-%{name} = %{version}-%{release}
404bb7
Provides:       python3-adafruit-%{name} = %{version}-%{release}
404bb7
%{?python_provide:%python_provide python3-adafruit-%{name}}
404bb7
404bb7
404bb7
%description
404bb7
Adafruit MicroPython tool is a command line tool to interact with a MicroPython
404bb7
board over a serial connection.
404bb7
404bb7
Ampy is meant to be a simple command line tool to manipulate files and run code
404bb7
on a MicroPython board over its serial connection. With ampy you can send files
404bb7
from your computer to a MicroPython board's file system, download files from a
404bb7
board to your computer, and even send a Python script to a board to be
404bb7
executed.
404bb7
404bb7
Note that ampy by design is meant to be simple and does not support advanced
404bb7
interaction like a shell or terminal to send input to a board. 
404bb7
404bb7
404bb7
%prep
4812e0
%autosetup -n %{name}-%{version}
404bb7
404bb7
# shebangs
404bb7
sed -i '1d' $(grep -lr '#!/usr/')
404bb7
404bb7
404bb7
%build
404bb7
%py3_build
404bb7
404bb7
404bb7
%install
404bb7
%py3_install
404bb7
404bb7
404bb7
%check
404bb7
%{__python3} -m unittest tests/test_*.py -v
404bb7
404bb7
404bb7
%files
404bb7
%doc README.md
404bb7
%license LICENSE
404bb7
%{_bindir}/%{name}
404bb7
%{python3_sitelib}/%{name}
404bb7
%{python3_sitelib}/adafruit_ampy-%{version}-py?.?.egg-info
404bb7
404bb7
404bb7
%changelog
8d080c
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.0.5-6
8d080c
- Rebuilt for Python 3.8.0rc1 (#1748018)
8d080c
ceb50c
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.0.5-5
ceb50c
- Rebuilt for Python 3.8
ceb50c
0a765e
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.0.5-4
0a765e
- Rebuilt for Python 3.8
0a765e
d96694
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.5-3
d96694
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
d96694
797071
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.5-2
797071
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
797071
4812e0
* Wed Aug 01 2018 Miro Hrončok <mhroncok@redhat.com> - 1.0.5-1
4812e0
- Update to 1.0.5 (#1610571)
4812e0
c4f672
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-6
c4f672
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
c4f672
b9c65e
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.0.1-5
b9c65e
- Rebuilt for Python 3.7
b9c65e
85d19e
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.0.1-4
85d19e
- Rebuilt for Python 3.7
85d19e
956f0d
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-3
956f0d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
956f0d
72396e
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-2
72396e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
72396e
404bb7
* Tue Mar 14 2017 Miro Hrončok <mhroncok@redhat.com> - 1.0.1-1
404bb7
- Initial package