caa22d1
%if %{defined fedora}
caa22d1
# EL9 missing mysql-connector-python3
caa22d1
%bcond_without mysql_tests
6005af7
# EL9 missing postgresql-test-rpm-macros
6005af7
%bcond_without postgres_tests
caa22d1
%endif
caa22d1
c2334b6
Name:           python-peewee
582c529
Version:        3.17.1
582c529
Release:        1%{?dist}
43153bc
Summary:        A simple and small ORM
abf026a
abf026a
License:        MIT
43153bc
URL:            https://github.com/coleifer/peewee
43153bc
# PyPI tarball doesn't have tests
43153bc
Source:         %{url}/archive/%{version}/peewee-%{version}.tar.gz
abf026a
abf026a
BuildRequires:  gcc
abf026a
BuildRequires:  python3-devel
abf026a
BuildRequires:  python3-setuptools
abf026a
BuildRequires:  python3-Cython
abf026a
BuildRequires:  sqlite-devel
abf026a
abf026a
# documentation
abf026a
BuildRequires:  python3-sphinx
7ee0305
BuildRequires:  python3-sphinx_rtd_theme
abf026a
abf026a
# tests
abf026a
BuildRequires:  python3-apsw
caa22d1
%if %{with mysql_tests}
caa22d1
BuildRequires:  mysql-connector-python3
caa22d1
%endif
6005af7
%if %{with postgres_tests}
6005af7
BuildRequires:  python3-psycopg2
6005af7
BuildRequires:  postgresql-test-rpm-macros
6005af7
BuildRequires:  postgresql-contrib
6005af7
%endif
abf026a
2410b55
43153bc
%global _description %{expand:
43153bc
Peewee is a simple and small ORM. It has few (but expressive) concepts, making
43153bc
it easy to learn and intuitive to use.}
43153bc
43153bc
43153bc
%description %{_description}
Matej Stuchlik 89b198e
2410b55
c2334b6
%package -n python3-peewee
abf026a
Summary:        %{summary}
1417081
abf026a
c2334b6
%description -n python3-peewee %{_description}
1417081
abf026a
91a1bed
%package docs
91a1bed
Summary:        Documentation for %{name}
91a1bed
Conflicts:      python3-peewee < 3.15.1-3
91a1bed
91a1bed
91a1bed
%description docs
91a1bed
Documentation for %{name}.
91a1bed
91a1bed
Matej Stuchlik 89b198e
%prep
6d6dd64
%autosetup -n peewee-%{version} -p 1
c2334b6
c2334b6
c2334b6
%generate_buildrequires
c2334b6
%pyproject_buildrequires
Matej Stuchlik 89b198e
abf026a
Matej Stuchlik 89b198e
%build
c2334b6
%pyproject_wheel
Matej Stuchlik 89b198e
6d6dd64
# Test suite requires an in-place build of the compiled extensions.
6d6dd64
# https://github.com/coleifer/peewee/blob/3.15.2/.github/workflows/tests.yaml#L49
6d6dd64
%{set_build_flags}
6d6dd64
%{python3} %{py_setup} %{?py_setup_args} build_ext --inplace
6d6dd64
abf026a
# Build the documentation
abf026a
sphinx-build docs html
895df52
rm -rf html/.{doctrees,buildinfo}
895df52
abf026a
Matej Stuchlik 89b198e
%install
c2334b6
%pyproject_install
c2334b6
%pyproject_save_files peewee playhouse pwiz
895df52
mv %{buildroot}%{_bindir}/{pwiz.py,pwiz}
1417081
abf026a
Matej Stuchlik 89b198e
%check
6005af7
%if %{with postgres_tests}
6005af7
export PGTESTS_LOCALE="C.UTF-8"
6005af7
%postgresql_tests_run
6005af7
createdb peewee_test
6005af7
psql -c "CREATE EXTENSION hstore" peewee_test
6005af7
%endif
caa22d1
%{python3} runtests.py
abf026a
1417081
c2334b6
%files -n python3-peewee -f %{pyproject_files}
91a1bed
%doc README.rst CHANGELOG.md
2410b55
%{_bindir}/pwiz
Matej Stuchlik 89b198e
abf026a
91a1bed
%files docs
91a1bed
%doc html
91a1bed
91a1bed
Matej Stuchlik 89b198e
%changelog
582c529
* Fri Feb 16 2024 Viliam Krizan <vkrizan@redhat.com> - 3.17.1-1
582c529
- Update to 3.17.1 (#2263094)
582c529
aa5f673
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.17.0-3
aa5f673
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
aa5f673
5f2b919
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.17.0-2
5f2b919
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
5f2b919
7ee0305
* Wed Oct 25 2023 Viliam Krizan <vkrizan@redhat.com> - 3.17.0-1
7ee0305
- Update to 3.17.0 (#2244151)
7ee0305
180ddba
* Tue Aug 15 2023 Viliam Krizan <vkrizan@redhat.com> - 3.16.3-1
180ddba
- new version
180ddba
0086c85
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.16.2-3
0086c85
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
0086c85
417736f
* Thu Jul 06 2023 Benjamin A. Beasley <code@musicinmybrain.net> - 3.16.2-2
417736f
- Rebuilt for Python 3.12 (fix RHBZ#2220402)
417736f
a9951ec
* Tue Jun 27 2023 Viliam Krizan <vkrizan@redhat.com> - 3.16.2-1
a9951ec
- Update to 3.16.2 (#2187944)
a9951ec
f35c32d
* Tue Apr 04 2023 Viliam Krizan <vkrizan@redhat.com> - 3.16.0-2
f35c32d
- Add patch to fix sqlite timeouts in test runs on the build system
f35c32d
8d5e751
* Mon Apr 03 2023 Viliam Krizan <vkrizan@redhat.com> - 3.16.0-1
8d5e751
- new version rhbz#2174257
8d5e751
513a3a4
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.15.4-2
513a3a4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
513a3a4
1eca387
* Fri Nov 18 2022 Viliam Krizan <vkrizan@redhat.com> - 3.15.4-1
1eca387
- Update to 3.15.4 (#2142291)
1eca387
8163ba2
* Fri Sep 23 2022 Carl George <carl@george.computer> - 3.15.3-1
8163ba2
- Latest upstream, resolves rhbz#2129202
8163ba2
43153bc
* Wed Sep 21 2022 Carl George <carl@george.computer> - 3.15.2-1
43153bc
- Latest upstream, resolves rhbz#2121865
c2334b6
- Convert to pyproject macros
91a1bed
- Move docs to separate subpackage
87d17c6
- Re-enable tests on ppc64le
caa22d1
- Enable mysql tests
6005af7
- Enable postgresql tests
6d6dd64
- Enable sqlite extension tests
43153bc
6de2abd
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.15.1-2
6de2abd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
6de2abd
bc21bbd
* Tue Jul 12 2022 Viliam Krizan <vkrizan@redhat.com> - 3.15.1-1
bc21bbd
- Update to 3.15.1 (#2098350)
bc21bbd
f872f52
* Tue Jun 14 2022 Python Maint <python-maint@redhat.com> - 3.14.10-2
f872f52
- Rebuilt for Python 3.11
f872f52
e92d4a0
* Tue Mar 08 2022 Viliam Krizan <vkrizan@redhat.com> - 3.14.10-1
e92d4a0
- Update to 3.14.10 (#2054830)
e92d4a0
2b74700
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.14.8-2
2b74700
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
2b74700
bbea01b
* Fri Dec 03 2021 Viliam Krizan <vkrizan@redhat.com> - 3.14.8-1
bbea01b
- Update to 3.14.8 (#2017730)
bbea01b
728e5fa
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.14.4-3
728e5fa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
728e5fa
567396c
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 3.14.4-2
567396c
- Rebuilt for Python 3.10
567396c
ab3d740
* Wed Apr 07 2021 Charalampos Stratakis <cstratak@redhat.com> - 3.14.4-1
ab3d740
- Update to 3.14.4 (#1941088)
ab3d740
f00b410
* Fri Mar 19 2021 Charalampos Stratakis <cstratak@redhat.com> - 3.14.3-1
f00b410
- Update to 3.14.3 (#1935568)
f00b410
ff9b3fe
* Fri Feb 19 2021 Viliam Krizan <vkrizan@redhat.com> - 3.14.1-1
ff9b3fe
- Update to 3.14.1 (#1926031)
ff9b3fe
6ed9d4f
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.14.0-2
6ed9d4f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
6ed9d4f
96547e9
* Thu Dec 03 2020 Viliam Krizan <vkrizan@redhat.com> - 3.14.0-1
96547e9
- Update to 3.14.0 (#1895638)
96547e9
96df357
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.13.3-4
96df357
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
96df357
7f017f3
* Wed Jul 01 2020 Viliam Krizan <vkrizan@redhat.com> - 3.13.3-3
7f017f3
- Replaced Python version globs with macros to support 3.10
7f017f3
00003fe
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 3.13.3-2
00003fe
- Rebuilt for Python 3.9
00003fe
b665800
* Thu May 07 2020 Viliam Krizan <vkrizan@redhat.com> - 3.13.3-1
b665800
- Update to 3.13.2 (#1827517)
b665800
eefcb45
* Fri Apr 03 2020 Viliam Krizan <vkrizan@redhat.com> - 3.13.2-1
eefcb45
- Update to 3.13.2 (#1818146)
eefcb45
1cfd9ad
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.13.1-2
1cfd9ad
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
1cfd9ad
930f5ed
* Fri Dec 20 2019 Viliam Krizan <vkrizan@redhat.com> - 3.13.1-1
930f5ed
- Update to 3.13.1 (#1776044)
930f5ed
d7881ce
* Fri Sep 27 2019 Viliam Krizan <vkrizan@redhat.com> - 3.11.2-1
d7881ce
- Update to 3.11.2 (#1742474)
d7881ce
572d7c0
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 3.9.6-3
572d7c0
- Rebuilt for Python 3.8
572d7c0
2b75843
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.9.6-2
2b75843
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
2b75843
1ba0176
* Wed Jun 05 2019 Viliam Krizan <vkrizan@redhat.com> - 3.9.6-1
1ba0176
- Update to 3.9.6 (#1703665)
1ba0176
7d240a8
* Fri Apr 26 2019 Viliam Krizan <vkrizan@redhat.com> - 3.9.4-1
be0285c
- Update to 3.9.4 (#1692015)
be0285c
f632bd6
* Mon Mar 11 2019 Viliam Krizan <vkrizan@redhat.com> - 3.9.2-1
f632bd6
- Update to 3.9.2 (#1685885)
f632bd6
bea313c
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.7.1-2
bea313c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
bea313c
6f3f199
* Mon Nov 12 2018 Viliam Krizan <vkrizan@redhat.com> - 3.7.1-1
6f3f199
- Update to 3.7.1 (#1539964)
6f3f199
e9a4eea
* Fri Oct 05 2018 Viliam Krizan <vkrizan@redhat.com> - 2.10.2-8
e9a4eea
- Removal of python2 subpackage as part of
e9a4eea
  https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
e9a4eea
  (RHBZ #1634869)
e9a4eea
ad5d9ae
* Mon Jul 30 2018 Viliam Krizan <vkrizan@redhat.com> - 2.10.2-7
ad5d9ae
- skip check for PPC architecture (#1606807)
ad5d9ae
4bf78cc
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.10.2-6
4bf78cc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
4bf78cc
a278441
* Tue Jun 26 2018 Viliam Krizan <vkrizan@redhat.com> - 2.10.2-5
a278441
- fix StopIteration raises for Python 3.7
a278441
fa00df9
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 2.10.2-4
fa00df9
- Rebuilt for Python 3.7
fa00df9
c62101c
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.10.2-3
c62101c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
c62101c
e0712c2
* Wed Jan 03 2018 Lumír Balhar <lbalhar@redhat.com> - 2.10.2-2
e0712c2
- Fix directory ownership
e0712c2
7b56060
* Tue Jan 02 2018 Viliam Krizan <vkrizan@redhat.com> - 2.10.2-1
7b56060
- Update to 2.10.2
7b56060
3571eaf
* Mon Dec 11 2017 Iryna Shcherbina <ishcherb@redhat.com> - 2.10.1-4
3571eaf
- Fix ambiguous Python 2 dependency declarations
3571eaf
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
3571eaf
26cdc11
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.10.1-3
26cdc11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
26cdc11
4a778ef
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.10.1-2
4a778ef
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
4a778ef
Fedora Release Monitoring 4c0ba28
* Wed May 10 2017 Fedora Release Monitoring  <release-monitoring@fedoraproject.org> - 2.10.1-1
Fedora Release Monitoring 4c0ba28
- Update to 2.10.1 (#1448980)
Fedora Release Monitoring 4c0ba28
f4eec4f
* Mon Apr 10 2017 Viliam Krizan <vkrizan@redhat.com> - 2.9.2-1
f4eec4f
- Update to 2.9.2
f4eec4f
6627dbe
* Fri Mar 03 2017 Viliam Krizan <vkrizan@redhat.com> - 2.8.8-1
6627dbe
- Update to 2.8.8
6627dbe
14c93a6
* Tue Feb 07 2017 Viliam Krizan <vkrizan@redhat.com> - 2.8.5-2
14c93a6
- Backport upstream fix to force limit and offset to be numeric
14c93a6
1cadc5f
* Mon Jan 09 2017 Charalampos Stratakis <cstratak@redhat.com> - 2.8.5-1
1cadc5f
- Update to 2.8.5
1cadc5f
cb1b8c0
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 2.8.2-4
cb1b8c0
- Rebuild for Python 3.6
cb1b8c0
08024da
* Thu Nov 10 2016 Charalampos Stratakis <cstratak@redhat.com> - 2.8.2-3
08024da
- Make pskel script install under usr/bin/
08024da
- Remove bytecompiled pwiz files
08024da
c245762
* Fri Nov 04 2016 Charalampos Stratakis <cstratak@redhat.com> - 2.8.2-2
c245762
- Change runtime requirement from python2-simplejson to python-simplejson
c245762
2410b55
* Wed Nov 02 2016 Charalampos Stratakis <cstratak@redhat.com> - 2.8.2-1
2410b55
- Update to 2.8.2
1066f12
- Changed the installation directories to be arch dependent as the package
2410b55
is now compiled using Cython
2410b55
2cb02a1
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.2-6
2cb02a1
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
2cb02a1
895df52
* Mon Jun 06 2016 Charalampos Stratakis <cstratak@redhat.com> - 2.3.2-5
895df52
- Fix shebangs so python 2 is not dragged with the python 3 subpackage
895df52
- Build documentation
895df52
1417081
* Thu Jun 02 2016 Charalampos Stratakis <cstratak@redhat.com> - 2.3.2-4
1417081
- Provide Python 3 subpackage
1417081
- Move binaries to Python 3 subpackage
1417081
- Modernize SPEC
1417081
d7a90c5
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.2-3
d7a90c5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
d7a90c5
5a0cd72
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.2-2
5a0cd72
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
5a0cd72
Matej Stuchlik baa80ae
* Mon Sep 29 2014 Matej Stuchlik <mstuchli@redhat.com> - 2.3.2-1
Matej Stuchlik baa80ae
- Update to 2.3.2
Matej Stuchlik baa80ae
Matej Stuchlik 7919a43
* Wed Aug 27 2014 Matej Stuchlik <mstuchli@redhat.com> - 2.3.1-1
Matej Stuchlik 7919a43
- Update to 2.3.1
Matej Stuchlik 7919a43
Matej Stuchlik a8f58d0
* Mon Jun 09 2014 Matej Stuchlik <mstuchli@redhat.com> - 2.2.4-1
Matej Stuchlik a8f58d0
- Update to 2.2.4
Matej Stuchlik a8f58d0
8bf63f3
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.7-2
8bf63f3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
8bf63f3
Matej Stuchlik 947b230
* Thu Jan 09 2014 Matej Stuchlik <mstuchli@redhat.com> - 2.1.7-1
Matej Stuchlik 947b230
- Update to 2.1.7
Matej Stuchlik 947b230
Matej Stuchlik 92a9caa
* Tue Aug 13 2013 Matej Stuchlik <mstuchli@redhat.com> - 2.1.4-2
Matej Stuchlik 92a9caa
- Added patch increasing timeout in concurrency test
Matej Stuchlik 92a9caa
Matej Stuchlik a5ba0a2
* Wed Aug 07 2013 Matej Stuchlik <mstuchli@redhat.com> - 2.1.4-1
Matej Stuchlik a5ba0a2
- Updated to 2.1.4
Matej Stuchlik a5ba0a2
0a5dd59
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.9-3
0a5dd59
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
0a5dd59
Matej Stuchlik 89b198e
* Tue Apr 02 2013 Matej Stuchlik <mstuchli@redhat.com> - 2.0.9-2
Matej Stuchlik 89b198e
- Review fixes
Matej Stuchlik 89b198e
Matej Stuchlik 89b198e
* Fri Mar 29 2013 mstuchli <mstuchli@redhat.com> - 2.0.9-1
Matej Stuchlik 89b198e
- Initial spec