Skip to content

update from RF Core - #1

Merged
leeuwe merged 36 commits into
leeuwe:masterfrom
robotframework:master
Jul 21, 2022
Merged

leeuwe merged 36 commits into
leeuwe:masterfrom
robotframework:master

Conversation

@leeuwe

@leeuwe leeuwe commented Jul 21, 2022

Copy link
Copy Markdown
Owner

No description provided.

pekkaklarck and others added 30 commits July 12, 2022 14:51
Part of Python 3.11 compatibility. #4401
Filter away new `^^^` lines showing where the error occurred.
Python 3.11 changed `typing.get_type_hints` so that `None` isn't
anymore added to returned types automatically if an argument has
`None` as a default value. That changed our argument conversion logic
so that if you have an argument like `arg: str = None` and pass it a
`None` object, it isn't passed as-is but instead converted to a string
`None`. Argument conversion depending on Python versions wouldn't be
great, so this commit changes the logic so that `None` is never
converted if an argument has `None` as a default.

The same change also changed how types are shown by Libdoc. Earlier
`arg: str = None` was shown as `arg: str | None = None`, but nowadays
it's just `arg: str = None`. I prefer the new formatting and just
updated tests so that they expect that if Python 3.11+.

This is part of Python 3.11 compatibility. #4401
- Run PRs against Python 3.6 and 3.10 instead of Python 3.6 and 3.9.
- Use Python 3.10 as the "runner side" Python with acceptance tests.
- Run tests also against Python 3.11. #4401
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 4.0.0 to 4.1.0.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](actions/setup-python@v4.0.0...v4.1.0)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
These fail on CI with Python 3.11 due to `^^^` lines it adds to
tracebacks. It's strange same tests pass locally but hopefully
filtering those lines fixes tests on CI as well.

Part of #4401.
This test fails on CI with Python 3.11 due to `^^^` lines it adds to
tracebacks. It's strange it passes locally, but hopefully filtering
those lines fixes it on CI like it has fixed other similar tests.

Part of #4401.
Too many dependencies we need seem to be unavailable at the moment.
Makes it possible to have translation like `Casos de Teste` instead of
requiring apparently improper `Casos De Teste`. See PR #4396.

Using the proper format in the original language definition makes it
possible for other tools to use that format as well.
- f-strings
- Note to Get From Dictionary that `default` is new in RF 5.1.
- FIXME for a bug
Our is_dict_like didn't recognize it but registing it explicitly as a
Mapping avoids that problem.
- PT by @HelioGuilherme66 
- BT-BR by @HelioGuilherme66 
- DE by @Snooz82 and @Noordsestern
- NL by @Heatzone87 and @leeuwe
- CS by @MoreFamed
- FR
- Fix syntax
- Change Finnish teardown from "Purku" to "Alasajo"
- Test for Finnish "Metatiedot"
pekkaklarck and others added 6 commits July 18, 2022 10:37
This was already done with settings earlier but now also header and
BDD prefix translations can be specified in any case. Fixes #4411.
- Expose `Language` via `robot.api`.
- Add `Language.from_name` for getting language instances.
- Enhance `--language` option to works with language full names in
  docstrings
- Enhance `--language` to ignore `-` to support e.g. `PT-BR`.
@leeuwe
leeuwe merged commit 3cd1031 into leeuwe:master Jul 21, 2022
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.

6 participants