Skip to content
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

⬆️(project) upgrade python dependencies #48

Merged
merged 2 commits into from
May 14, 2024

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented May 13, 2024

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
csvkit ==1.5.0 -> ==2.0.0 age adoption passing confidence
fastapi ==0.110.2 -> ==0.111.0 age adoption passing confidence
polyfactory (changelog) ==2.15.0 -> ==2.16.0 age adoption passing confidence
pytest (changelog) ==8.1.1 -> ==8.2.0 age adoption passing confidence
ruff (source, changelog) ==0.4.3 -> ==0.4.4 age adoption passing confidence

Release Notes

wireservice/csvkit (csvkit)

v2.0.0

Compare Source

This is the first major release since December 27, 2016. Thank you to all :ref:contributors<authors>, including 44 new contributors since 1.0.0!

Want to use csvkit programmatically? Check out agate <https://agate.readthedocs.io/en/latest/>__, used internally by csvkit.

BACKWARDS-INCOMPATIBLE CHANGES:

  • :doc:/scripts/csvclean now writes its output to standard output and its errors to standard error, instead of to basename_out.csv and basename_err.csv files. Consequently:

    • The :code:--dry-run option is removed. The :code:--dry-run option changed error output from the CSV format used in basename_err.csv files to a prosaic format like Line 1: Expected 2 columns, found 3 columns.
    • Summary information like No errors., 42 errors logged to basename_err.csv and 42 rows were joined/reduced to 24 rows after eliminating expected internal line breaks. is not written.
  • :doc:/scripts/csvclean no longer reports or fixes errors by default; it errors if no checks or fixes are enabled. Opt in to the original behavior using the :code:--length-mismatch and :code:--join-short-rows options. See new options below.

  • :doc:/scripts/csvclean no longer omits rows with errors from the output. Opt in to the original behavior using the :code:--omit-error-rows option.

  • :doc:/scripts/csvclean joins short rows using a newline by default, instead of a space. Restore the original behavior using the :code:--separator " " option.

In brief, to restore the original behavior for :doc:/scripts/csvclean:

.. code-block:: bash

csvclean --length-mismatch --omit-error-rows --join-short-rows --separator " " myfile.csv

Other changes:

  • feat: :doc:/scripts/csvclean adds the options:

    • :code:--length-mismatch, to error on data rows that are shorter or longer than the header row
    • :code:--empty-columns, to error on empty columns
    • :code:--enable-all-checks, to enable all error reporting
    • :code:--omit-error-rows, to omit data rows that contain errors, from standard output
    • :code:--label LABEL, to add a "label" column to standard error
    • :code:--header-normalize-space, to strip leading and trailing whitespace and replace sequences of whitespace characters by a single space in the header
    • :code:--join-short-rows, to merge short rows into a single row
    • :code:--separator SEPARATOR, to change the string with which to join short rows (default is newline)
    • :code:--fill-short-rows, to fill short rows with the missing cells
    • :code:--fillvalue FILLVALUE, to change the value with which to fill short rows (default is none)
  • feat: The :code:--quoting option accepts 4 (csv.QUOTE_STRINGS <https://docs.python.org/3/library/csv.html#csv.QUOTE_STRINGS>) and 5 (csv.QUOTE_NOTNULL <https://docs.python.org/3/library/csv.html#csv.QUOTE_NOTNULL>) on Python 3.12.

  • feat: :doc:/scripts/csvformat: The :code:--out-quoting option accepts 4 (csv.QUOTE_STRINGS <https://docs.python.org/3/library/csv.html#csv.QUOTE_STRINGS>) and 5 (csv.QUOTE_NOTNULL <https://docs.python.org/3/library/csv.html#csv.QUOTE_NOTNULL>) on Python 3.12.

  • fix: :doc:/scripts/csvformat: The :code:--out-quoting option works with 2 (csv.QUOTE_NONUMERIC <https://docs.python.org/3/library/csv.html#csv.QUOTE_NOTNUMERIC>__). Use the :code:--locale option to set the locale of any formatted numbers.

  • fix: :doc:/scripts/csvclean: The :code:--join-short-rows option no longer reports length mismatch errors that were fixed.

tiangolo/fastapi (fastapi)

v0.111.0

Compare Source

Features

Try it out with:

$ pip install --upgrade fastapi

$ fastapi dev main.py

 ╭────────── FastAPI CLI - Development mode ───────────╮
 │                                                     │
 │  Serving at: http://127.0.0.1:8000                  │
 │                                                     │
 │  API docs: http://127.0.0.1:8000/docs               │
 │                                                     │
 │  Running in development mode, for production use:   │
 │                                                     │
 │  fastapi run                                        │
 │                                                     │
 ╰─────────────────────────────────────────────────────╯

INFO:     Will watch for changes in these directories: ['/home/user/code/awesomeapp']
INFO:     Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)
INFO:     Started reloader process [2248755] using WatchFiles
INFO:     Started server process [2248757]
INFO:     Waiting for application startup.
INFO:     Application startup complete.
Refactors
  • 🔧 Add configs and setup for fastapi-slim including optional extras fastapi-slim[standard], and fastapi including by default the same standard extras. PR #​11503 by @​tiangolo.

v0.110.3

Compare Source

Latest Changes

Docs
Translations
  • 🌐 Add Traditional Chinese translation for docs/zh-hant/benchmarks.md. PR #​11484 by @​KNChiu.
  • 🌐 Update Chinese translation for docs/zh/docs/fastapi-people.md. PR #​11476 by @​billzhong.
  • 🌐 Add Chinese translation for docs/zh/docs/how-to/index.md and docs/zh/docs/how-to/general.md. PR #​11443 by @​billzhong.
  • 🌐 Add Spanish translation for cookie-params docs/es/docs/tutorial/cookie-params.md. PR #​11410 by @​fabianfalon.
Internal
litestar-org/polyfactory (polyfactory)

v2.16.0

Compare Source

Sponsors 🌟

Thanks to these incredible business sponsors:

Scalar (@​scalar), Telemetry Sports (via @​chris-telemetry), Stok (@​stok-team)

A huge 'Thank you!' to all other sponsors across Polar.sh, OpenCollective and GitHub Sponsors!

What's Changed

New Contributors
Fixes 🔧
New Features 🚀
Docs 📚
Infra 🚆

Full Changelog: litestar-org/polyfactory@v2.15.0...v2.16.0

pytest-dev/pytest (pytest)

v8.2.0

Compare Source

pytest 8.2.0 (2024-04-27)

Deprecations

  • #​12069: A deprecation warning is now raised when implementations of one of the following hooks request a deprecated py.path.local parameter instead of the pathlib.Path parameter which replaced it:

    • pytest_ignore_collect{.interpreted-text role="hook"} - the path parameter - use collection_path instead.
    • pytest_collect_file{.interpreted-text role="hook"} - the path parameter - use file_path instead.
    • pytest_pycollect_makemodule{.interpreted-text role="hook"} - the path parameter - use module_path instead.
    • pytest_report_header{.interpreted-text role="hook"} - the startdir parameter - use start_path instead.
    • pytest_report_collectionfinish{.interpreted-text role="hook"} - the startdir parameter - use start_path instead.

    The replacement parameters are available since pytest 7.0.0.
    The old parameters will be removed in pytest 9.0.0.

    See legacy-path-hooks-deprecated{.interpreted-text role="ref"} for more details.

Features

  • #​11871: Added support for reading command line arguments from a file using the prefix character @, like e.g.: pytest @&#8203;tests.txt. The file must have one argument per line.

    See Read arguments from file <args-from-file>{.interpreted-text role="ref"} for details.

Improvements

  • #​11523: pytest.importorskip{.interpreted-text role="func"} will now issue a warning if the module could be found, but raised ImportError{.interpreted-text role="class"} instead of ModuleNotFoundError{.interpreted-text role="class"}.

    The warning can be suppressed by passing exc_type=ImportError to pytest.importorskip{.interpreted-text role="func"}.

    See import-or-skip-import-error{.interpreted-text role="ref"} for details.

  • #​11728: For unittest-based tests, exceptions during class cleanup (as raised by functions registered with TestCase.addClassCleanup <unittest.TestCase.addClassCleanup>{.interpreted-text role="meth"}) are now reported instead of silently failing.

  • #​11777: Text is no longer truncated in the short test summary info section when -vv is given.

  • #​12112: Improved namespace packages detection when consider_namespace_packages{.interpreted-text role="confval"} is enabled, covering more situations (like editable installs).

  • #​9502: Added PYTEST_VERSION{.interpreted-text role="envvar"} environment variable which is defined at the start of the pytest session and undefined afterwards. It contains the value of pytest.__version__, and among other things can be used to easily check if code is running from within a pytest run.

Bug Fixes

  • #​12065: Fixed a regression in pytest 8.0.0 where test classes containing setup_method and tests using @staticmethod or @classmethod would crash with AttributeError: 'NoneType' object has no attribute 'setup_method'.

    Now the request.instance <pytest.FixtureRequest.instance>{.interpreted-text role="attr"} attribute of tests using @staticmethod and @classmethod is no longer None, but a fresh instance of the class, like in non-static methods.
    Previously it was None, and all fixtures of such tests would share a single self.

  • #​12135: Fixed issue where fixtures adding their finalizer multiple times to fixtures they request would cause unreliable and non-intuitive teardown ordering in some instances.

  • #​12194: Fixed a bug with --importmode=importlib and --doctest-modules where child modules did not appear as attributes in parent modules.

  • #​1489: Fixed some instances where teardown of higher-scoped fixtures was not happening in the reverse order they were initialized in.

Trivial/Internal Changes

  • #​12069: pluggy>=1.5.0 is now required.
  • #​12167: cache <cache>{.interpreted-text role="ref"}: create supporting files (CACHEDIR.TAG, .gitignore, etc.) in a temporary directory to provide atomic semantics.

v8.1.2

Compare Source

pytest 8.1.2 (2024-04-26)

Bug Fixes

  • #​12114: Fixed error in pytest.approx{.interpreted-text role="func"} when used with [numpy]{.title-ref} arrays and comparing with other types.
astral-sh/ruff (ruff)

v0.4.4

Compare Source

Preview features
  • [pycodestyle] Ignore end-of-line comments when determining blank line rules (#​11342)
  • [pylint] Detect pathlib.Path.open calls in unspecified-encoding (PLW1514) (#​11288)
  • [flake8-pyi] Implement PYI059 (generic-not-last-base-class) (#​11233)
  • [flake8-pyi] Implement PYI062 (duplicate-literal-member) (#​11269)
Rule changes
  • [flake8-boolean-trap] Allow passing booleans as positional-only arguments in code such as set(True) (#​11287)
  • [flake8-bugbear] Ignore enum classes in cached-instance-method (B019) (#​11312)
Server
  • Expand tildes when resolving Ruff server configuration file (#​11283)
  • Fix ruff server hanging after Neovim closes (#​11291)
  • Editor settings are used by default if no file-based configuration exists (#​11266)
Bug fixes
  • [pylint] Consider with statements for too-many-branches (PLR0912) (#​11321)
  • [flake8-blind-except, tryceratops] Respect logged and re-raised expressions in nested statements (BLE001, TRY201) (#​11301)
  • Recognise assignments such as __all__ = builtins.list(["foo", "bar"]) as valid __all__ definitions (#​11335)

Configuration

📅 Schedule: Branch creation - "before 7am on monday" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot force-pushed the renovate/python-dependencies branch from 7bd79eb to 93dc6a4 Compare May 13, 2024 19:18
@jmaupetit jmaupetit self-assigned this May 14, 2024
@renovate renovate bot force-pushed the renovate/python-dependencies branch from 93dc6a4 to 8cb4520 Compare May 14, 2024 12:58
| datasource | package     | from    | to      |
| ---------- | ----------- | ------- | ------- |
| pypi       | csvkit      | 1.5.0   | 2.0.0   |
| pypi       | fastapi     | 0.110.2 | 0.111.0 |
| pypi       | polyfactory | 2.15.0  | 2.16.0  |
| pypi       | pytest      | 8.1.1   | 8.2.0   |
| pypi       | ruff        | 0.4.3   | 0.4.4   |
@renovate renovate bot force-pushed the renovate/python-dependencies branch from 8cb4520 to d8463fd Compare May 14, 2024 13:00
@jmaupetit jmaupetit merged commit 1658e44 into main May 14, 2024
8 checks passed
@jmaupetit jmaupetit deleted the renovate/python-dependencies branch May 14, 2024 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant