Compare commits

..

No commits in common. "rawhide" and "f27" have entirely different histories.

4 changed files with 49 additions and 137 deletions

8
.gitignore vendored
View file

@ -1,11 +1,3 @@
/uflash-0.9.18b0.tar.gz
/04afb7e9c7118a7d56f1f2b2328fe9162a26c24e.tar.gz
/uflash-1.0.3.tar.gz
/uflash-1.1.2.tar.gz
/67eadaad00514444725a2e0fa1c8ff2864e39f26.tar.gz
/uflash-1.2.0.tar.gz
/41bf089448873b7f9443aa120379fb1cbba54f8c.tar.gz
/uflash-1.2.1.tar.gz
/d493b9f027e65a2551bb46407432723b73cf78b4.tar.gz
/uflash-2.0.0.tar.gz
/147ea945fbe841b0ae17888ab60a60c6080b1225.tar.gz

102
changelog
View file

@ -1,102 +0,0 @@
* Sat Jan 27 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Sat Jul 22 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Sat Jan 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 2.0.0-3
- Rebuilt for Python 3.11
* Wed Apr 27 2022 Miro Hrončok <mhroncok@redhat.com> - 2.0.0-2
- Rebuilt
* Mon Apr 11 2022 Lumír Balhar <lbalhar@redhat.com> - 2.0.0-1
- Update to 2.0.0
Resolves: rhbz#1742639
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.2.1-10
- Rebuilt for Python 3.10
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.2.1-7
- Rebuilt for Python 3.9
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.2.1-5
- Rebuilt for Python 3.8.0rc1 (#1748018)
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.2.1-4
- Rebuilt for Python 3.8
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Wed Aug 29 2018 Miro Hrončok <mhroncok@redhat.com> - 1.2.1-1
- Update to 1.2.1 (#1605196)
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Mon Jul 09 2018 Miro Hrončok <mhroncok@redhat.com> - 1.2.0-1
- Update to 1.2.0 (#1594545)
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.1.2-4
- Rebuilt for Python 3.7
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.1.2-3
- Rebuilt for Python 3.7
* Tue Apr 10 2018 Miro Hrončok <mhroncok@redhat.com> - 1.1.2-2
- BR and recommend nudatus
* Tue Apr 10 2018 Miro Hrončok <mhroncok@redhat.com> - 1.1.2-1
- Update to 1.1.2
- Provide python3-uflash
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.0.3-2
- Rebuild for Python 3.6
* Tue Aug 16 2016 Miro Hrončok <mhroncok@redhat.com> - 1.0.3-1
- Update to 1.0.3
- Use new %%py3_ macros for build and install
- Update source URL
- Include LICENSE and CHANGES.rst
- Require setuptools for entrypoints
- Add tests
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.18b0-2
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
* Mon Jan 18 2016 Kushal Das <kushal@fedoraprojects.org> - 0.9.18b0-1
- Initial package creation

View file

@ -1,2 +1,2 @@
SHA512 (uflash-2.0.0.tar.gz) = fb7c6044d05ee21a5e65412b7cc4b972a9191398b8a37956cc2d329693e5576cb098e80c8ef1ca7a3fcd8ccde0966e92599a1cd510aa30fffad59e66f70379d5
SHA512 (147ea945fbe841b0ae17888ab60a60c6080b1225.tar.gz) = 1cf3f8a99256bf242556d7a6c699e32934ca8d984f149115f7636d766b0cc7d0446cf4b887f15dd12c1baa6d5948c41e29f45efa6bfd5b09fdcbec1230c49a51
0bbc86412367345ccfb3c091375b4593 04afb7e9c7118a7d56f1f2b2328fe9162a26c24e.tar.gz
e1436ed94775603c9375502b22efd149 uflash-1.0.3.tar.gz

View file

@ -1,22 +1,22 @@
Name: uflash
Version: 2.0.0
Release: %autorelease
Version: 1.0.3
Release: 4%{?dist}
Summary: A module and utility to flash Python onto the BBC micro:bit
Group: Development/Tools
License: MIT
URL: https://github.com/ntoll/uflash
Source0: %{pypi_source uflash}
Source0: https://files.pythonhosted.org/packages/source/u/%{name}/%{name}-%{version}.tar.gz
# For tests, they don't have tags
%define hash 147ea945fbe841b0ae17888ab60a60c6080b1225
%define hash 04afb7e9c7118a7d56f1f2b2328fe9162a26c24e
Source1: https://github.com/ntoll/uflash/archive/%{hash}.tar.gz
BuildRequires: python3-devel
BuildRequires: python3-pytest
BuildRequires: python3-devel, python3-setuptools
# Entrypoints:
Requires: python3-setuptools
BuildArch: noarch
# Other tools are using this as a module, so provide also the python3- name
%py_provides python3-%{name}
%description
A utility for flashing the BBC micro:bit with Python scripts and the
@ -26,36 +26,58 @@ hex file and flash it onto a BBC micro:bit. A command line utility called
uflash that will flash Python scripts onto a BBC micro:bit.
%prep
%autosetup -p1
%setup -q
%build
%py3_build
%install
%py3_install
%check
tar -xf %{SOURCE1}
mv %{name}-%{hash}/tests .
rm -rf %{name}-%{hash}
# The mocking in test_flash_wrong_python is broken in 3.6
# And we don't really need the tested functionality,
# because we know uflash will not be run with
# old version of Python, as we are packaging it for new one
py.test-3 -k "not test_flash_wrong_python"
%generate_buildrequires
%pyproject_buildrequires
%build
%pyproject_wheel
%install
%pyproject_install
%pyproject_save_files -l 'uflash*'
%check
%pyproject_check_import
%pytest
%files -f %{pyproject_files}
%files
%doc README.rst CHANGES.rst
%license LICENSE
%{_bindir}/uflash
%{_bindir}/py2hex
%{python3_sitelib}/uflash*
%{python3_sitelib}/__pycache__/uflash*
%changelog
%autochangelog
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.0.3-2
- Rebuild for Python 3.6
* Tue Aug 16 2016 Miro Hrončok <mhroncok@redhat.com> - 1.0.3-1
- Update to 1.0.3
- Use new %%py3_ macros for build and install
- Update source URL
- Include LICENSE and CHANGES.rst
- Require setuptools for entrypoints
- Add tests
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.18b0-2
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
* Mon Jan 18 2016 Kushal Das <kushal@fedoraprojects.org> - 0.9.18b0-1
- Initial package creation