10 Commits

Author SHA256 Message Date
Tomáš Chvátal
0823e31173 Accepting request 839483 from home:jayvdb:branches:devel:languages:python
- Use PyPI tarball and revise test runner to python -m unittest
- Update to v3.1.0
  * Allow all types of declarations in :class:`factory.Faker` calls
    enables references to other faker-defined attributes.
- from v3.0.1
  * Fix `import factory; factory.django.DjangoModelFactory` and
    similar calls.
- from v3.0.0
  * Removed alias
    + `from factory import DjangoModelFactory` to
      `from factory.django import DjangoModelFactory`
    + `from factory import MogoFactory` to
      `from factory.mogo import MogoFactory`
    + `from factory.fuzzy import get_random_state` to
      `from factory.random import get_random_state`
    + `from factory.fuzzy import set_random_state` to
      `from factory.random import set_random_state`
    + `from factory.fuzzy import reseed_random` to
      `from factory.random import reseed_random`
  * Drop support for Python 2 and 3.4
  * Drop support for Django 2.0 and 2.1
  * Remove deprecated `force_flush` from `SQLAlchemyModelFactory`
    Use `sqlalchemy_session_persistence = "flush"` instead
  * Drop deprecated `attributes()` from `factory.Factory`; use
    `make_factory(dict, FactoryClass._meta.pre_declarations)`
  * Drop deprecated `declarations()` from `factory.Factory`; use
    `FactoryClass._meta.pre_declarations` instead
  * Drop `factory.compat` module
  * Add support for Python 3.8
  * Add support for Django 2.2 and 3.0
  * Report misconfiguration when `Factory` is used
    as the `Factory.model` for another `Factory`
  * Allow configuring the color palette of `factory.django.ImageField`
  * `get_random_state()` now represents the state of Faker and
    `factory_boy` fuzzy attributes
  * Add SQLAlchemy ``get_or_create`` support
  * Display a developer-friendly error message when providing a model
    instead of a factory in a `factory.declarations.SubFactory` class
  * Fix issue with SubFactory not preserving signal muting behaviour
    of the used factory
  * Fix issue with overriding params in a Trait
  * Limit ``get_or_create`` behavior to fields specified in
    `django_get_or_create`
  * Re-raise `~django.db.IntegrityError` when `django_get_or_create`
    with multiple fields fails to lookup model using user provided
    keyword arguments
  * TypeError masked by __repr__ AttributeError when initializing
    `Maybe` with inconsistent phases

OBS-URL: https://build.opensuse.org/request/show/839483
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-factory_boy?expand=0&rev=19
2020-10-05 06:39:55 +00:00
Tomáš Chvátal
a66a781556 - Fix build without python2
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-factory_boy?expand=0&rev=17
2020-03-16 10:32:08 +00:00
Steve Kowalik
6434f5fa67 - 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=15
2019-11-18 00:58:49 +00:00
Tomáš Chvátal
68360073aa Accepting request 708345 from home:mcalabkova:branches:devel:languages:python
- Update to version 2.12.0
  * NOW support for Python 3.7 and Django 2.1
  * various small bugfixes
- Removed upstreamed patches:
  * python37.patch
  * django-2.2.patch

OBS-URL: https://build.opensuse.org/request/show/708345
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-factory_boy?expand=0&rev=13
2019-06-07 12:07:43 +00:00
Tomáš Chvátal
2332ad1c61 - Add patch to support django 2.2:
* django-2.2.patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-factory_boy?expand=0&rev=11
2019-04-17 10:16:28 +00:00
Tomáš Chvátal
a2ed2f15b3 - Update to 2.11.1:
* Support for Django 2.1
  * Support for python 3.7
  * Various small bugfixes
- Add patch python37.patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-factory_boy?expand=0&rev=9
2018-10-18 10:23:18 +00:00
Jan Matejek
cdf00eb4af Accepting request 532148 from home:scarabeus_iv:branches:devel:languages:python
- Update to version 2.9.2:
  * read the upstream ChangeLog for in detail list as there are
    too many changes
- Do not generate docu in the spec and make sure tests are run
- Switch to python singlespec

OBS-URL: https://build.opensuse.org/request/show/532148
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-factory_boy?expand=0&rev=7
2017-10-06 13:58:25 +00:00
Denisart Benjamin
e5a6730e39 Accepting request 305341 from home:benoit_monin:branches:devel:languages:python
- update to version 2.5.2
- add python-mock as BuildRequires for the tests
- add python-setuptools as BuildRequires: needed by setup.py
- build the documentation with the build_sphinx command
- pass -q to the test to avoid spamming the build log
- rename README to README.rst to follow upstream

OBS-URL: https://build.opensuse.org/request/show/305341
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-factory_boy?expand=0&rev=5
2015-05-06 23:30:02 +00:00
Sascha Peilicke
0e8bf4300a - Update to version 1.2.0:
+ Upstream provides no changelog
- Build HTML documentation

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-factory_boy?expand=0&rev=3
2012-11-23 11:08:12 +00:00
Sascha Peilicke
d8bd6e7265 - Initial version
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-factory_boy?expand=0&rev=1
2012-06-11 13:12:57 +00:00