Skip to content

Conversation

@pyup-bot
Copy link

@pyup-bot pyup-bot commented Jan 7, 2017

This is my first visit to this fine repo so I have bundled all updates in a single pull request to make things easier for you to merge.

Close this pull request and delete the branch if you want me to start with single pull requests right away

Here's the executive summary:

Updates

Here's a list of all the updates bundled in this pull request. I've added some links to make it easier for you to find all the information you need.

djangorestframework 3.3.3 » 3.5.3 PyPI | Changelog | Homepage
coverage 4.2 » 4.3.1 PyPI | Changelog | Docs

Changelogs

djangorestframework 3.3.3 -> 3.5.3

3.5.3

Date: [7th November 2016][3.5.3-milestone]

  • Don't raise incorrect FilterSet deprecation warnings. ([4660][gh4660], [4643][gh4643], [4644][gh4644])
  • Schema generation should not raise 404 when a view permission class does. ([4645][gh4645], [4646][gh4646])
  • Add autofocus support for input controls. ([4650][gh4650])

3.5.2

Date: [1st November 2016][3.5.2-milestone]

  • Restore exception tracebacks in Python 2.7. ([4631][gh4631], [4638][gh4638])
  • Properly display dicts in the admin console. ([4532][gh4532], [4636][gh4636])
  • Fix is_simple_callable with variable args, kwargs. ([4622][gh4622], [4602][gh4602])
  • Support 'on'/'off' literals with BooleanField. ([4640][gh4640], [4624][gh4624])
  • Enable cursor pagination of value querysets. ([4569][gh4569])
  • Fix support of get_full_details() for Throttled exceptions. ([4627][gh4627])
  • Fix FilterSet proxy. ([4620][gh4620])
  • Make serializer fields import explicit. ([4628][gh4628])
  • Drop redundant requests adapter. ([4639][gh4639])

3.5.1

Date: [21st October 2016][3.5.1-milestone]

  • Make rest_framework/compat.py imports. ([4612][gh4612], [4608][gh4608], [4601][gh4601])
  • Fix bug in schema base path generation. ([4611][gh4611], [4605][gh4605])
  • Fix broken case of ListSerializer with single item. ([4609][gh4609], [4606][gh4606])
  • Remove bare raise for Python 3.5 compat. ([4600][gh4600])

3.5.0

Date: [20th October 2016][3.5.0-milestone]


3.4.x series

3.4.7

Date: [21st September 2016][3.4.7-milestone]

  • Fallback behavior for request parsing when request.POST already accessed. ([3951][gh3951], [4500][gh4500])
  • Fix regression of RegexField. ([4489][gh4489], [4490][gh4490], [2617][gh2617])
  • Missing comma in admin.html causing CSRF error. ([4472][gh4472], [4473][gh4473])
  • Fix response rendering with empty context. ([4495][gh4495])
  • Fix indentation regression in API listing. ([4493][gh4493])
  • Fixed an issue where the incorrect value is set to ResolverMatch.func_name of api_view decorated view. ([4465][gh4465], [4462][gh4462])
  • Fix APIClient.get() when path contains unicode arguments ([4458][gh4458])

3.4.6

Date: [23rd August 2016][3.4.6-milestone]

  • Fix malformed Javascript in browsable API. ([4435][gh4435])
  • Skip HiddenField from Schema fields. ([4425][gh4425], [4429][gh4429])
  • Improve Create to show the original exception traceback. ([3508][gh3508])
  • Fix AdminRenderer display of PK only related fields. ([4419][gh4419], [4423][gh4423])

3.4.5

Date: [19th August 2016][3.4.5-milestone]

  • Improve debug error handling. ([4416][gh4416], [4409][gh4409])
  • Allow custom CSRF_HEADER_NAME setting. ([4415][gh4415], [4410][gh4410])
  • Include .action attribute on viewsets when generating schemas. ([4408][gh4408], [4398][gh4398])
  • Do not include request.FILES items in request.POST. ([4407][gh4407])
  • Fix rendering of checkbox multiple. ([4403][gh4403])
  • Fix docstring of Field.get_default. ([4404][gh4404])
  • Replace utf8 character with its ascii counterpart in README. ([4412][gh4412])

3.4.4

Date: [12th August 2016][3.4.4-milestone]

  • Ensure views are fully initialized when generating schemas. ([4373][gh4373], [4382][gh4382], [4383][gh4383], [4279][gh4279], [4278][gh4278])
  • Add form field descriptions to schemas. ([4387][gh4387])
  • Fix category generation for schema endpoints. ([4391][gh4391], [4394][gh4394], [4390][gh4390], [4386][gh4386], [4376][gh4376], [4329][gh4329])
  • Don't strip empty query params when paginating. ([4392][gh4392], [4393][gh4393], [4260][gh4260])
  • Do not re-run query for empty results with LimitOffsetPagination. ([4201][gh4201], [4388][gh4388])
  • Stricter type validation for CharField. ([4380][gh4380], [3394][gh3394])
  • RelatedField.choices should preserve non-string values. ([4111][gh4111], [4379][gh4379], [3365][gh3365])
  • Test case for rendering checkboxes in vertical form style. ([4378][gh4378], [3868][gh3868], [3868][gh3868])
  • Show error traceback HTML in browsable API ([4042][gh4042], [4172][gh4172])
  • Fix handling of ALLOWED_VERSIONS and no DEFAULT_VERSION. [4370][gh4370]
  • Allow max_digits=None on DecimalField. ([4377][gh4377], [4372][gh4372])
  • Limit queryset when rendering relational choices. ([4375][gh4375], [4122][gh4122], [3329][gh3329], [3330][gh3330], [3877][gh3877])
  • Resolve form display with ChoiceField, MultipleChoiceField and non-string choices. ([4374][gh4374], [4119][gh4119], [4121][gh4121], [4137][gh4137], [4120][gh4120])
  • Fix call to TemplateHTMLRenderer.resolve_context() fallback method. ([4371][gh4371])

3.4.3

Date: [5th August 2016][3.4.3-milestone]

  • Include fallaback for users of older TemplateHTMLRenderer internal API. ([4361][gh4361])

3.4.2

Date: [5th August 2016][3.4.2-milestone]

  • Include kwargs passed to 'as_view' when generating schemas. ([4359][gh4359], [4330][gh4330], [4331][gh4331])
  • Access request.user.is_authenticated as property not method, under Django 1.10+ ([4358][gh4358], [4354][gh4354])
  • Filter HEAD out from schemas. ([4357][gh4357])
  • extra_kwargs takes precedence over uniqueness kwargs. ([4198][gh4198], [4199][gh4199], [4349][gh4349])
  • Correct descriptions when tabs are used in code indentation. ([4345][gh4345], [4347][gh4347])*
  • Change template context generation in TemplateHTMLRenderer. ([4236][gh4236])
  • Serializer defaults should not be included in partial updates. ([4346][gh4346], [3565][gh3565])
  • Consistent behavior & descriptive error from FileUploadParser when filename not included. ([4340][gh4340], [3610][gh3610], [4292][gh4292], [4296][gh4296])
  • DecimalField quantizes incoming digitals. ([4339][gh4339], [4318][gh4318])
  • Handle non-string input for IP fields. ([4335][gh4335], [4336][gh4336], [4338][gh4338])
  • Fix leading slash handling when Schema generation includes a root URL. ([4332][gh4332])
  • Test cases for DictField with allow_null options. ([4348][gh4348])
  • Update tests from Django 1.10 beta to Django 1.10. ([4344][gh4344])

3.4.1

Date: [28th July 2016][3.4.1-milestone]

  • Added root_renderers argument to DefaultRouter. ([4323][gh4323], [4268][gh4268])
  • Added url and schema_url arguments. ([4321][gh4321], [4308][gh4308], [4305][gh4305])
  • Unique together checks should apply to read-only fields which have a default. ([4316][gh4316], [4294][gh4294])
  • Set view.format_kwarg in schema generator. ([4293][gh4293], [4315][gh4315])
  • Fix schema generator for views with pagination_class = None. ([4314][gh4314], [4289][gh4289])
  • Fix schema generator for views with no get_serializer_class. ([4265][gh4265], [4285][gh4285])
  • Fixes for media type parameters in Accept and Content-Type headers. ([4287][gh4287], [4313][gh4313], [4281][gh4281])
  • Use verbose_name instead of object_name in error messages. ([4299][gh4299])
  • Minor version update to Twitter Bootstrap. ([4307][gh4307])
  • SearchFilter raises error when using with related field. ([4302][gh4302], [4303][gh4303], [4298][gh4298])
  • Adding support for RFC 4918 status codes. ([4291][gh4291])
  • Add LICENSE.md to the built wheel. ([4270][gh4270])
  • Serializing "complex" field returns None instead of the value since 3.4 ([4272][gh4272], [4273][gh4273], [4288][gh4288])

3.4.0

Date: [14th July 2016][3.4.0-milestone]

  • Don't strip microseconds in JSON output. ([4256][gh4256])
  • Two slightly different iso 8601 datetime serialization. ([4255][gh4255])
  • Resolve incorrect inclusion of media type parameters. ([4254][gh4254])
  • Response Content-Type potentially malformed. ([4253][gh4253])
  • Fix setup.py error on some platforms. ([4246][gh4246])
  • Move alternate formats in coreapi into separate packages. ([4244][gh4244])
  • Add localize keyword argument to DecimalField. ([4233][gh4233])
  • Fix issues with routers for custom list-route and detail-routes. ([4229][gh4229])
  • Namespace versioning with nested namespaces. ([4219][gh4219])
  • Robust uniqueness checks. ([4217][gh4217])
  • Minor refactoring of must_call_distinct. ([4215][gh4215])
  • Overridable offset cutoff in CursorPagination. ([4212][gh4212])
  • Pass through strings as-in with date/time fields. ([4196][gh4196])
  • Add test confirming that required=False is valid on a relational field. ([4195][gh4195])
  • In LimitOffsetPagination limit=0 should revert to default limit. ([4194][gh4194])
  • Exclude read_only=True fields from unique_together validation & add docs. ([4192][gh4192])
  • Handle bytestrings in JSON. ([4191][gh4191])
  • JSONField(binary=True) represents using binary strings, which JSONRenderer does not support. ([4187][gh4187])
  • JSONField(binary=True) represents using binary strings, which JSONRenderer does not support. ([4185][gh4185])
  • More robust form rendering in the browsable API. ([4181][gh4181])
  • Empty cases of .validated_data and .errors as lists not dicts for ListSerializer. ([4180][gh4180])
  • Schemas & client libraries. ([4179][gh4179])
  • Removed AUTH_USER_MODEL compat property. ([4176][gh4176])
  • Clean up existing deprecation warnings. ([4166][gh4166])
  • Django 1.10 support. ([4158][gh4158])
  • Updated jQuery version to 1.12.4. ([4157][gh4157])
  • More robust default behavior on OrderingFilter. ([4156][gh4156])
  • description.py codes and tests removal. ([4153][gh4153])
  • Wrap guardian.VERSION in tuple. ([4149][gh4149])
  • Refine validator for fields with <source=> kwargs. ([4146][gh4146])
  • Fix None values representation in childs of ListField, DictField. ([4118][gh4118])
  • Resolve TimeField representation for midnight value. ([4107][gh4107])
  • Set proper status code in AdminRenderer for the redirection after POST/DELETE requests. ([4106][gh4106])
  • TimeField render returns None instead of 00:00:00. ([4105][gh4105])
  • Fix incorrectly named zh-hans and zh-hant locale path. ([4103][gh4103])
  • Prevent raising exception when limit is 0. ([4098][gh4098])
  • TokenAuthentication: Allow custom keyword in the header. ([4097][gh4097])
  • Handle incorrectly padded HTTP basic auth header. ([4090][gh4090])
  • LimitOffset pagination crashes Browseable API when limit=0. ([4079][gh4079])
  • Fixed DecimalField arbitrary precision support. ([4075][gh4075])
  • Added support for custom CSRF cookie names. ([4049][gh4049])
  • Fix regression introduced by 4035. ([4041][gh4041])
  • No auth view failing permission should raise 403. ([4040][gh4040])
  • Fix string_types / text_types confusion. ([4025][gh4025])
  • Do not list related field choices in OPTIONS requests. ([4021][gh4021])
  • Fix typo. ([4008][gh4008])
  • Reorder initializing the view. ([4006][gh4006])
  • Type error in DjangoObjectPermissionsFilter on Python 3.4. ([4005][gh4005])
  • Fixed use of deprecated Query.aggregates. ([4003][gh4003])
  • Fix blank lines around docstrings. ([4002][gh4002])
  • Fixed admin pagination when limit is 0. ([3990][gh3990])
  • OrderingFilter adjustements. ([3983][gh3983])
  • Non-required serializer related fields. ([3976][gh3976])
  • Using safer calling way of "api_view" in tutorial. ([3971][gh3971])
  • ListSerializer doesn't handle unique_together constraints. ([3970][gh3970])
  • Add missing migration file. ([3968][gh3968])
  • OrderingFilter should call get_serializer_class() to determine default fields. ([3964][gh3964])
  • Remove old django checks from tests and compat. ([3953][gh3953])
  • Support callable as the value of initial for any serializer.Field. ([3943][gh3943])
  • Prevented unnecessary distinct() call in SearchFilter. ([3938][gh3938])
  • Fix None UUID ForeignKey serialization. ([3936][gh3936])
  • Drop EOL Django 1.7. ([3933][gh3933])
  • Add missing space in serializer error message. ([3926][gh3926])
  • Fixed _force_text_recursive typo. ([3908][gh3908])
  • Attempt to address Django 2.0 deprecate warnings related to field.rel. ([3906][gh3906])
  • Fix parsing multipart data using a nested serializer with list. ([3820][gh3820])
  • Resolving APIs URL to different namespaces. ([3816][gh3816])
  • Do not HTML-escape help_text in Browsable API forms. ([3812][gh3812])
  • OPTIONS fetches and shows all possible foreign keys in choices field. ([3751][gh3751])
  • Django 1.9 deprecation warnings ([3729][gh3729])
  • Test case for 3598 ([3710][gh3710])
  • Adding support for multiple values for search filter. ([3541][gh3541])
  • Use get_serializer_class in ordering filter. ([3487][gh3487])
  • Serializers with many=True should return empty list rather than empty dict. ([3476][gh3476])
  • LimitOffsetPagination limit=0 fix. ([3444][gh3444])
  • Enable Validators to defer string evaluation and handle new string format. ([3438][gh3438])
  • Unique validator is executed and breaks if field is invalid. ([3381][gh3381])
  • Do not ignore overridden View.get_view_name() in breadcrumbs. ([3273][gh3273])
  • Retry form rendering when rendering with serializer fails. ([3164][gh3164])
  • Unique constraint prevents nested serializers from updating. ([2996][gh2996])
  • Uniqueness validators should not be run for excluded (read_only) fields. ([2848][gh2848])
  • UniqueValidator raises exception for nested objects. ([2403][gh2403])
  • lookup_type is deprecated in favor of lookup_expr. ([4259][gh4259])

3.3.x series

coverage 4.2 -> 4.3.1

4.3.1


  • Some environments couldn't install 4.3, as described in issue 540_. This is
    now fixed.
  • The check for conflicting --source and --include was too simple in a
    few different ways, breaking a few perfectly reasonable use cases, described
    in issue 541. The check has been reverted while we re-think the fix for
    issue 265
    .

.. _issue 540: https://bitbucket.org/ned/coveragepy/issues/540/cant-install-coverage-v43-into-under
.. _issue 541: https://bitbucket.org/ned/coveragepy/issues/541/coverage-43-breaks-nosetest-with-coverage

4.3


  • Subprocesses that are measured with automatic subprocess measurement_ used
    to read in any pre-existing data file. This meant data would be incorrectly
    carried forward from run to run. Now those files are not read, so each
    subprocess only writes its own data. Fixes issue 510_.
  • The coverage combine command will now fail if there are no data files to
    combine. The combine changes in 4.2 meant that multiple combines could lose
    data, leaving you with an empty .coverage data file. Fixes issues
    issue 525, issue 412, issue 516, and probably issue 511.
  • Coverage.py wouldn't execute sys.excepthook_ when an exception happened in
    your program. Now it does, thanks to Andrew Hoos. Closes issue 535_.

.. _sys.excepthook: https://docs.python.org/3/library/sys.htmlsys.excepthook

  • Branch coverage fixes:
  • Branch coverage could misunderstand a finally clause on a try block that
    never continued on to the following statement, as described in issue 493_. This is now fixed. Thanks to Joe Doherty for the report and Loïc
    Dachary for the fix.
  • A while loop with a constant condition (while True) and a continue
    statement would be mis-analyzed, as described in issue 496_. This is now
    fixed, thanks to a bug report by Eli Skeggs and a fix by Loïc Dachary.
  • While loops with constant conditions that were never executed could result
    in a non-zero coverage report. Artem Dayneko reported this in issue 502_, and Loïc Dachary provided the fix.
  • The HTML report now supports a --skip-covered option like the other
    reporting commands. Thanks, Loïc Dachary for the implementation, closing
    issue 433_.
  • Options can now be read from a tox.ini file, if any. Like setup.cfg, sections
    are prefixed with "coverage:", so [run] options will be read from the
    [coverage:run] section of tox.ini. Implements part of issue 519_.
    Thanks, Stephen Finucane.
  • Specifying both --source and --include no longer silently ignores the
    include setting, instead it fails with a message. Thanks, Nathan Land and
    Loïc Dachary. Closes issue 265_.
  • The Coverage.combine method has a new parameter, strict=False, to
    support failing if there are no data files to combine.
  • When forking subprocesses, the coverage data files would have the same random
    number appended to the file name. This didn't cause problems, because the
    file names had the process id also, making collisions (nearly) impossible.
    But it was disconcerting. This is now fixed.
  • The text report now properly sizes headers when skipping some files, fixing
    issue 524_. Thanks, Anthony Sottile and Loïc Dachary.
  • Coverage.py can now search .pex files for source, just as it can .zip and
    .egg. Thanks, Peter Ebden.
  • Data files are now about 15% smaller.
  • Improvements in the [run] debug setting:
  • The "dataio" debug setting now also logs when data files are deleted during
    combining or erasing.
  • A new debug option, "multiproc", for logging the behavior of
    concurrency=multiprocessing.
  • If you used the debug options "config" and "callers" together, you'd get a
    call stack printed for every line in the multi-line config output. This is
    now fixed.
  • Fixed an unusual bug involving multiple coding declarations affecting code
    containing code in multi-line strings: issue 529_.
  • Coverage.py will no longer be misled into thinking that a plain file is a
    package when interpreting --source options. Thanks, Cosimo Lupo.
  • If you try to run a non-Python file with coverage.py, you will now get a more
    useful error message. Issue 514_.
  • The default pragma regex changed slightly, but this will only matter to you
    if you are deranged and use mixed-case pragmas.
  • Deal properly with non-ASCII file names in an ASCII-only world, issue 533_.
  • Programs that set Unicode configuration values could cause UnicodeErrors when
    generating HTML reports. Pytest-cov is one example. This is now fixed.
  • Prevented deprecation warnings from configparser that happened in some
    circumstances, closing issue 530_.
  • Corrected the name of the jquery.ba-throttle-debounce.js library. Thanks,
    Ben Finney. Closes issue 505_.
  • Testing against PyPy 5.6 and PyPy3 5.5.
  • Switched to pytest from nose for running the coverage.py tests.
  • Renamed AUTHORS.txt to CONTRIBUTORS.txt, since there are other ways to
    contribute than by writing code. Also put the count of contributors into the
    author string in setup.py, though this might be too cute.

.. _issue 265: https://bitbucket.org/ned/coveragepy/issues/265/when-using-source-include-is-silently
.. _issue 412: https://bitbucket.org/ned/coveragepy/issues/412/coverage-combine-should-error-if-no
.. _issue 433: https://bitbucket.org/ned/coveragepy/issues/433/coverage-html-does-not-suport-skip-covered
.. _issue 493: https://bitbucket.org/ned/coveragepy/issues/493/confusing-branching-failure
.. _issue 496: https://bitbucket.org/ned/coveragepy/issues/496/incorrect-coverage-with-branching-and
.. _issue 502: https://bitbucket.org/ned/coveragepy/issues/502/incorrect-coverage-report-with-cover
.. _issue 505: https://bitbucket.org/ned/coveragepy/issues/505/use-canonical-filename-for-debounce
.. _issue 514: https://bitbucket.org/ned/coveragepy/issues/514/path-to-problem-file-not-reported-when
.. _issue 510: https://bitbucket.org/ned/coveragepy/issues/510/erase-still-needed-in-42
.. _issue 511: https://bitbucket.org/ned/coveragepy/issues/511/version-42-coverage-combine-empties
.. _issue 516: https://bitbucket.org/ned/coveragepy/issues/516/running-coverage-combine-twice-deletes-all
.. _issue 519: https://bitbucket.org/ned/coveragepy/issues/519/coverage-run-sections-in-toxini-or-as
.. _issue 524: https://bitbucket.org/ned/coveragepy/issues/524/coverage-report-with-skip-covered-column
.. _issue 525: https://bitbucket.org/ned/coveragepy/issues/525/coverage-combine-when-not-in-parallel-mode
.. _issue 529: https://bitbucket.org/ned/coveragepy/issues/529/encoding-marker-may-only-appear-on-the
.. _issue 530: https://bitbucket.org/ned/coveragepy/issues/530/deprecationwarning-you-passed-a-bytestring
.. _issue 533: https://bitbucket.org/ned/coveragepy/issues/533/exception-on-unencodable-file-name
.. _issue 535: https://bitbucket.org/ned/coveragepy/issues/535/sysexcepthook-is-not-called

Once you have closed this pull request, I'll create seperate pull requests for every update as soon as I find them.

That's it for now!

Happy merging! 🤖

@codecov-io
Copy link

codecov-io commented Jan 7, 2017

Current coverage is 40.78% (diff: 100%)

Merging #1 into master will not change coverage

@@             master         #1   diff @@
==========================================
  Files             7          7          
  Lines            76         76          
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
  Hits             31         31          
  Misses           45         45          
  Partials          0          0          

Powered by Codecov. Last update 5b3cdc4...bbdcbd7

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.

3 participants