Compare commits

...

No commits in common. "c8" and "c10s" have entirely different histories.
c8 ... c10s

8 changed files with 202 additions and 126 deletions

1
.fmf/version Normal file
View File

@ -0,0 +1 @@
1

10
.gitignore vendored
View File

@ -1 +1,9 @@
SOURCES/justbytes-0.14.tar.gz
/justbytes-0.6.tar.gz
/justbytes-0.7.tar.gz
/justbytes-0.10.tar.gz
/justbytes-0.11.tar.gz
/justbytes-0.12.tar.gz
/justbytes-0.14.tar.gz
/justbytes-0.15.tar.gz
/justbytes-0.15.1.tar.gz
/justbytes-0.15.2.tar.gz

View File

@ -1 +0,0 @@
b006578ffc3878f48320e4bd02af0aff193b3a3b SOURCES/justbytes-0.14.tar.gz

View File

@ -1,124 +0,0 @@
%global srcname justbytes
%if 0%{?rhel} > 7
# Disable python2 build by default
%bcond_with python2
%else
%bcond_without python2
%endif
Name: python-%{srcname}
Version: 0.14
Release: 2%{?dist}
Summary: Library for handling computation with address ranges in bytes
License: LGPLv2+
URL: http://pypi.python.org/pypi/justbytes
Source0: https://pypi.io/packages/source/%(n=%{srcname}; echo ${n:0:1})/%{srcname}/%{srcname}-%{version}.tar.gz
BuildArch: noarch
%global _description \
A library for handling computations with address ranges. The library also offers\
a configurable way to extract the representation of a value.
%description %{_description}
%if %{with python2}
%package -n python2-%{srcname}
Summary: %{summary}
%{?python_provide:%python_provide python2-%{srcname}}
BuildRequires: python2-devel
BuildRequires: python2-setuptools
BuildRequires: python2-pytest
BuildRequires: python2-hypothesis
BuildRequires: python2-justbases
BuildRequires: python2-six
Requires: python2-justbases
Requires: python2-six
%description -n python2-%{srcname} %{_description}
Python 2 version.
%endif # with python2
%package -n python3-%{srcname}
Summary: %{summary}
%{?python_provide:%python_provide python3-%{srcname}}
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pytest
BuildRequires: python3-hypothesis
BuildRequires: python3-justbases
BuildRequires: python3-six
Requires: python3-justbases
Requires: python3-six
%description -n python3-%{srcname} %{_description}
Python 3 version.
%prep
%autosetup -n %{srcname}-%{version}
rm -rf justbytes.egg-info
%build
%if %{with python2}
%py2_build
%endif # with python2
%py3_build
%install
%if %{with python2}
%py2_install
%endif # with python2
%py3_install
%check
%if %{with python2}
PYTHONPATH=%{buildroot}%{python2_sitelib} py.test-%{python2_version} -v tests
%endif # with python2
PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version} -v tests
%if %{with python2}
%files -n python2-%{srcname}
%license LICENSE
%doc README.rst
%{python2_sitelib}/justbytes/
%{python2_sitelib}/justbytes-%{version}-*.egg-info/
%endif # with python2
%files -n python3-%{srcname}
%license LICENSE
%doc README.rst
%{python3_sitelib}/justbytes/
%{python3_sitelib}/justbytes-%{version}-*.egg-info/
%changelog
* Wed May 06 2020 Dennis Keefe <dkeefe@redhat.com> - 0.14-2
- Update to 0.14
- Resolves: rhbz#1824225
* Fri Jun 08 2018 Charalampos Stratakis <cstratak@redhat.com> - 0.11-2
- Conditionalize the python2 subpackage
* Mon Jan 08 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.11-1
- Update to 0.11
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.10-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.10-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.10-2
- Rebuild for Python 3.6
* Wed Aug 10 2016 mulhern <amulhern@redhat.com> - 0.10
- New release
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7-2
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
* Wed Mar 23 2016 mulhern <amulhern@redhat.com> - 0.6
- Initial release

7
gating.yaml Normal file
View File

@ -0,0 +1,7 @@
--- !Policy
product_versions:
- fedora-*
decision_context: bodhi_update_push_stable
subject_type: koji_build
rules:
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional}

17
plans/unit.fmf Normal file
View File

@ -0,0 +1,17 @@
summary: deterministic (not Hypothesis-based) unit tests
prepare:
- name: Install package
how: install
package: python-justbytes
discover:
how: shell
url: https://github.com/mulkieran/justbytes
ref: v0.15.2
tests:
- name: unit
test: python3 -m unittest discover --verbose tests/test_deterministic
execute:
how: tmt

167
python-justbytes.spec Normal file
View File

@ -0,0 +1,167 @@
%global srcname justbytes
Name: python-%{srcname}
Version: 0.15.2
Release: 7%{?dist}
Summary: Library for handling computation with address ranges in bytes
License: LGPL-2.1-or-later
URL: http://pypi.python.org/pypi/justbytes
Source0: https://pypi.io/packages/source/j/%{srcname}/%{srcname}-%{version}.tar.gz
BuildArch: noarch
%global _description \
A library for handling computations with address ranges. The library also offers\
a configurable way to extract the representation of a value.
%description %{_description}
%package -n python3-%{srcname}
Summary: %{summary}
%{?python_provide:%python_provide python3-%{srcname}}
BuildRequires: python3-devel
BuildRequires: python3-setuptools
%description -n python3-%{srcname} %{_description}
Python 3 version.
%prep
%autosetup -n %{srcname}-%{version}
rm -rf justbytes.egg-info
%build
%py3_build
%install
%py3_install
%files -n python3-%{srcname}
%license LICENSE
%doc README.rst
%{python3_sitelib}/justbytes/
%{python3_sitelib}/justbytes-%{version}-*.egg-info/
%changelog
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 0.15.2-7
- Bump release for October 2024 mass rebuild:
Resolves: RHEL-64018
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 0.15.2-6
- Bump release for June 2024 mass rebuild
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.2-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.2-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.2-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 0.15.2-2
- Rebuilt for Python 3.12
* Mon May 15 2023 mulhern <amulhern@redhat.com> - 0.15.2-1
- Update to 0.15.2
* Mon May 15 2023 mulhern <amulhern@redhat.com> - 0.15.1-2
- Add .fmf/version file
* Mon May 15 2023 mulhern <amulhern@redhat.com> - 0.15.1-1
- Update to 0.15.1; use SPDX license
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.15-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.15-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 0.15-9
- Rebuilt for Python 3.11
* Sun Feb 27 2022 mulhern <amulhern@redhat.com> - 0.15-8
- Add gating tests
* Tue Feb 15 2022 mulhern <amulhern@redhat.com> - 0.15-7
- Drop redundant requires
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.15-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.15-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.15-4
- Rebuilt for Python 3.10
* Mon Mar 22 2021 mulhern <amulhern@redhat.com> - 0.15-3
- Use the correct tarball
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.15-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Thu Dec 17 2020 mulhern <amulhern@redhat.com> - 0.15-1
- Update to 0.15
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.14-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.14-2
- Rebuilt for Python 3.9
* Thu Apr 23 2020 mulhern <amulhern@redhat.com> - 0.14-1
- Update to new release
* Thu Apr 23 2020 mulhern <amulhern@redhat.com> - 0.12-1
- Change license to LGPLv2+
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.11-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.11-9
- Rebuilt for Python 3.8.0rc1 (#1748018)
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.11-8
- Rebuilt for Python 3.8
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.11-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.11-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Wed Oct 17 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.11-5
- Subpackage python2-justbytes has been removed
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.11-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.11-3
- Rebuilt for Python 3.7
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.11-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Mon Jan 08 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.11-1
- Update to 0.11
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.10-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.10-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.10-2
- Rebuild for Python 3.6
* Wed Aug 10 2016 mulhern <amulhern@redhat.com> - 0.10
- New release
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7-2
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
* Wed Mar 23 2016 mulhern <amulhern@redhat.com> - 0.6
- Initial release

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (justbytes-0.15.2.tar.gz) = bf480bddb5d8267b6917b6d6c056a59691d875b8537fa16a2e17257fdb83e72977bcd7184aea08347535ee9dcafb4baa7d417cb4cbc850420c5affc40f742006