404bb75
# Created by pyp2rpm-3.2.2
404bb75
Name:           ampy
4812e05
Version:        1.0.5
16a7dee
Release:        %autorelease
404bb75
Summary:        Command line tool to interact with a MicroPython board over a serial connection
404bb75
404bb75
License:        MIT
404bb75
URL:            https://github.com/adafruit/ampy
404bb75
404bb75
# Use GitHub archive instead of PyPi sdist to have tests, README, LICENSE
4812e05
Source0:        %{url}/archive/%{version}/%{name}-%{version}.tar.gz
404bb75
BuildArch:      noarch
404bb75
404bb75
BuildRequires:  python3-devel
404bb75
BuildRequires:  python3-setuptools
404bb75
4812e05
%?python_enable_dependency_generator
404bb75
404bb75
Provides:       adafruit-%{name} = %{version}-%{release}
404bb75
Provides:       python3-adafruit-%{name} = %{version}-%{release}
404bb75
%{?python_provide:%python_provide python3-adafruit-%{name}}
404bb75
404bb75
404bb75
%description
404bb75
Adafruit MicroPython tool is a command line tool to interact with a MicroPython
404bb75
board over a serial connection.
404bb75
404bb75
Ampy is meant to be a simple command line tool to manipulate files and run code
404bb75
on a MicroPython board over its serial connection. With ampy you can send files
404bb75
from your computer to a MicroPython board's file system, download files from a
404bb75
board to your computer, and even send a Python script to a board to be
404bb75
executed.
404bb75
404bb75
Note that ampy by design is meant to be simple and does not support advanced
404bb75
interaction like a shell or terminal to send input to a board. 
404bb75
404bb75
404bb75
%prep
4812e05
%autosetup -n %{name}-%{version}
404bb75
404bb75
# shebangs
404bb75
sed -i '1d' $(grep -lr '#!/usr/')
404bb75
404bb75
404bb75
%build
404bb75
%py3_build
404bb75
404bb75
404bb75
%install
404bb75
%py3_install
404bb75
404bb75
404bb75
%check
404bb75
%{__python3} -m unittest tests/test_*.py -v
404bb75
404bb75
404bb75
%files
404bb75
%doc README.md
404bb75
%license LICENSE
404bb75
%{_bindir}/%{name}
404bb75
%{python3_sitelib}/%{name}
dd240a4
%{python3_sitelib}/adafruit_ampy-%{version}-py%{python3_version}.egg-info
404bb75
404bb75
404bb75
%changelog
16a7dee
%autochangelog