|
|
c5e8c9 |
# tests disabled in RHEL
|
|
|
c5e8c9 |
%if 0%{?rhel}
|
|
|
c5e8c9 |
%bcond_with tests
|
|
|
c5e8c9 |
%else
|
|
|
c5e8c9 |
%bcond_without tests
|
|
|
c5e8c9 |
%endif
|
|
|
c5e8c9 |
|
|
|
c5e8c9 |
%global srcname factory_boy
|
|
|
c5e8c9 |
%global desc factory_boy is a fixtures replacement based on thoughtbot's factory_girl\
|
|
|
c5e8c9 |
<http://github.com/thoughtbot/factory_girl>.\
|
|
|
c5e8c9 |
\
|
|
|
c5e8c9 |
Its features include:\
|
|
|
c5e8c9 |
\
|
|
|
c5e8c9 |
- Straightforward syntax\
|
|
|
c5e8c9 |
- Support for multiple build strategies (saved/unsaved instances, attribute\
|
|
|
c5e8c9 |
dicts, stubbed objects)\
|
|
|
c5e8c9 |
- Powerful helpers for common cases (sequences, sub-factories, reverse\
|
|
|
c5e8c9 |
dependencies, circular factories, ...)\
|
|
|
c5e8c9 |
- Multiple factories per class support, including inheritance\
|
|
|
c5e8c9 |
- Support for various ORMs (currently Django, Mogo, SQLAlchemy)\
|
|
|
c5e8c9 |
|
|
|
c5e8c9 |
Name: python-factory-boy
|
|
|
c5e8c9 |
Version: 3.3.1
|
|
|
c5e8c9 |
Release: 2%{?dist}
|
|
|
c5e8c9 |
Summary: A versatile test fixtures replacement based on thoughtbot's factory_girl
|
|
|
c5e8c9 |
License: MIT
|
|
|
c5e8c9 |
URL: https://github.com/rbarrois/factory_boy
|
|
|
c5e8c9 |
Source0: https://github.com/rbarrois/%{srcname}/archive/%{version}/%{srcname}-%{version}.tar.gz
|
|
|
c5e8c9 |
BuildArch: noarch
|
|
|
c5e8c9 |
BuildRequires: python3-devel
|
|
|
c5e8c9 |
%if %{with tests}
|
|
|
c5e8c9 |
BuildRequires: python3-pytest
|
|
|
c5e8c9 |
BuildRequires: python3-faker >= 0.7.0
|
|
|
c5e8c9 |
BuildRequires: python3-sqlalchemy
|
|
|
c5e8c9 |
BuildRequires: python3-sqlalchemy-utils
|
|
|
c5e8c9 |
BuildRequires: python3-coverage
|
|
|
c5e8c9 |
BuildRequires: python3-flake8
|
|
|
c5e8c9 |
BuildRequires: python3-isort
|
|
|
c5e8c9 |
BuildRequires: python3-pillow
|
|
|
c5e8c9 |
BuildRequires: tox
|
|
|
c5e8c9 |
BuildRequires: python3-django
|
|
|
c5e8c9 |
BuildRequires: python3-flask
|
|
|
c5e8c9 |
BuildRequires: python3-flask-sqlalchemy
|
|
|
c5e8c9 |
%endif
|
|
|
c5e8c9 |
|
|
|
c5e8c9 |
%description
|
|
|
c5e8c9 |
%desc
|
|
|
c5e8c9 |
|
|
|
c5e8c9 |
%package -n python3-factory-boy
|
|
|
c5e8c9 |
Summary: A versatile test fixtures replacement based on thoughtbot's factory_girl
|
|
|
c5e8c9 |
Suggests: %{name}-doc = %{version}-%{release}
|
|
|
c5e8c9 |
|
|
|
c5e8c9 |
%description -n python3-factory-boy
|
|
|
c5e8c9 |
%desc
|
|
|
c5e8c9 |
|
|
|
c5e8c9 |
%package doc
|
|
|
c5e8c9 |
Summary: API documentation for %{name}
|
|
|
c5e8c9 |
|
|
|
c5e8c9 |
%description doc
|
|
|
c5e8c9 |
Documentation for the %{name} API
|
|
|
c5e8c9 |
|
|
|
c5e8c9 |
%prep
|
|
|
c5e8c9 |
%autosetup -n %{srcname}-%{version} -p1
|
|
|
c5e8c9 |
|
|
|
c5e8c9 |
%generate_buildrequires
|
|
|
c5e8c9 |
%pyproject_buildrequires
|
|
|
c5e8c9 |
|
|
|
c5e8c9 |
%build
|
|
|
c5e8c9 |
%pyproject_wheel
|
|
|
c5e8c9 |
# Clean the doc dir
|
|
|
c5e8c9 |
rm -f docs/Makefile
|
|
|
c5e8c9 |
rm -rf docs/_static
|
|
|
c5e8c9 |
find examples -type f -print0 | xargs -0 chmod 0644
|
|
|
c5e8c9 |
|
|
|
c5e8c9 |
%install
|
|
|
c5e8c9 |
%pyproject_install
|
|
|
c5e8c9 |
%pyproject_save_files -l factory
|
|
|
c5e8c9 |
|
|
|
c5e8c9 |
%if %{with tests}
|
|
|
c5e8c9 |
%check
|
|
|
c5e8c9 |
SKIP_MONGOENGINE=1 %pytest
|
|
|
c5e8c9 |
%endif
|
|
|
c5e8c9 |
|
|
|
c5e8c9 |
%files -n python3-factory-boy -f %{pyproject_files}
|
|
|
c5e8c9 |
|
|
|
c5e8c9 |
%files doc
|
|
|
c5e8c9 |
%doc README.rst CODE_OF_CONDUCT.md CONTRIBUTING.rst CREDITS docs examples
|
|
|
c5e8c9 |
%license LICENSE
|
|
|
c5e8c9 |
|
|
|
c5e8c9 |
%changelog
|
|
|
c5e8c9 |
* Mon Oct 21 2024 Mikel Olasagasti Uranga <mikel@olasagasti.info> - 3.3.1-2
|
|
|
c5e8c9 |
- Convert to pyproject macros
|
|
|
c5e8c9 |
|
|
|
c5e8c9 |
* Wed Sep 04 2024 Juan Orti Alcaine <jortialc@redhat.com> - 3.3.1-1
|
|
|
c5e8c9 |
- Version 3.3.1 (RHBZ#2306033)
|
|
|
c5e8c9 |
|
|
|
c5e8c9 |
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.0-6
|
|
|
c5e8c9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
|
|
c5e8c9 |
|
|
|
c5e8c9 |
* Sat Jun 29 2024 Python Maint <python-maint@redhat.com> - 3.3.0-5
|
|
|
c5e8c9 |
- Rebuilt for Python 3.13
|
|
|
c5e8c9 |
|
|
|
c5e8c9 |
* Fri Jun 07 2024 Python Maint <python-maint@redhat.com> - 3.3.0-4
|
|
|
c5e8c9 |
- Bootstrap for Python 3.13
|
|
|
c5e8c9 |
|
|
|
c5e8c9 |
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.0-3
|
|
|
c5e8c9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
c5e8c9 |
|
|
|
c5e8c9 |
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.0-2
|
|
|
c5e8c9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
c5e8c9 |
|
|
|
c5e8c9 |
* Fri Sep 22 2023 Juan Orti Alcaine <jortialc@redhat.com> - 3.3.0-1
|
|
|
c5e8c9 |
- Version 3.3.0 (#2223915)
|
|
|
c5e8c9 |
- Fix tests
|
|
|
c5e8c9 |
|
|
|
c5e8c9 |
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.1-9
|
|
|
c5e8c9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
c5e8c9 |
|
|
|
c5e8c9 |
* Mon Jul 03 2023 Python Maint <python-maint@redhat.com> - 3.2.1-8
|
|
|
c5e8c9 |
- Rebuilt for Python 3.12
|
|
|
c5e8c9 |
|
|
|
c5e8c9 |
* Wed Jun 14 2023 Python Maint <python-maint@redhat.com> - 3.2.1-7
|
|
|
c5e8c9 |
- Bootstrap for Python 3.12
|
|
|
c5e8c9 |
|
|
|
c5e8c9 |
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.1-6
|
|
|
c5e8c9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
c5e8c9 |
|
|
|
c5e8c9 |
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.1-5
|
|
|
c5e8c9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
c5e8c9 |
|
|
|
c5e8c9 |
* Tue Jun 14 2022 Python Maint <python-maint@redhat.com> - 3.2.1-4
|
|
|
c5e8c9 |
- Rebuilt for Python 3.11
|
|
|
c5e8c9 |
|
|
|
c5e8c9 |
* Sat Mar 26 2022 Juan Orti Alcaine <jortialc@redhat.com> - 3.2.1-3
|
|
|
c5e8c9 |
- Disable tests in RHEL
|
|
|
c5e8c9 |
|
|
|
c5e8c9 |
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.1-2
|
|
|
c5e8c9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
c5e8c9 |
|
|
|
c5e8c9 |
* Wed Jan 05 2022 Juan Orti Alcaine <jortialc@redhat.com> - 3.2.1-1
|
|
|
c5e8c9 |
- Version 3.2.1 (#2017474)
|
|
|
c5e8c9 |
|
|
|
c5e8c9 |
* Tue Jul 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.0-4
|
|
|
c5e8c9 |
- Second attempt - Rebuilt for
|
|
|
c5e8c9 |
https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
c5e8c9 |
|
|
|
c5e8c9 |
* Thu Jun 03 2021 Python Maint <python-maint@redhat.com> - 3.2.0-3
|
|
|
c5e8c9 |
- Rebuilt for Python 3.10
|
|
|
c5e8c9 |
|
|
|
c5e8c9 |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.0-2
|
|
|
c5e8c9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
c5e8c9 |
|
|
|
c5e8c9 |
* Fri Jan 01 2021 Juan Orti Alcaine <jortialc@redhat.com> - 3.2.0-1
|
|
|
c5e8c9 |
- Version 3.2.0 (#1911225)
|
|
|
c5e8c9 |
|
|
|
c5e8c9 |
* Thu Oct 08 2020 Juan Orti Alcaine <jortialc@redhat.com> - 3.1.0-1
|
|
|
c5e8c9 |
- Version 3.1.0 (RHBZ#1884820)
|
|
|
c5e8c9 |
- BR: python3-setuptools
|
|
|
c5e8c9 |
|
|
|
c5e8c9 |
* Fri Aug 14 2020 Juan Orti Alcaine <jortialc@redhat.com> - 3.0.1-1
|
|
|
c5e8c9 |
- Version 3.0.1 (RHBZ#1868502)
|
|
|
c5e8c9 |
|
|
|
c5e8c9 |
* Thu Aug 13 2020 Juan Orti Alcaine <jortialc@redhat.com> - 3.0.0-1
|
|
|
c5e8c9 |
- Version 3.0.0
|
|
|
c5e8c9 |
- Include documentation in text format as sphinx fails to build
|
|
|
c5e8c9 |
|
|
|
c5e8c9 |
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.12.0-4
|
|
|
c5e8c9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
c5e8c9 |
|
|
|
c5e8c9 |
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 2.12.0-3
|
|
|
c5e8c9 |
- Rebuilt for Python 3.9
|
|
|
c5e8c9 |
|
|
|
c5e8c9 |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.12.0-2
|
|
|
c5e8c9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
c5e8c9 |
|
|
|
c5e8c9 |
* Sun Jan 05 2020 Juan Orti Alcaine <jortialc@redhat.com> - 2.12.0-1
|
|
|
c5e8c9 |
- Version 2.12.0
|
|
|
c5e8c9 |
|
|
|
c5e8c9 |
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 2.11.1-8
|
|
|
c5e8c9 |
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
|
c5e8c9 |
|
|
|
c5e8c9 |
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 2.11.1-7
|
|
|
c5e8c9 |
- Rebuilt for Python 3.8
|
|
|
c5e8c9 |
|
|
|
c5e8c9 |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.11.1-6
|
|
|
c5e8c9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
c5e8c9 |
|
|
|
c5e8c9 |
* Wed Mar 13 2019 Juan Orti Alcaine <jorti@fedoraproject.org> - 2.11.1-5
|
|
|
c5e8c9 |
- Drop python2 subpackage
|
|
|
c5e8c9 |
|
|
|
c5e8c9 |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.11.1-4
|
|
|
c5e8c9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
c5e8c9 |
|
|
|
c5e8c9 |
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.11.1-3
|
|
|
c5e8c9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
c5e8c9 |
|
|
|
c5e8c9 |
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 2.11.1-2
|
|
|
c5e8c9 |
- Rebuilt for Python 3.7
|
|
|
c5e8c9 |
|
|
|
c5e8c9 |
* Wed May 16 2018 Juan Orti Alcaine <jorti@fedoraproject.org> - 2.11.1-1
|
|
|
c5e8c9 |
- Version 2.11.1
|
|
|
c5e8c9 |
|
|
|
c5e8c9 |
* Tue Mar 13 2018 Juan Orti Alcaine <jorti@fedoraproject.org> - 2.10.0-1
|
|
|
c5e8c9 |
- Version 2.10.0
|
|
|
c5e8c9 |
|
|
|
c5e8c9 |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.9.2-3
|
|
|
c5e8c9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
c5e8c9 |
|
|
|
c5e8c9 |
* Tue Jan 16 2018 Iryna Shcherbina <ishcherb@redhat.com> - 2.9.2-2
|
|
|
c5e8c9 |
- Update Python 2 dependency declarations to new packaging standards
|
|
|
c5e8c9 |
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
|
|
|
c5e8c9 |
|
|
|
c5e8c9 |
* Fri Aug 25 2017 Juan Orti Alcaine <jorti@fedoraproject.org> - 2.9.2-1
|
|
|
c5e8c9 |
- Version 2.9.2
|
|
|
c5e8c9 |
|
|
|
c5e8c9 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.8.1-3
|
|
|
c5e8c9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
c5e8c9 |
|
|
|
c5e8c9 |
* Sat Jul 01 2017 Juan Orti Alcaine <jorti@fedoraproject.org> - 2.8.1-2
|
|
|
c5e8c9 |
- Python3 changes
|
|
|
c5e8c9 |
|
|
|
c5e8c9 |
* Sun Feb 26 2017 Juan Orti Alcaine <jorti@fedoraproject.org> - 2.8.1-1
|
|
|
c5e8c9 |
- Version 2.8.1
|
|
|
c5e8c9 |
|
|
|
c5e8c9 |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.0-5
|
|
|
c5e8c9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
c5e8c9 |
|
|
|
c5e8c9 |
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 2.7.0-4
|
|
|
c5e8c9 |
- Rebuild for Python 3.6
|
|
|
c5e8c9 |
|
|
|
c5e8c9 |
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.7.0-3
|
|
|
c5e8c9 |
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
c5e8c9 |
|
|
|
c5e8c9 |
* Wed Jul 06 2016 Juan Orti Alcaine <jorti@fedoraproject.org> - 2.7.0-2
|
|
|
c5e8c9 |
- Add BuildRequires: python-sphinx_rtd_theme
|
|
|
c5e8c9 |
|
|
|
c5e8c9 |
* Thu Jun 23 2016 Juan Orti Alcaine <jorti@fedoraproject.org> - 2.7.0-1
|
|
|
c5e8c9 |
- Version 2.7.0
|
|
|
c5e8c9 |
|
|
|
c5e8c9 |
* Wed Feb 24 2016 Juan Orti Alcaine <jorti@fedoraproject.org> - 2.6.1-1
|
|
|
c5e8c9 |
- Version 2.6.1
|
|
|
c5e8c9 |
|
|
|
c5e8c9 |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.0-4
|
|
|
c5e8c9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
c5e8c9 |
|
|
|
c5e8c9 |
* Sat Nov 14 2015 Juan Orti Alcaine <jorti@fedoraproject.org> - 2.6.0-3
|
|
|
c5e8c9 |
- Add python-faker dependency
|
|
|
c5e8c9 |
- Use python_provide macro
|
|
|
c5e8c9 |
|
|
|
c5e8c9 |
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6.0-2
|
|
|
c5e8c9 |
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
|
|
|
c5e8c9 |
|
|
|
c5e8c9 |
* Wed Oct 21 2015 Juan Orti Alcaine <jorti@fedoraproject.org> - 2.6.0-1
|
|
|
c5e8c9 |
- New version 2.6.0
|
|
|
c5e8c9 |
|
|
|
c5e8c9 |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5.2-2
|
|
|
c5e8c9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
c5e8c9 |
|
|
|
c5e8c9 |
* Tue Dec 23 2014 Juan Orti Alcaine <jorti@fedoraproject.org> - 2.5.2-1
|
|
|
c5e8c9 |
- New version 2.5.2
|
|
|
c5e8c9 |
|
|
|
c5e8c9 |
* Tue Dec 23 2014 Juan Orti <jorti@fedoraproject.org> - 2.4.1-4
|
|
|
c5e8c9 |
- Use parallel make
|
|
|
c5e8c9 |
|
|
|
c5e8c9 |
* Mon Dec 15 2014 Juan Orti <jorti@fedoraproject.org> - 2.4.1-3
|
|
|
c5e8c9 |
- Update to commit 392db861e585f12038f18f41e467ecfcab9d39b0
|
|
|
c5e8c9 |
- Drop patch factory_boy-2.4.1-disable_broken_tests.patch
|
|
|
c5e8c9 |
|
|
|
c5e8c9 |
* Wed Dec 10 2014 Juan Orti <jorti@fedoraproject.org> - 2.4.1-2
|
|
|
c5e8c9 |
- Rename python3 subpackage to python3-factory-boy
|
|
|
c5e8c9 |
- Move manpage to doc subpackage and to section 3
|
|
|
c5e8c9 |
- Fit summary and description in 80 characters width lines
|
|
|
c5e8c9 |
- Remove .buildinfo files
|
|
|
c5e8c9 |
- Run tests
|
|
|
c5e8c9 |
- Add patch to disable broken tests
|
|
|
c5e8c9 |
- Change Source0 to GitHub
|
|
|
c5e8c9 |
- Add documentation in plain text format
|
|
|
c5e8c9 |
|
|
|
c5e8c9 |
* Wed Dec 03 2014 Juan Orti <jorti@fedoraproject.org> - 2.4.1-1
|
|
|
c5e8c9 |
- Update to version 2.4.1
|
|
|
c5e8c9 |
- Spec file cleanup
|
|
|
c5e8c9 |
|
|
|
c5e8c9 |
* Sat May 24 2014 Didier Fabert <didier.fabert@gmail.com> 2.3.1-1
|
|
|
c5e8c9 |
- Initial RPM release
|