17
0

9 Commits

Author SHA256 Message Date
fbd068049e Accepting request 1273892 from devel:languages:python
- Switch to pyproject macros.

OBS-URL: https://build.opensuse.org/request/show/1273892
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-factory_boy?expand=0&rev=24
2025-05-02 12:59:53 +00:00
8d86fc1928 - Switch to pyproject macros.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-factory_boy?expand=0&rev=41
2025-05-02 03:45:39 +00:00
017bb8b327 Accepting request 1271876 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1271876
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-factory_boy?expand=0&rev=23
2025-04-22 15:31:02 +00:00
d5ec4d4ec6 Accepting request 1271865 from home:ecsos:python
- Update to 3.3.3
  * New:
    - Publish type annotations
- Changes from 3.3.2
  * Bugfix:
    - Fix docs generation
  * New:
    - Add support for Python 3.13

OBS-URL: https://build.opensuse.org/request/show/1271865
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-factory_boy?expand=0&rev=39
2025-04-22 12:38:46 +00:00
a1e813878c Accepting request 1204071 from devel:languages:python
- skip testing with Django on SLFO

OBS-URL: https://build.opensuse.org/request/show/1204071
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-factory_boy?expand=0&rev=22
2024-09-27 15:11:28 +00:00
150fb11fb2 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-factory_boy?expand=0&rev=37 2024-09-27 07:46:41 +00:00
76522daa97 Accepting request 1203794 from home:mcalabkova:branches:devel:languages:python
- skip testing with Django on SLFO

OBS-URL: https://build.opensuse.org/request/show/1203794
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-factory_boy?expand=0&rev=36
2024-09-27 07:46:17 +00:00
e494ca2887 Accepting request 1198077 from devel:languages:python
- update to 3.3.1:
  * Add support for Django 4.2
  * Add support for Django 5.1
  * Add support for Python 3.12
  * Stop advertising and verifying support for Django 3.2, 4.0,
    4.1

    - :issue:`366`: Add :class:`factory.django.Password` to generate Django
      + If the :meth:`~django.db.models.Model.save` call is not needed after :class:`~factory.PostGeneration`, set
- Drop tests-skip-django-py36.patch because new version need
- skip testing with Django on SLE15
- BuildRequires on %{pythons} as setuptools no longer drags it in.

OBS-URL: https://build.opensuse.org/request/show/1198077
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-factory_boy?expand=0&rev=21
2024-09-03 11:37:07 +00:00
1576e7b571 - update to 3.3.1:
* Add support for Django 4.2
  * Add support for Django 5.1
  * Add support for Python 3.12
  * Stop advertising and verifying support for Django 3.2, 4.0,
    4.1
    - :issue:`366`: Add :class:`factory.django.Password` to generate Django
      + If the :meth:`~django.db.models.Model.save` call is not needed after :class:`~factory.PostGeneration`, set
- Drop tests-skip-django-py36.patch because new version need
- skip testing with Django on SLE15
- BuildRequires on %{pythons} as setuptools no longer drags it in.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-factory_boy?expand=0&rev=34
2024-08-31 12:42:16 +00:00
4 changed files with 49 additions and 15 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:bc76d97d1a65bbd9842a6d722882098eb549ec8ee1081f9fb2e8ff29f0c300f1
size 163604

BIN
factory_boy-3.3.3.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@@ -1,9 +1,41 @@
-------------------------------------------------------------------
Fri May 2 03:45:16 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Switch to pyproject macros.
-------------------------------------------------------------------
Tue Apr 22 12:08:31 UTC 2025 - ecsos <ecsos@opensuse.org>
- Update to 3.3.3
* New:
- Publish type annotations
- Changes from 3.3.2
* Bugfix:
- Fix docs generation
* New:
- Add support for Python 3.13
-------------------------------------------------------------------
Thu Sep 26 10:37:04 UTC 2024 - Markéta Machová <mmachova@suse.com>
- skip testing with Django on SLFO
-------------------------------------------------------------------
Sat Aug 31 12:41:40 UTC 2024 - Dirk Müller <dmueller@suse.com>
- update to 3.3.1:
* Add support for Django 4.2
* Add support for Django 5.1
* Add support for Python 3.12
* Stop advertising and verifying support for Django 3.2, 4.0,
4.1
-------------------------------------------------------------------
Thu Nov 9 11:32:25 UTC 2023 - ecsos <ecsos@opensuse.org>
- Update to 3.3.0
* New:
- :issue:`366`: Add :class:`factory.django.Password` to generate Django
- :issue:`366`: Add :class:`factory.django.Password` to generate Django
:class:`~django.contrib.auth.models.User` passwords.
- :issue:`304`: Add :attr:`~factory.alchemy.SQLAlchemyOptions.sqlalchemy_session_factory`
to dynamically create sessions for use by the :class:`~factory.alchemy.SQLAlchemyModelFactory`.
@@ -23,7 +55,7 @@ Thu Nov 9 11:32:25 UTC 2023 - ecsos <ecsos@opensuse.org>
- To help with the transition, :class:`factory.django.DjangoModelFactory._after_postgeneration`
raises a :class:`DeprecationWarning` when calling :meth:`~django.db.models.Model.save`.
Inspect your :class:`~factory.django.DjangoModelFactory` subclasses:
+ If the :meth:`~django.db.models.Model.save` call is not needed after :class:`~factory.PostGeneration`, set
+ If the :meth:`~django.db.models.Model.save` call is not needed after :class:`~factory.PostGeneration`, set
:attr:`factory.django.DjangoOptions.skip_postgeneration_save` to True in the factory meta.
+ Otherwise, the instance has been modified by :class:`~factory.PostGeneration`
hooks and needs to be :meth:`~django.db.models.Model.save`d. Either:
@@ -38,7 +70,7 @@ Thu Nov 9 11:32:25 UTC 2023 - ecsos <ecsos@opensuse.org>
- Drop support for Python 3.6
- Drop support for Python 3.7
- Drop tests-skip-django-py36.patch because new version need
- Drop tests-skip-django-py36.patch because new version need
python >= 3.7.
-------------------------------------------------------------------
@@ -49,7 +81,7 @@ Fri Apr 21 12:24:55 UTC 2023 - Dirk Müller <dmueller@suse.com>
-------------------------------------------------------------------
Wed Feb 1 20:48:11 UTC 2023 - Dirk Müller <dmueller@suse.com>
- skip testing with Django on SLE15
- skip testing with Django on SLE15
-------------------------------------------------------------------
Sat Jan 15 16:04:33 UTC 2022 - Dirk Müller <dmueller@suse.com>
@@ -149,7 +181,7 @@ Mon Mar 16 10:31:31 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
-------------------------------------------------------------------
Mon Nov 18 00:57:55 UTC 2019 - Steve Kowalik <steven.kowalik@suse.com>
- BuildRequires on %{pythons} as setuptools no longer drags it in.
- BuildRequires on %{pythons} as setuptools no longer drags it in.
-------------------------------------------------------------------
Fri Jun 7 11:54:06 UTC 2019 - Marketa Calabkova <mcalabkova@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-factory_boy
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,7 +18,7 @@
%{?sle15_python_module_pythons}
Name: python-factory_boy
Version: 3.3.0
Version: 3.3.3
Release: 0
Summary: Python test fixtures
License: MIT
@@ -26,12 +26,14 @@ URL: https://github.com/rbarrois/factory_boy
Source: https://files.pythonhosted.org/packages/source/f/factory_boy/factory_boy-%{version}.tar.gz
BuildRequires: %{python_module Faker >= 0.7.0}
BuildRequires: %{python_module Pillow}
BuildRequires: %{python_module base >= 3.7}
BuildRequires: %{python_module base >= 3.9}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools >= 0.8}
BuildRequires: %{python_module typing_extensions}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
%if 0%{suse_version} >= 1550
%if 0%{suse_version} > 1600
BuildRequires: %{python_module Django}
%endif
Requires: python-Faker >= 0.7.0
@@ -53,10 +55,10 @@ sed -i -e '/test_alchemy/d' tests/__init__.py
sed -i -e 's|"3.2.1.dev0"|"3.3.0"|g' tests/test_version.py
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
@@ -66,6 +68,6 @@ sed -i -e 's|"3.2.1.dev0"|"3.3.0"|g' tests/test_version.py
%license LICENSE
%doc README.rst
%{python_sitelib}/factory
%{python_sitelib}/factory_boy-%{version}*-info
%{python_sitelib}/factory_boy-%{version}.dist-info
%changelog