Skip to content

Initial Update #506

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
Oct 26, 2018
Merged

Initial Update #506

merged 14 commits into from
Oct 26, 2018

Conversation

pyup-bot
Copy link
Collaborator

This PR sets up pyup.io on this repo and updates all dependencies at once, in a single branch.

Subsequent pull requests will update one dependency at a time, each in their own branch. If you want to start with that right away, simply close this PR.

Update django-debug-toolbar from 1.10.1 to 1.10.1.

Changelog

1.10.1

-------------------

* Fixed a problem where the duplicate query detection breaks for
non-hashable query parameters.
* Added support for structured types when recording SQL.
* Made Travis CI also run one test no PostgreSQL.
* Added fallbacks for inline images in CSS.
* Improved cross-browser compatibility around ``URLSearchParams`` usage.
* Fixed a few typos and redundancies in the documentation, removed
mentions of django-debug-toolbar's jQuery which aren't accurate
anymore.

1.10

-----------------

* Removed support for Django < 1.11.
* Added support and testing for Django 2.1 and Python 3.7. No actual code
changes were required.
* Removed the jQuery dependency. This means that django-debug-toolbar
now requires modern browsers with support for ``fetch``, ``classList``
etc.
* Added support for the server timing header.
* Added a differentiation between similar and duplicate queries. Similar
queries are what duplicate queries used to be (same SQL, different
parameters).
* Stopped hiding frames from Django's contrib apps in stacktraces by
default.
* Lots of small cleanups and bugfixes.

1.9.1

------------------

* Fix erroneous ``ContentNotRenderedError`` raised by the redirects panel.

1.9

----------------

This version is compatible with Django 2.0 and requires Django 1.8 or
later.

Bugfixes
~~~~~~~~

* The profiling panel now escapes reported data resulting in valid HTML.
* Many minor cleanups and bugfixes.

1.8

----------------

This version is compatible with Django 1.11 and requires Django 1.8 or
later.

**Backwards incompatible changes**
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

* ``debug_toolbar.middleware.show_toolbar`` (the default value of setting
``SHOW_TOOLBAR_CALLBACK``) no longer returns ``False`` for AJAX requests.
This is to allow reusing the ``SHOW_TOOLBAR_CALLBACK`` function to verify
access to panel views requested via AJAX. Projects defining a custom
``SHOW_TOOLBAR_CALLBACK`` should remove checks for AJAX requests in order to
continue to allow access to these panels.

Features
~~~~~~~~

* New decorator ``debug_toolbar.decorators.require_show_toolbar`` prevents
unauthorized access to decorated views by checking ``SHOW_TOOLBAR_CALLBACK``
every request. Unauthorized access results in a 404.
* The ``SKIP_TEMPLATE_PREFIXES`` setting allows skipping templates in
the templates panel. Template-based form widgets' templates are
skipped by default to avoid panel sizes going into hundreds of
megabytes of HTML.

Bugfixes
~~~~~~~~

* All views are now decorated with
``debug_toolbar.decorators.require_show_toolbar`` preventing unauthorized
access.
* The templates panel now reuses contexts' pretty printed version which
makes the debug toolbar usable again with Django 1.11's template-based
forms rendering.
* Long SQL statements are now forcibly wrapped to fit on the screen.

1.7

----------------

Bugfixes
~~~~~~~~

* Recursive template extension is now understood.
* Deprecation warnings were fixed.
* The SQL panel uses HMAC instead of simple hashes to verify that SQL
statements have not been changed. Also, the handling of bytes and text
for hashing has been hardened. Also, a bug with Python's division
handling has been fixed for improved Python 3 support.
* An error with django-jinja has been fixed.
* A few CSS classes have been prefixed with ``djdt-`` to avoid
conflicting class names.

1.6

----------------

The debug toolbar was adopted by jazzband.

Removed features
~~~~~~~~~~~~~~~~

* Support for automatic setup has been removed as it was frequently
problematic. Installation now requires explicit setup. The
``DEBUG_TOOLBAR_PATCH_SETTINGS`` setting has also been removed as it is now
unused. See the :doc:`installation documentation <installation>` for details.

Bugfixes
~~~~~~~~

* The ``DebugToolbarMiddleware`` now also supports Django 1.10's ``MIDDLEWARE``
setting.

1.5

----------------

This version is compatible with Django 1.10 and requires Django 1.8 or later.

Support for Python 3.2 is dropped.

Bugfixes
~~~~~~~~

* Restore compatibility with sqlparse ≥ 0.2.0.
* Add compatibility with Bootstrap 4, Pure CSS, MDL, etc.
* Improve compatibility with RequireJS / AMD.
* Improve the UI slightly.
* Fix invalid (X)HTML.

1.4

----------------

This version is compatible with Django 1.9 and requires Django 1.7 or later.

New features
~~~~~~~~~~~~

* New panel method :meth:`debug_toolbar.panels.Panel.generate_stats` allows panels
to only record stats when the toolbar is going to be inserted into the
response.

Bugfixes
~~~~~~~~

* Response time for requests of projects with numerous media files has
been improved.

1.3

----------------

This is the first version compatible with Django 1.8.

New features
~~~~~~~~~~~~

* A new panel is available: Template Profiler.
* The ``SHOW_TOOLBAR_CALLBACK`` accepts a callable.
* The toolbar now provides a :ref:`javascript-api`.

Bugfixes
~~~~~~~~

* The toolbar handle cannot leave the visible area anymore when the toolbar is
collapsed.
* The root level logger is preserved.
* The ``RESULTS_CACHE_SIZE`` setting is taken into account.
* CSS classes are prefixed with ``djdt-`` to prevent name conflicts.
* The private copy of jQuery no longer registers as an AMD module on sites
that load RequireJS.

1.2

----------------

New features
~~~~~~~~~~~~

* The ``JQUERY_URL`` setting defines where the toolbar loads jQuery from.

Bugfixes
~~~~~~~~

* The toolbar now always loads a private copy of jQuery in order to avoid
using an incompatible version. It no longer attemps to integrate with AMD.

This private copy is available in ``djdt.jQuery``. Third-party panels are
encouraged to use it because it should be as stable as the toolbar itself.

1.1

----------------

This is the first version compatible with Django 1.7.

New features
~~~~~~~~~~~~

* The SQL panel colors queries depending on the stack level.
* The Profiler panel allows configuring the maximum depth.

Bugfixes
~~~~~~~~

* Support languages where lowercase and uppercase strings may have different
lengths.
* Allow using cursor as context managers.
* Make the SQL explain more helpful on SQLite.
* Various JavaScript improvements.

Deprecated features
~~~~~~~~~~~~~~~~~~~

* The ``INTERCEPT_REDIRECTS`` setting is superseded by the more generic
``DISABLE_PANELS``.

1.0

----------------

This is the first stable version of the Debug Toolbar!

It includes many new features and performance improvements as well a few
backwards-incompatible changes to make the toolbar easier to deploy, use,
extend and maintain in the future.

You're strongly encouraged to review the installation and configuration docs
and redo the setup in your projects.

Third-party panels will need to be updated to work with this version.
Links

Update factory-boy from 2.11.1 to 2.11.1.

Changelog

2.11.1

-------------------

*Bugfix:*

 - Fix passing deep context to a :class:`~factory.SubFactory` (``Foo(x__y__z=factory.Faker('name')``)

2.11.0

-------------------

*Bugfix:*

 - Fix :class:`~factory.fuzzy.FuzzyFloat` to return a 15 decimal digits precision float by default
 - :issue:`451`: Restore :class:`~factory.django.FileField` to a
   :class:`~factory.declarations.ParameteredAttribute`, relying on composition to parse the provided parameters.
 - :issue:`389`: Fix random state management with ``faker``.
 - :issue:`466`: Restore mixing :class:`~factory.Trait` and :meth:`~factory.post_generation`.

2.10.0

-------------------

*Bugfix:*

 - :issue:`443`: Don't crash when calling :meth:`factory.Iterator.reset()` on a brand new iterator.

*New:*

 - :issue:`397`: Allow a :class:`factory.Maybe` to contain a :class:`~factory.PostGenerationDeclaration`.
   This also applies to :class:`factory.Trait`, since they use a :class:`factory.Maybe` declaration internally.

2.9.2

------------------

*Bugfix:*

 - Fix declaration corruption bug when a factory defined `foo__bar__baz=1` and a caller
   provided a `foo__bar=x` parameter at call time: this got merged into the factory's base
   declarations.

2.9.1

------------------

*Bugfix:*

 - Fix packaging issues (see https://github.com/zestsoftware/zest.releaser/issues/212)
 - Don't crash when debugging PostGenerationDeclaration

2.9.0

------------------

This version brings massive changes to the core engine, thus reducing the number of
corner cases and weird behaviourrs.

*New:*

 - :issue:`275`: `factory.fuzzy` and `factory.faker` now use the same random seed.
 - Add :class:`factory.Maybe`, which chooses among two possible declarations based
   on another field's value (powers the :class:`~factory.Trait` feature).
 - :class:`~factory.PostGenerationMethodCall` only allows to pass one positional argument; use keyword arguments for
   extra parameters.

*Deprecation:*

 - `factory.fuzzy.get_random_state` is deprecated, `factory.random.get_random_state` should be used instead.
 - `factory.fuzzy.set_random_state` is deprecated, `factory.random.set_random_state` should be used instead.
 - `factory.fuzzy.reseed_random` is deprecated, `factory.random.reseed_random` should be used instead.

2.8.1

------------------

*Bugfix:*

 - Fix packaging issues.

2.8.0

------------------

*New:*

 - :issue:`240`: Call post-generation declarations in the order they were declared,
   thanks to `Oleg Pidsadnyi <https://github.com/olegpidsadnyi>`_.
 - :issue:`309`: Provide new options for SQLAlchemy session persistence

*Bugfix:*

 - :issue:`334`: Adjust for the package change in ``faker``

2.7.0

------------------

*New:*

 - :issue:`267`: Add :class:`factory.LazyFunction` to remove unneeded lambda parameters,
   thanks to `Hervé Cauwelier <https://github.com/bors-ltd>`_.
 - :issue:`251`: Add :ref:`parameterized factories <parameters>` and :class:`traits <factory.Trait>`
 - :issue:`256`, :issue:`292`: Improve error messages in corner cases

*Removed:*

 - :issue:`278`: Formally drop support for Python2.6

.. warning:: Version 2.7.0 moves all error classes to
          `factory.errors`. This breaks existing import statements
          for any error classes except those importing
          `FactoryError` directly from the `factory` module.

2.6.1

------------------

*New:*

 - :issue:`262`: Allow optional forced flush on SQLAlchemy, courtesy of `Minjung <https://github.com/Minjung>`_.

2.6.0

------------------

*New:*

 - Add :attr:`factory.FactoryOptions.rename` to help handle conflicting names (:issue:`206`)
 - Add support for random-yet-realistic values through `fake-factory <https://pypi.org/project/fake-factory/>`_,
   through the :class:`factory.Faker` class.
 - :class:`factory.Iterator` no longer begins iteration of its argument at import time,
   thus allowing to pass in a lazy iterator such as a Django queryset
   (i.e ``factory.Iterator(models.MyThingy.objects.all())``).
 - Simplify imports for ORM layers, now available through a simple ``factory`` import,
   at ``factory.alchemy.SQLAlchemyModelFactory`` / ``factory.django.DjangoModelFactory`` / ``factory.mongoengine.MongoEngineFactory``.

*Bugfix:*

 - :issue:`201`: Properly handle custom Django managers when dealing with abstract Django models.
 - :issue:`212`: Fix :meth:`factory.django.mute_signals` to handle Django's signal caching
 - :issue:`228`: Don't load :func:`django.apps.apps.get_model()` until required
 - :issue:`219`: Stop using :meth:`mogo.model.Model.new()`, deprecated 4 years ago.

2.5.2

------------------

*Bugfix:*

 - Add support for Django 1.7/1.8
 - Add support for mongoengine>=0.9.0 / pymongo>=2.1

2.5.1

------------------

*Bugfix:*

 - Respect custom managers in :class:`~factory.django.DjangoModelFactory` (see :issue:`192`)
 - Allow passing declarations (e.g :class:`~factory.Sequence`) as parameters to :class:`~factory.django.FileField`
   and :class:`~factory.django.ImageField`.

2.5.0

------------------

*New:*

 - Add support for getting/setting :mod:`factory.fuzzy`'s random state (see :issue:`175`, :issue:`185`).
 - Support lazy evaluation of iterables in :class:`factory.fuzzy.FuzzyChoice` (see :issue:`184`).
 - Support non-default databases at the factory level (see :issue:`171`)
 - Make :class:`factory.django.FileField` and :class:`factory.django.ImageField` non-post_generation, i.e normal fields also available in ``save()`` (see :issue:`141`).

*Bugfix:*

 - Avoid issues when using :meth:`factory.django.mute_signals` on a base factory class (see :issue:`183`).
 - Fix limitations of :class:`factory.StubFactory`, that can now use :class:`factory.SubFactory` and co (see :issue:`131`).


*Deprecation:*

 - Remove deprecated features from :ref:`v2.4.0`
 - Remove the auto-magical sequence setup (based on the latest primary key value in the database) for Django and SQLAlchemy;
   this relates to issues :issue:`170`, :issue:`153`, :issue:`111`, :issue:`103`, :issue:`92`, :issue:`78`. See https://github.com/FactoryBoy/factory_boy/commit/13d310f for technical details.

.. warning:: Version 2.5.0 removes the 'auto-magical sequence setup' bug-and-feature.
          This could trigger some bugs when tests expected a non-zero sequence reference.

Upgrading
"""""""""

.. warning:: Version 2.5.0 removes features that were marked as deprecated in :ref:`v2.4.0 <v2.4.0>`.

All ``FACTORY_*``-style attributes are now declared in a ``class Meta:`` section:

.. code-block:: python

  Old-style, deprecated
 class MyFactory(factory.Factory):
     FACTORY_FOR = models.MyModel
     FACTORY_HIDDEN_ARGS = ['a', 'b', 'c']

  New-style
 class MyFactory(factory.Factory):
     class Meta:
         model = models.MyModel
         exclude = ['a', 'b', 'c']

A simple shell command to upgrade the code would be:

.. code-block:: sh

  sed -i: inplace update
  grep -l: only file names, not matching lines
 sed -i 's/FACTORY_FOR =/class Meta:\n        model =/' $(grep -l FACTORY_FOR $(find . -name '*.py'))

This takes care of all ``FACTORY_FOR`` occurrences; the files containing other attributes to rename can be found with ``grep -R  FACTORY .``

2.4.1

------------------

*Bugfix:*

 - Fix overriding deeply inherited attributes (set in one factory, overridden in a subclass, used in a sub-sub-class).

2.4.0

------------------

*New:*

 - Add support for :attr:`factory.fuzzy.FuzzyInteger.step`, thanks to `ilya-pirogov <https://github.com/ilya-pirogov>`_ (:issue:`120`)
 - Add :meth:`~factory.django.mute_signals` decorator to temporarily disable some signals, thanks to `ilya-pirogov <https://github.com/ilya-pirogov>`_ (:issue:`122`)
 - Add :class:`~factory.fuzzy.FuzzyFloat` (:issue:`124`)
 - Declare target model and other non-declaration fields in a ``class Meta`` section.

*Deprecation:*

 - Use of ``FACTORY_FOR`` and other ``FACTORY`` class-level attributes is deprecated and will be removed in 2.5.
   Those attributes should now declared within the :class:`class Meta <factory.FactoryOptions>` attribute:

   For :class:`factory.Factory`:

   * Rename :attr:`~factory.Factory.FACTORY_FOR` to :attr:`~factory.FactoryOptions.model`
   * Rename :attr:`~factory.Factory.ABSTRACT_FACTORY` to :attr:`~factory.FactoryOptions.abstract`
   * Rename :attr:`~factory.Factory.FACTORY_STRATEGY` to :attr:`~factory.FactoryOptions.strategy`
   * Rename :attr:`~factory.Factory.FACTORY_ARG_PARAMETERS` to :attr:`~factory.FactoryOptions.inline_args`
   * Rename :attr:`~factory.Factory.FACTORY_HIDDEN_ARGS` to :attr:`~factory.FactoryOptions.exclude`

   For :class:`factory.django.DjangoModelFactory`:

   * Rename :attr:`~factory.django.DjangoModelFactory.FACTORY_DJANGO_GET_OR_CREATE` to :attr:`~factory.django.DjangoOptions.django_get_or_create`

   For :class:`factory.alchemy.SQLAlchemyModelFactory`:

   * Rename :attr:`~factory.alchemy.SQLAlchemyModelFactory.FACTORY_SESSION` to :attr:`~factory.alchemy.SQLAlchemyOptions.sqlalchemy_session`

2.3.1

------------------

*Bugfix:*

 - Fix badly written assert containing state-changing code, spotted by `chsigi <https://github.com/chsigi>`_ (:issue:`126`)
 - Don't crash when handling objects whose __repr__ is non-pure-ascii bytes on Py2,
   discovered by `mbertheau <https://github.com/mbertheau>`_ (:issue:`123`) and `strycore <https://github.com/strycore>`_ (:issue:`127`)

2.3.0

------------------

*New:*

 - Add :class:`~factory.fuzzy.FuzzyText`, thanks to `jdufresne <https://github.com/jdufresne>`_ (:issue:`97`)
 - Add :class:`~factory.fuzzy.FuzzyDecimal`, thanks to `thedrow <https://github.com/thedrow>`_ (:issue:`94`)
 - Add support for :class:`~mongoengine.EmbeddedDocument`, thanks to `imiric <https://github.com/imiric>`_ (:issue:`100`)

2.2.1

------------------

*Bugfix:*

 - Fixed sequence counter for :class:`~factory.django.DjangoModelFactory` when a factory
   inherits from another factory relating to an abstract model.

2.2.0

------------------

*Bugfix:*

 - Removed duplicated :class:`~factory.alchemy.SQLAlchemyModelFactory` lurking in :mod:`factory`
   (:issue:`83`)
 - Properly handle sequences within object inheritance chains.
   If FactoryA inherits from FactoryB, and their associated classes share the same link,
   sequence counters will be shared (:issue:`93`)
 - Properly handle nested :class:`~factory.SubFactory` overrides

*New:*

 - The :class:`~factory.django.DjangoModelFactory` now supports the ``FACTORY_FOR = 'myapp.MyModel'``
   syntax, making it easier to shove all factories in a single module (:issue:`66`).
 - Add :meth:`factory.debug()` helper for easier backtrace analysis
 - Adding factory support for mongoengine with :class:`~factory.mongoengine.MongoEngineFactory`.

2.1.2

------------------

*New:*

 - The :class:`~factory.Factory.ABSTRACT_FACTORY` keyword is now optional, and automatically set
   to ``True`` if neither the :class:`~factory.Factory` subclass nor its parent declare the
   :class:`~factory.Factory.FACTORY_FOR` attribute (:issue:`74`)

2.1.1

------------------

*Bugfix:*

 - Properly retrieve the ``color`` keyword argument passed to :class:`~factory.django.ImageField`

2.1.0

------------------

*New:*

 - Add :class:`~factory.fuzzy.FuzzyDate` thanks to `saulshanabrook <https://github.com/saulshanabrook>`_
 - Add :class:`~factory.fuzzy.FuzzyDateTime` and :class:`~factory.fuzzy.FuzzyNaiveDateTime`.
 - Add a :attr:`~factory.builder.Resolver.factory_parent` attribute to the
   :class:`~factory.builder.Resolver` passed to :class:`~factory.LazyAttribute`, in order to access
   fields defined in wrapping factories.
 - Move :class:`~factory.django.DjangoModelFactory` and :class:`~factory.mogo.MogoFactory`
   to their own modules (:mod:`factory.django` and :mod:`factory.mogo`)
 - Add the :meth:`~factory.Factory.reset_sequence` classmethod to :class:`~factory.Factory`
   to ease resetting the sequence counter for a given factory.
 - Add debug messages to ``factory`` logger.
 - Add a :meth:`~factory.Iterator.reset` method to :class:`~factory.Iterator` (:issue:`63`)
 - Add support for the SQLAlchemy ORM through :class:`~factory.alchemy.SQLAlchemyModelFactory`
   (:issue:`64`, thanks to `Romain Commandé <https://github.com/rcommande>`_)
 - Add :class:`factory.django.FileField` and :class:`factory.django.ImageField` hooks for
   related Django model fields (:issue:`52`)

*Bugfix*

 - Properly handle non-integer pks in :class:`~factory.django.DjangoModelFactory` (:issue:`57`).
 - Disable :class:`~factory.RelatedFactory` generation when a specific value was
   passed (:issue:`62`, thanks to `Gabe Koscky <https://github.com/dhekke>`_)

*Deprecation:*

 - Rename :class:`~factory.RelatedFactory`'s ``name`` argument to ``factory_related_name`` (See :issue:`58`)

2.0.2

------------------

*New:*

 - When :attr:`~factory.django.DjangoModelFactory.FACTORY_DJANGO_GET_OR_CREATE` is
   empty, use ``Model.objects.create()`` instead of ``Model.objects.get_or_create``.

2.0.1

------------------

*New:*

 - Don't push ``defaults`` to ``get_or_create`` when
   :attr:`~factory.django.DjangoModelFactory.FACTORY_DJANGO_GET_OR_CREATE` is not set.

2.0.0

------------------

*New:*

 - Allow overriding the base factory class for :func:`~factory.make_factory` and friends.
 - Add support for Python3 (Thanks to `kmike <https://github.com/kmike>`_ and `nkryptic <https://github.com/nkryptic>`_)
 - The default :attr:`~factory.Sequence.type` for :class:`~factory.Sequence` is now :obj:`int`
 - Fields listed in :attr:`~factory.Factory.FACTORY_HIDDEN_ARGS` won't be passed to
   the associated class' constructor
 - Add support for ``get_or_create`` in :class:`~factory.django.DjangoModelFactory`,
   through :attr:`~factory.django.DjangoModelFactory.FACTORY_DJANGO_GET_OR_CREATE`.
 - Add support for :mod:`~factory.fuzzy` attribute definitions.
 - The :class:`Sequence` counter can be overridden when calling a generating function
 - Add :class:`~factory.Dict` and :class:`~factory.List` declarations (Closes :issue:`18`).

*Removed:*

 - Remove associated class discovery
 - Remove :class:`~factory.InfiniteIterator` and :func:`~factory.infinite_iterator`
 - Remove :class:`~factory.CircularSubFactory`
 - Remove ``extract_prefix`` kwarg to post-generation hooks.
 - Stop defaulting to Django's ``Foo.objects.create()`` when "creating" instances
 - Remove STRATEGY_*
 - Remove :meth:`~factory.Factory.set_building_function` / :meth:`~factory.Factory.set_creation_function`

1.3.0

------------------

.. warning:: This version deprecates many magic or unexplicit features that will be
          removed in v2.0.0.

          Please read the :ref:`changelog-1-3-0-upgrading` section, then run your
          tests with ``python -W default`` to see all remaining warnings.

New
"""

- **Global:**
 - Rewrite the whole documentation
 - Provide a dedicated :class:`~factory.mogo.MogoFactory` subclass of :class:`~factory.Factory`

- **The Factory class:**
 - Better creation/building customization hooks at :meth:`factory.Factory._build` and :meth:`factory.Factory.create`
 - Add support for passing non-kwarg parameters to a :class:`~factory.Factory`
   wrapped class through :attr:`~factory.Factory.FACTORY_ARG_PARAMETERS`.
 - Keep the :attr:`~factory.Factory.FACTORY_FOR` attribute in :class:`~factory.Factory` classes

- **Declarations:**
 - Allow :class:`~factory.SubFactory` to solve circular dependencies between factories
 - Enhance :class:`~factory.SelfAttribute` to handle "container" attribute fetching
 - Add a :attr:`~factory.Iterator.getter` to :class:`~factory.Iterator`
   declarations
 - A :class:`~factory.Iterator` may be prevented from cycling by setting
   its :attr:`~factory.Iterator.cycle` argument to ``False``
 - Allow overriding default arguments in a :class:`~factory.PostGenerationMethodCall`
   when generating an instance of the factory
 - An object created by a :class:`~factory.django.DjangoModelFactory` will be saved
   again after :class:`~factory.PostGeneration` hooks execution


Pending deprecation
"""""""""""""""""""

The following features have been deprecated and will be removed in an upcoming release.

- **Declarations:**
 - :class:`~factory.InfiniteIterator` is deprecated in favor of :class:`~factory.Iterator`
 - :class:`~factory.CircularSubFactory` is deprecated in favor of :class:`~factory.SubFactory`
 - The ``extract_prefix`` argument to :meth:`~factory.post_generation` is now deprecated

- **Factory:**
 - Usage of :meth:`~factory.Factory.set_creation_function` and :meth:`~factory.Factory.set_building_function`
   are now deprecated
 - Implicit associated class discovery is no longer supported, you must set the :attr:`~factory.Factory.FACTORY_FOR`
   attribute on all :class:`~factory.Factory` subclasses


.. _changelog-1-3-0-upgrading:

Upgrading
"""""""""

This version deprecates a few magic or undocumented features.
All warnings will turn into errors starting from v2.0.0.

In order to upgrade client code, apply the following rules:

- Add a ``FACTORY_FOR`` attribute pointing to the target class to each
:class:`~factory.Factory`, instead of relying on automagic associated class
discovery
- When using factory_boy for Django models, have each factory inherit from
:class:`~factory.django.DjangoModelFactory`
- Replace ``factory.CircularSubFactory('some.module', 'Symbol')`` with
``factory.SubFactory('some.module.Symbol')``
- Replace ``factory.InfiniteIterator(iterable)`` with ``factory.Iterator(iterable)``
- Replace ``factory.post_generation()`` with ``factory.post_generation``
- Replace ``factory.set_building_function(SomeFactory, building_function)`` with
an override of the :meth:`~factory.Factory._build` method of ``SomeFactory``
- Replace ``factory.set_creation_function(SomeFactory, creation_function)`` with
an override of the :meth:`~factory.Factory._create` method of ``SomeFactory``

1.2.0

------------------

*New:*

 - Add :class:`~factory.CircularSubFactory` to solve circular dependencies between factories

1.1.5

------------------

*Bugfix:*

 - Fix :class:`~factory.PostGenerationDeclaration` and derived classes.

1.1.4

------------------

*New:*

 - Add :meth:`~factory.use_strategy` decorator to override a
   :class:`~factory.Factory`'s default strategy
 - Improve test running (tox, python2.6/2.7)
 - Introduce :class:`~factory.PostGeneration` and
   :class:`~factory.RelatedFactory`

1.1.3

------------------

*Bugfix:*

- Fix packaging rules

1.1.2

------------------

*New:*

- Add :class:`~factory.Iterator` and :class:`~factory.InfiniteIterator` for :class:`~factory.Factory` attribute declarations.
- Provide :func:`~factory.Factory.generate` and :func:`~factory.Factory.simple_generate`, that allow specifying the instantiation strategy directly.
 Also provides :func:`~factory.Factory.generate_batch` and :func:`~factory.Factory.simple_generate_batch`.

1.1.1

------------------

*New:*

- Add :func:`~factory.Factory.build_batch`, :func:`~factory.Factory.create_batch` and :func:`~factory.Factory.stub_batch`, to instantiate factories in batch

1.1.0

------------------

*New:*

- Improve the :class:`~factory.SelfAttribute` syntax to fetch sub-attributes using the ``foo.bar`` syntax;
- Add :class:`~factory.ContainerAttribute` to fetch attributes from the container of a :class:`~factory.SubFactory`.
- Provide the :func:`~factory.make_factory` helper: ``MyClassFactory = make_factory(MyClass, x=3, y=4)``
- Add :func:`~factory.build`, :func:`~factory.create`, :func:`~factory.stub` helpers

*Bugfix:*

- Allow classmethod/staticmethod on factories

*Deprecation:*

- Auto-discovery of :attr:`~factory.Factory.FACTORY_FOR` based on class name is now deprecated

1.0.4

------------------

*New:*

- Improve the algorithm for populating a :class:`~factory.Factory` attributes dict
- Add ``python setup.py test`` command to run the test suite
- Allow custom build functions
- Introduce :data:`~factory.MOGO_BUILD` build function
- Add support for inheriting from multiple :class:`~factory.Factory`
- Base :class:`~factory.Factory` classes can now be declared :attr:`abstract <factory.Factory.ABSTRACT_FACTORY>`.
- Provide :class:`~factory.django.DjangoModelFactory`, whose :class:`~factory.Sequence` counter starts at the next free database id
- Introduce :class:`~factory.SelfAttribute`, a shortcut for ``factory.LazyAttribute(lambda o: o.foo.bar.baz``.

*Bugfix:*

- Handle nested :class:`~factory.SubFactory`
- Share sequence counter between parent and subclasses
- Fix :class:`~factory.SubFactory` / :class:`~factory.Sequence` interferences

1.0.2

------------------

*New:*

- Introduce :class:`~factory.SubFactory`

1.0.1

------------------

*New:*

- Allow :class:`~factory.Factory` inheritance
- Improve handling of custom build/create functions

*Bugfix:*

- Fix concurrency between :class:`~factory.LazyAttribute` and :class:`~factory.Sequence`

1.0.0

------------------

*New:*

- First version of factory_boy


Credits
-------

* Initial version by Mark Sandstrom (2010)
* Developed by Raphaël Barrois since 2011


.. vim:et:ts=4:sw=4:tw=119:ft=rst:
Links

Update Faker from 0.9.2 to 0.9.2.

Changelog

0.9.2

* 1 bug fix:
 * Stopped stomping on I18n load path

0.9.1

* 1 bug fix:
 * Stopped setting I18n default locale
* 1 major enhancement:
 * Added method_missing to Address to add methods based on data in locale files
* 1 minor enhancement:
 * Added Swiss locale [Lukas Westermann]

0.9.0

* 1 major enhancement:
 * Moved strings and some formats to locale files

0.8.18

---------------------------------------------------------------------------------------

* Change blood group from ``0`` (zero) to ``O`` (capital letter O). Some locales do use 'zero', but
``O`` is more common and it is the medical standard. Thanks mohi7solanki.
* Fix alpha-2 country code for Haiti. Thanks sevens-ef for the report.
* Fix abbreviation for Nunavut. Thanks straz for the report.
* Standardized ``postcode`` in address providers. Now all locales are guaranteed to have
a ``postcode`` method and may have a localized alias for it (eg: ``zipcode``). Thanks straz for
the report.
* Fix typo in ``pt_BR`` Person perovider. Thanks Nichlas.
* Fix timezone handling. Thanks Fraterius.
* Use tzinfo when provided in ``date_of_birth``. Thanks Kelledin.

0.8.17

-------------------------------------------------------------------------------------

* Add ``ein``, ``itin`` and refactored ``ssn`` Provider for ``en_US``. Thanks crd.
* Add ``job`` provider for ``zh_CN``. Thanks ramwin.
* Add ``date_of_birth`` provider. Thanks cdr.
* Add alpha-3 representation option for ``country-code`` provider. Thanks cdr.

0.8.16

-------------------------------------------------------------------------------------

* Fix test for CPF (Brazilian SSN). Thanks Rubens Takiguti Ribeiro.
* Fix Canadian SIN generation. Thanks crd.
* Fix Norwegian SSN date portion. Thanks frangiz.
* Add ``start_datetime`` argument for ``unix_time()``. Thanks crd.

0.8.15

------------------------------------------------------------------------------------

* Change logging level to ``DEBUG``.

0.8.14

------------------------------------------------------------------------------------

* Add possibility to make artificial ssn numbers for ``FI_fi``. Thanks kivipe.
* Update ``ko_KR`` person data based on statistics. Thanks unace.
* Improved logging. Thanks confirmationbias616.

0.8.13

--------------------------------------------------------------------------------------

* Add ``no_NO`` bank provider. Thanks cloveras.
* Add ``ipv4_network_class``, ``ipv4_private``, ``ipv4_public`` providers. Thanks ZuluPro.
* Add ``address_class`` and ``private`` arguments to ``ipv4`` provider. Thanks ZuluPro.
* Add ``currency``, ``currency_name``, ``cryptocurrency``, ``cryptocurrency_code`` and ``cryptocurrency_name`` to currency provider. Thanks ZuluPro.
* Add automotive provider for ``de_DE``. Thanks gsilvan.
* Fix edgecases for Finnish ``ssn`` provider. Thanks sanga.
* Add job provider for ``pt_BR``. Thanks paladini.
* Add ``unix_device`` and ``unix_partition`` to ``file`` provider. Thanks ZuluPro.
* Add ``random_lowercase_letter`` and ``random_uppercase_letter`` to the base provider. Thanks ZuluPro.
* Clarify CLI help. Thanks confirmationbias616.

0.8.12

--------------------------------------------------------------------------------------

* Fix issue with ``cx_Freeze``. Thanks sedominik.
* Add dutch ``nl_NL`` bank provider. Thanks PatSousa.
* Add ``distrito`` and ``freguesia`` to ``pt_PT`` ``address`` provider. Thanks ZuluPro.
* Fix  unicode issues with the ``person`` provider. Thanks karthikarul20.
* Add ``en_SG`` ``person`` provider. Thanks karthikarul20.
* Add street names to the Ukrainian address provider. Thanks cadmi.
* Add ``de_AT`` address provider. Thanks bessl.
* Fix credit card prefixes. Thanks jphalip.
* Fix capitalization in ``no_NO`` address provider. Thanks cloveras.
* Fix deprecated syntax for raw strings. Thanks dchudz.
* Add ``latitude`` and ``longitude`` to ``de_AT`` ``address`` provider. Thanks bessl.
* Fix incorrect value in list of middle name for locale ``ru_RU``. Thanks damirazo.

0.8.11

-----------------------------------------------------------------------------------------

* Add scheme selection for internet ``url`` provider. Thanks ProvoK.
* Increase lower bound on AD date generation. Thanks prophile.
* Add the ability to specify the min and max age for some ssn locales. Thanks frangiz.

0.8.10

---------------------------------------------------------------------------------------

* Pass ``python_requires`` argument to ``setuptools``. Thanks jdufresne.
* Remove some words from ``en_US`` lorem ipsum provider. Thanks Pomax.

0.8.9

-------------------------------------------------------------------------------------

* Remove support for Python 3.3. Thanks jdufresne.
* Allow past dates within a second. Thanks DanEEstar.
* Added phone number formatting to ``en_GB`` localisation to ensure no genuine phone numbers are generated. Thanks TheSapper.
* Added ``en_GB`` localisation for SSN (UK National Insurance Number). Thanks TheSapper.
* Added ``ro_RO`` person Provider. Thanks vasilesmartup.
* Added ``domain`` argument to ``email`` provider. Thanks lcd1232.

0.8.8

--------------------------------------------------------------------------------------

* made ``seed_instance`` return ``self`` for chainability.
* Add ``en_US`` locale for ``lorem``. Thanks shacker.
* ``fi_FI`` gender specific data added. Thanks mikkhola.
* ``fi_FI`` address and job lists updated. Thanks mikkhola.
* Add ``iban`` provider. Thanks cdaller.

0.8.7

--------------------------------------------------------------------------------------

* Corrected some issues with the Hungarian (``hu_HU``) providers, such as incorrectly capitalized company suffixes, street/road type names and place names. Thanks chrisvoncsefalvay.
* The Hungarian locale's ``providers.job.job`` provider now returns Hungarian job names, taken from the Hungarian National Statistical Office (KSH)'s 2008 survey nomenclature of employment (FEOR '08). Thanks chrisvoncsefalvay.
* Added ``he_IL`` locale. Thanks bjesus.
* Fix possible infinite loop in ``random_sample_unique``. Thanks 153957.
* Add aliases to make ``pt_BR`` address provider compatible ``with en_US``. Thanks diegoholiveira.
* Fix ResourceWarning in ``setup.py``. Thanks jdufresne.
* Update test requirements.

0.8.6

-------------------------------------------------------------------------------------

* Replace ``unidecode`` dependency in favor of ``text-unidecode``. Faker now requires `text-unidecode <https://pypi.org/project/text-unidecode/>`_.

0.8.5

-------------------------------------------------------------------------------------

* Add ASCII emails. Thanks barseghyanartur.
* Add ``id_ID`` Providers. Thanks Sidi Ahmad.
* Fix ``date_time.time_series()`` to ensure start and end bounds are inclusive. Thanks bijanvakili.
* Create a provider to Brazilian license plates. Thanks diegoholiveira.
* Use a proper international format for Ukrainian phone numbers. Thanks illia-v.
* Faker now requires Unidecode_.

.. _Unidecode: https://pypi.org/project/Unidecode/

0.8.4

---------------------------------------------------------------------------------------

* Move ``email_validator`` to ``test_requires`` and unpinned the version number.
* Date feature parity with datetime. Thanks noirbizarre.
* Add ``MSISDN`` in the ``phone_number`` provider. Thanks patrickporto.
* Add Arabic locales. Thanks ahmedaljazzar.
* Fix datetime issue on Windows. Thanks kungfu71186.

0.8.3

---------------------------------------------------------------------------------------

* Fix release build.

0.8.2

---------------------------------------------------------------------------------------

* Revert name change of ``faker.generator.random``. Thanks adamchainz.
* Document the global shared ``random.Random`` and ``seed_instance()``. Thanks adamchainz.

0.8.1

------------------------------------------------------------------------------------

* Rolled back breaking change in ``randomize_nb_elements``.

0.8.0

-------------------------------------------------------------------------------------
* Add ``identity_card_number`` for ``pl_PL`` ``person`` provider. Thanks pdaw.
* More descriptive error message when a formatter is not found. Thanks fcurella.
* Add ``time_series`` provider. Thanks fcurella.
* Add per-instance seeding via ``.seed_instance`` method. Thanks reverbc.
* Fix ``tz_TW`` ``address`` provider. Thanks clarmso.

0.7.18

-------------------------------------------------------------------------------------

* Generate proper dates before 1970. Thanks kungfu71186.
* Made it possible to seed ``.binary()``. Thanks kungfu71186.
* Add color names for ``hr_HR``. Thanks mislavcimpersak.
* Add implementation of ``ssn`` provider for the ``pl_PL`` locale. Thanks pdaw.
* Add ``pt_BR`` colors localization. Thanks ppcmiranda.
* Create a method for codes of cryptocurrencies in the currency provider. Thanks illia-v.
* Fix female name format typo in ``hu_HU`` person provider. Thanks swilcox.
* Fix deprecated usage of ``print`` statement in README. Thanks cclauss.
* Add gender-specific names for ``sv_SE`` person provider. Thanks swilcox.
* Add an implementation of `regon` for ``pl_PL`` company provider. Thanks pdaw.
* Addi an implementation of ``local_regon`` for ``pl_PL`` company provider. Thanks pdaw.
* Replace deprecated ``getargspec`` on py3. Thanks fcurella.
* Add new ``automotive`` provider. Thanks zafarali.
* Add an implementation of ``company_vat`` for ``pl_PL`` company provider. Thanks pdaw.
* Add Taiwan/Traditional character support for internet and lorem providers. Thanks bearnun.
* Use ``random.choices`` when available for better performance. Thanks catleeball.
* Refactor RGB color methods. Thanks catleeball.

0.7.17

-------------------------------------------------------------------------------------

* Fix a timezone issue with the ``date_time_between_dates`` provider.

0.7.16

-------------------------------------------------------------------------------------

* fix timezone issues with ``date_time_between`` provider.
* Add ``ext_word_list`` parameter to methods in the `Lorem` generator. Thanks guinslym.

0.7.15

-------------------------------------------------------------------------------------

* fix start and end date for datetime provider methods.

0.7.14

-------------------------------------------------------------------------------------

* fix ``future_date``, `and ``past_date`` bounds.

0.7.13

-------------------------------------------------------------------------------------

* Remove capitalisation from ``hu_HU`` addresses. Thanks Newman101.
* Add ``et_EE`` (Estonian) provider: names and ssn. Thanks trtd.
* Proper prefix for gender in ``pl_PL`` names. Thanks zgoda.
* Add DateTime provider for ``pl_PL``. Thanks zgoda.
* Add ``pl_PL`` internet data provider. Thanks zgoda.
* Fix diacritics in ``pl_PL`` street names. Thanks zgoda.
* Add ``future_date``, ``future_datetime``, ``past_date`` and ``past_datetime`` to DateTime Provider

0.7.12

------------------------------------------------------------------------------------

* Add Japanese lorem provider. Thanks richmondwang.
* Add hr_HR names of month and names of days. Thanks mislavcimpersak.
* Add sl_SI names of month and names of days. Thanks mislavcimpersak.
* Update the provider ``user_agent``. Thanks illia-v.
* Add russian words for date_time. Thanks iskhomutov.
* Add Georgian (``ka_GE``) person and address providers. Thanks GeorgeLubaretsi.
* Add company provider to hu_HU locale. Thanks Newman101.
* Allow subdomains for ``domain_name`` provider. Thanks hiagofigueiro.
* Implement hu_HU months + days. Thanks Newman101.
* Replacement rules for emails à->a, è->e in `de_DE` internet provider. Thanks Bergil32.

0.7.11

--------------------------------------------------------------------------------------

* Added french words for days and months. Thanks sblondon.
* Reorganized tests. Thanks grantbachman.
* Added file path provider. Thanks diegommarino.
* Fixed packaging issue with tests module. Thanks eukreign for the report.

0.7.10

-------------------------------------------------------------------------------------

* Add ISBN-10 and ISBN-13. Thanks grantbachman.
* Add colors for `fr_FR`. Thanks sblondon.

0.7.9

--------------------------------------------------------------------------------------

* Fix packaging isssue. Thanks jorti.

0.7.8

--------------------------------------------------------------------------------------

* Add a Russian language to color provider. Thanks kotyara1005.
* Correct UnboundLocalError in Finnish SSN generator. Thanks lamby.
* Create internet IT provider. Thanks GlassGruber.
* Add `fix_len` parameter to 'random_number'. Thanks vlad-ki.
* Support zh_CN lorem. Thanks yihuang.
* Customize chinese word connector. Thanks yihuang.
* Add more company data to `fa_IR`. Thanks aminalaee.
* Python 3.6 support. Thanks stephane.
* Add `hu_HU` providers. Thanks chrisvoncsefalvay.
* Fix tests failures.

0.7.7

--------------------------------------------------------------------------------------

* Fix no_NO postcodes. Thanks kdeldycke.
* Fix fa_IR city generator. Thanks kdeldycke.

0.7.6

--------------------------------------------------------------------------------------

* Fix packaging issue with `docs` directory. Thanks wyattanderson.

0.7.5

--------------------------------------------------------------------------------------

* Deprecate ``facke-factory`` package on PyPI.

0.7.4

--------------------------------------------------------------------------------------

* Add Ukrainian ``address`` provider. Thanks illia-v.
* Add Ukrainian ``internet`` provider. Thanks illia-v.
* Middle name support for ``person.ru_RU`` provider. Thanks zeal18.
* Add ``address``, ``company``, ``internet`` ans ``SSN`` provider for ``ru_RU``. Thanks zeal18.
* Improved ``address.pl_PL`` provider. Thanks pkisztelinski.
* Add date and time object providers. Thanks jtojnar.
* Refactor Korean address methods. Thanks item4.
* Add provider for locale `nl_BE` (address, phone, ssn). Thanks vema.
* Add additional job titles. Thanks wontonst.
* Add Ukrainian color provider. Thanks illia-v.
* Add support to brazilian company IDs (CNPJ). Thanks lamenezes.
* Improve the Internet provider. Thanksillia-v.
* Improve the Ukrainian person provider. Thanks illia-v.
* Improve some SSN providers. Thanks illia-v.
* Improve code samples in `README.rst` and `docs/index.rst`. Thanks illia-v.
* Improve the method `locale`. Thanks illia-v.
* Fix `pyfloat`. Thanks illia-v.
* Allow left/right_digits=0 for pyfloat. Thanks mnalt.
* update fa_IR person names and phone numbers. Thanks aminalaee.

0.7.3

---------------------------------------------------------------------------------------

* ``date_time_this_century`` now returns ``datetime`` s outside the current decade. Thanks JarUrb.
* Add support for localized jobs for ``hr_HR``. Thanks mislavcimpersak.
* Adding support for Croatian ``hr_HR`` ssn (oib). Thanks mislavcimpersak.
* Rename PyPI package to ``Faker``.

0.6.0

-------------------------------------------------------------------------------------

* Dropped Python 2.6 support

0.5.11

---------------------------------------------------------------------------------------

* Add optional parameter `sex` to `profile` and `simple_profile`. Thanks navyad.
* Fix whitespace in dk_DK provider last_names/last_name. Thanks iAndriy.
* Fix utf8 coding issue with ``address/fi_FI`` provider. Thanks delneg.
* ! Latest version to support Python 2.6

0.5.10

--------------------------------------------------------------------------------------

* Fix random_sample_unique. Thanks cecedille1.

0.5.9

----------------------------------------------------------------------------------

* Add more ``pt_BR`` names. Thanks cuducos.
* Added ``en_GB`` names. Thanks jonny5532.
* Add romanized internet provider for ``zh_CN``.
* Add ``fr_CH`` providers. Thanks gfavre.

0.5.8

----------------------------------------------------------------------------------

* Improve CLI output and help. Thanks cbaines.
* Update ``en_US`` anmes to be more realistic. Thanks dethpickle.
* Modify pystr provider to accept a minimum number of characters. Thanks tamarbuta.
* Add `job` Provider for ``zh_TW``. Thanks weihanglo.
* Modify ``zh_TW`` phone number for a more valid format. Thanks weihanglo.
* Reduce the maximum value of start timestamps. Thanks cbaines.
* Add `random_sample` and `random_sample_unique`. Thanks bengolder.

0.5.7

-----------------------------------------------------------------------------------

* Repackage to resolve PyPI issue.

0.5.6

-----------------------------------------------------------------------------------

* Add date handling for datetime functions. Thanks rpkilby.
* Discern male and female first names in pt_BR. Thanks gabrielusvicente.

0.5.5

--------------------------------------------------------------------------------------

* Specify help text for command line. Thanks cbaines.

0.5.4

--------------------------------------------------------------------------------------

* Expose Provider's random instance. Thank gsingers for the suggestion.
* Make sure required characters are in the password. Thanks craig552uk.
* Add ``internet`` and ``job`` Providers for ``fa_IR``. Thanks hamidfzm.
* Correct Poland phone numbers. Thanks fizista.
* Fix brittly tests due to seconds elapsed in-between comparison
* Allow unicode in emails and domains. Thanks zdelagrange for the report.
* Use ``dateutil`` for computing next_month. Thanks mark-love, rshk.
* Fix tests module import. Thanks jorti for the report.
* Handle unexpected length in ``ean()``. Thanks michaelcho.
* Add internet provider for ``ja_JP``. Thanks massa142.
* Add Romanized Japanese person name. Thanks massa142.
* Add tzinfo support to datetime methods. Thanks j0hnsmith.
* Add an 'office' file extensions category. Thanks j0hnsmith.
* Generate name according to profile's sex. Thanks Dutcho for the report.
* Add ``bs_BA`` phone number and internet provider. Thanks elahmo.
* Add a SSN provider for ``zh_CN``. Thanks felixonmars.
* Differentiate male and female first names in ``fr_FR`` locale. Thanks GregoryVds
* Add Maestro credit card. Thanks anthonylauzon.
* Add ``hr_HR`` localization. Thanks mislavcimpersak.
* Update ``de_DE`` first names. Thanks WarrenFaith and mschoebel.
* Allow generation of IPv4 and IPv6 network address with valid CIDR. Thanks kdeldycke.
* Unittest IPv4 and IPv6 address and network generation. Thanks kdeldycke.
* Add a new provider to generate random binary blob. Thanks kdeldycke.
* Check that randomly produced language codes are parseable as locale by the
factory constructor. Thanks kdeldycke.
* Fix chinese random language code. Thanks kdeldycke.
* Remove duplicate words from Lorem provider. Thanks jeffwidman.

0.5.3

---------------------------------------------------------------------------------------

* Added ``company_vat`` to company ``fi_FI`` provider. Thanks kivipe.
* Seed a Random instance instead of the module. Thanks Amy Hanlon.
* Fixed en_GB postcodes to be more realistic. Thanks mapleoin for the report.
* Fixed support for Python 3 in the python provider. Thanks derekjamescurtis.
* Fixed U.S. SSN generation. Thanks jschaf.
* Use environment markers for wheels. Thanks RonnyPfannschmidt
* Fixed Python3 issue in ``pyiterable`` and ``pystruct`` providers. Thanks derekjamescurtis.
* Fixed ``en_GB`` postcodes to be more realistic. Thanks mapleoin.
* Fixed and improved performance of credit card number provider. Thanks 0x000.
* Added Brazilian SSN, aka CPF. Thanks ericchaves.
* Added female and male names for ``fa_IR``. Thanks afshinrodgar.
* Fixed issues with Decimal objects as input to geo_coordinate. Thanks davy.
* Fixed bug for ``center`` set to ``None`` in geo_coordinate. Thanks davy.
* Fixed deprecated image URL placeholder services.
* Fixed provider's example formatting in documentation.
* Added en_AU provider. Thanks xfxf.

0.5.2

----------------------------------------------------------------------------------

* Added ``uuid4`` to ``misc`` provider. Thanks Jared Culp.
* Fixed ``jcb15`` and ``jcb16`` in ``credit_card`` provider. Thanks Rodrigo Braz.
* Fixed CVV and CID code generation in `credit_card` provider. Thanks Kevin Stone.
* Added ``--include`` flag to command line tool. Thanks Flavio Curella.
* Added ``country_code`` to `address`` provider. Thanks elad101 and Tobin Brown.

0.5.1

-------------------------------------------------------------------------------

* Fixed egg installation. Thanks David R. MacIver, kecaps
* Updated person names for ``ru_RU``. Thanks mousebaiker.
* Updated ko_KR locale. Thanks Lee Yeonjae.
* Fixed installation to install importlib on Python 2.6. Thanks Guillaume Thomas.
* Improved tests. Thanks Aarni Koskela, kecaps, kaushal.
* Made Person ``prefixes``/``suffixes`` always return strings. Thanks Aarni Koskela.
* ``pl_PL`` jobs added. Thanks Dariusz Choruży.
* Added ``ja_JP`` provider. Thanks Tatsuji Tsuchiya, Masato Ohba.
* Localized remaining providers for consistency. Thanks Flavio Curella.
* List of providers in compiled on runtime and is not hardcoded anymore. Thanks Flavio Curella.
* Fixed State names in ``en_US``. Thanks Greg Meece.
* Added ``time_delta`` method to ``date_time`` provider. Thanks Tobin Brown.
* Added filename and file extension methods to ``file`` provider. Thanks Tobin Brown.
* Added Finnish ssn (HETU) provider. Thanks kivipe.
* Fixed person names for ``pl_PL``. Thanks Marek Bleschke.
* Added ``sv_SE`` locale providers. Thanks Tome Cvitan.
* ``pt_BR`` Provider: Added ``catch_phrase`` to Company provider and fixed names in Person Provider. Thanks Marcelo Fonseca Tambalo.
* Added ``sk_SK`` localized providers. Thanks viktormaruna.
* Removed ``miscelleneous`` provider. It is superceded by the ``misc`` provider.

0.5.0

-------------------------------------------------------------------------------

* Localized providers
* Updated ``ko_KR`` provider. Thanks Lee Yeonjae.
* Added ``pt_PT`` provider. Thanks João Delgado.
* Fixed mispellings for ``en_US`` company provider. Thanks Greg Meece.
* Added currency provider. Thanks Wiktor Ślęczka
* Ensure choice_distribution always uses floats. Thanks Katy Lavallee.
* Added ``uk_UA`` provider. Thanks Cyril Tarasenko.
* Fixed encoding issues with README, CHANGELOG and setup.py. Thanks Sven-Hendrik Haase.
* Added Turkish person names and phone number patterns. Thanks Murat Çorlu.
* Added ``ne_NP`` provider. Thanks Sudip Kafle.
* Added provider for Austrian ``de_AT``. Thanks Bernhard Essl.

0.4.2

---------------------------------------------------------------------------------

* Fixed setup

0.4.1

-------------------------------------------------------------------------------

* Added MAC address provider. Thanks Sébastien Béal.
* Added ``lt_LT`` and ``lv_LV`` localized providers. Thanks Edgar Gavrik.
* Added ``nl_NL`` localized providers. Thanks LolkeAB, mdxs.
* Added ``bg_BG`` localized providers. Thanks Bret B.
* Added ``sl_SI``. Thanks to janezkranjc
* Added distribution feature. Thanks to fcurella
* Relative date time. Thanks to soobrosa
* Fixed ``date_time_ad`` on 32bit Linux. Thanks mdxs.
* Fixed ``domain_word`` to output slugified strings.

0.4

-----------------------------------------------------------------------------

* Modified en_US ``person.py`` to ouput female and male names. Thanks Adrian Klaver.
* Added SSN provider for ``en_US`` and ``en_CA``. Thanks Scott (milliquet).
* Added ``hi_IN`` localized provider. Thanks Pratik Kabra.
* Refactoring of command line

0.3.2

-------------------

* New provider: Credit card generator
* Improved Documentor

0.3.1

* 1 minor enhancement:
 * Added city to Address

0.3

-----------------

* PEP8 style conversion (old camelCased methods are deprecated!)
* New language: ``pt_BR`` (thanks to rvnovaes)
* all localized provider now uses ``from __future__ import unicode_literals``
* documentor prints localized provider after all defaults
* FIX tests for python 2.6

0.3.0

* 3 major enhancements:
 * Added Lorem to generate fake Latin
 * Added secondary_address to Address, and made inclusion of
 secondary address in street_address optional (false by
 default).
 * Added UK address methods [Caius Durling]

0.2.1

* 1 major enhancement:
 * Dropped facets to avoid conflict with ActiveSupport
* 2 minor enhancements:
 * Changed the output of user_name to randomly separate with a . or _
 * Added a few tests

0.2

-----------------

* New providers: ``Python``, ``File``
* Providers imported with ``__import__``
* Module is runnable with ``python -m faker [name] [*args]``
* Rewrite fake generator system (allow autocompletation)
* New language: French
* Rewrite module ``__main__`` and new Documentor class

0.1

-----------------

* First release


CHANGELOG
=========

0.1.0

* 1 major enhancement:
 * Initial release


\* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
Links

Update flake8-isort from 2.5 to 2.5.

Changelog

2.5

----------------

- Now requires isort >= 4.3.0.
[jleclanche]

2.4

----------------

- Fix input handling with flake8's --stdin-display-name, and simplify it.
[blueyed]

- Remove flake8-polyfill dependency.  flake8 >= 3.2.1 is required already, and
stdin is not read directly anymore.
[blueyed]

2.3

----------------

- Fix typo.
[paltman]

- Add tox.ini and .editorconfig to config search.
[cas--]

- Make this plugin compatible with flake8 hook.
As the hook copies the files out of tree,
flake8-isort never finds the correct configuration.
[jaysonsantos]

2.2.2

------------------

- Workaround for isort bug when skipping files.
[danpalmer]

2.2.1

------------------

- Release as universal wheel.
[gforcada]

2.2

----------------

- Support flake8 git hook.
[sergio-alonso]

- Support python 3.6.
[gforcada]

- Search configuration on home folder.
[gforcada]

2.1.3

------------------

- Fix yet another corner case.
[gforcada]

2.1.2

------------------

- Fix another corner case: ignored files.
[cas--]

2.1.1

------------------

- Fix corner cases of isort: newlines and grouped imports.
[cas--]

2.1.0

------------------

- Show the exact line and kind of error,
rather than a generic message.
[cas--]

2.0.3

------------------

- Update trove classifiers.
[gforcada]

2.0.2

------------------

- Add flake8 classifier.
[sigmavirus24]

- Require flake8 3.2.1.
flake8 series 3.1.x and 3.2.0 where not reporting flake8-isort errors.
[gforcada]

- Test on pypy and pypy3.
[gforcada]

- Fix tests and formatting.
[gforcada]

2.0.1

------------------

- Fix standard input processing.
[carljm]

2.0

----------------

- Refactor code to handle flake8 version 3.
[danpalmer]

- Require flake8 version 3.0.
[gforcada]

1.3

----------------

- Make error messages clearer.
[do3cc]

- Use either pep8 or pycodestyle (new name for pep8).
[Maxim Novikov]

- Fix coveralls.
[gforcada]

1.2

----------------
- Allow stdin processing, this way text editor can pass input to flake8.
[mjacksonw]

1.1.1

------------------
- Silence isort messages.
[gforcada]

- Improve wording.
[gforcada]

1.1

----------------
- Check for isort configuration on setup.cfg as well.
[plumdog]

1.0

----------------
- Check for an isort configuration file.
[gforcada]

0.2

----------------
- Fix entry point.
[gforcada]

0.1.post0

----------------------
- Release wheels as well.
[gforcada]

0.1

----------------
- Initial release
[gforcada]

- Add all boilerplate files.
[gforcada]

- Create the flake8 plugin per se.
[gforcada]
Links

Update isort from 4.3.4 to 4.3.4.

Changelog

4.3.4

- Fixed issue 671: isort is corrupting CRLF files

4.3.3

- Fixed issue 665: Tabs turned into single spaces

4.3.2

- Fixed issue 651: Add imports option is broken
- Fixed issue 662: An error generated by rewriting `.imports` to `. imoprts`

4.3.1

- Fixed setup.py errors
- Fixed issue 654: Trailing comma count error
- Fixed issue 650: Wrong error message displayed

4.3.0

- Fixed 557: `force_alphabetical_sort` and `force_sort_within_sections` can now be utilized together without extra new lines
- Fix case-sensitive path existence check in Mac OS X
- Added `--no-lines-before` for more granular control over section output
- Fixed 493: Unwanted conversion to Windows line endings
- Fixed 590: Import `as` mucks with alphabetical sorting
- Implemented `--version-number` to retrieve just the version number without the isort logo
- Breaking changes
 - Python 2.7+ only (dropped 2.6) allowing various code simplifications and improvements.

4.2.15

IMPORTANT NOTE: This will be the last release with Python 2.6 support, subsequent releases will be 2.7+ only
- Fixed certain one line imports not being successfully wrapped

4.2.14

- Fixed 559 & 565: Added missing standard library imports

4.2.13

- Fixed 553: Check only and --diff now work together again

4.2.12

- Fixed wheel distribution bug

4.2.11

- Fixed 546: Can't select y/n/c after latest update
- Fixed 545: Incorrectly moves __future__ imports above encoding comments

4.2.9

- Fixed 428: Check only modifies sorting
- Fixed 540: Not correctly identifying stdlib modules

4.2.8

- Added `--virtual-env` switch command line option
- Added --enforce-whitespace option to go along with --check-only for more exact checks (issue 423)
- Fixed imports with a tailing '\' and no space in-between getting removed (issue 425)
- Fixed issue 299: long lines occasionally not wrapped
- Fixed issue 432: No longer add import inside class when class starts at top of file after encoding comment
- Fixed issue 440: Added missing `--use-parentheses` option to command line tool and documentation
- Fixed issue 496: import* imports now get successfully identified and reformatted instead of deleted
- Fixed issue 491: Non en

@sliverc sliverc self-requested a review October 26, 2018 08:14
@sliverc sliverc merged commit 56b5fd7 into master Oct 26, 2018
@sliverc sliverc deleted the pyup-initial-update branch October 26, 2018 08:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants