Skip to content

Commit

Permalink
Bump strawberry-graphql from 0.254.1 to 0.256.0 in /07_uns_graphql (#…
Browse files Browse the repository at this point in the history
…1420)

Bumps
[strawberry-graphql](https://github.com/strawberry-graphql/strawberry)
from 0.254.1 to 0.256.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/strawberry-graphql/strawberry/releases">strawberry-graphql's
releases</a>.</em></p>
<blockquote>
<h2>🍓 0.256.0</h2>
<p>This release drops support for Python 3.8, which reached its
end-of-life (EOL)
in October 2024. The minimum supported Python version is now 3.9.</p>
<p>We strongly recommend upgrading to Python 3.9 or a newer version, as
older
versions are no longer maintained and may contain security
vulnerabilities.</p>
<p>Releases contributed by <a
href="https://github.com/bellini666"><code>@​bellini666</code></a> via
<a
href="https://redirect.github.com/strawberry-graphql/strawberry/issues/3730">#3730</a></p>
<h2>🍓 0.255.0</h2>
<p>This release adds support for making Relay connection optional, this
is useful
when you want to add permission classes to the connection and not fail
the whole
query if the user doesn't have permission to access the connection.</p>
<p>Example:</p>
<pre lang="python"><code>import strawberry
from strawberry import relay
from strawberry.permission import BasePermission
<p>class IsAuthenticated(BasePermission):
message = &quot;User is not authenticated&quot;</p>
<pre><code># This method can also be async!
def has_permission(
    self, source: typing.Any, info: strawberry.Info, **kwargs
) -&amp;gt; bool:
    return False
</code></pre>
<p><a
href="https://github.com/strawberry"><code>@​strawberry</code></a>.type
class Fruit(relay.Node):
code: relay.NodeID[int]
name: str
weight: float</p>
<pre><code>@classmethod
def resolve_nodes(
    cls,
    *,
    info: strawberry.Info,
    node_ids: Iterable[str],
):
    return []
</code></pre>
<p><a
href="https://github.com/strawberry"><code>@​strawberry</code></a>.type
class Query:
&lt;/tr&gt;&lt;/table&gt;
</code></pre></p>
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/strawberry-graphql/strawberry/blob/main/CHANGELOG.md">strawberry-graphql's
changelog</a>.</em></p>
<blockquote>
<h2>0.256.0 - 2024-12-21</h2>
<p>This release drops support for Python 3.8, which reached its
end-of-life (EOL)
in October 2024. The minimum supported Python version is now 3.9.</p>
<p>We strongly recommend upgrading to Python 3.9 or a newer version, as
older
versions are no longer maintained and may contain security
vulnerabilities.</p>
<p>Contributed by <a href="https://github.com/bellini666">Thiago Bellini
Ribeiro</a> via [PR <a
href="https://redirect.github.com/strawberry-graphql/strawberry/issues/3730">#3730</a>](<a
href="https://redirect.github.com/strawberry-graphql/strawberry/pull/3730/">strawberry-graphql/strawberry#3730</a>)</p>
<h2>0.255.0 - 2024-12-20</h2>
<p>This release adds support for making Relay connection optional, this
is useful
when you want to add permission classes to the connection and not fail
the whole
query if the user doesn't have permission to access the connection.</p>
<p>Example:</p>
<pre lang="python"><code>import strawberry
from strawberry import relay
from strawberry.permission import BasePermission
<p>class IsAuthenticated(BasePermission):
message = &quot;User is not authenticated&quot;</p>
<pre><code># This method can also be async!
def has_permission(
    self, source: typing.Any, info: strawberry.Info, **kwargs
) -&amp;gt; bool:
    return False
</code></pre>
<p><a
href="https://github.com/strawberry"><code>@​strawberry</code></a>.type
class Fruit(relay.Node):
code: relay.NodeID[int]
name: str
weight: float</p>
<pre><code>@classmethod
def resolve_nodes(
    cls,
    *,
    info: strawberry.Info,
    node_ids: Iterable[str],
):
</code></pre>
<p>&lt;/tr&gt;&lt;/table&gt;
</code></pre></p>
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/strawberry-graphql/strawberry/commit/d9831309371a655b0ae244ba12e1b875a8dfff3e"><code>d983130</code></a>
Release 🍓 0.256.0</li>
<li><a
href="https://github.com/strawberry-graphql/strawberry/commit/5c6f3670df90f460d6a183cb9495dff150656412"><code>5c6f367</code></a>
feat: drop support for Python 3.8 (<a
href="https://redirect.github.com/strawberry-graphql/strawberry/issues/3730">#3730</a>)</li>
<li><a
href="https://github.com/strawberry-graphql/strawberry/commit/0981661d0f3480372018a5d42cf65daa98b617a5"><code>0981661</code></a>
Release 🍓 0.255.0</li>
<li><a
href="https://github.com/strawberry-graphql/strawberry/commit/8a8e3aa8de30ed09ce108d59bdbd851dfc8390fd"><code>8a8e3aa</code></a>
Add support for optional connections (<a
href="https://redirect.github.com/strawberry-graphql/strawberry/issues/3707">#3707</a>)</li>
<li>See full diff in <a
href="https://github.com/strawberry-graphql/strawberry/compare/0.254.1...0.256.0">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=strawberry-graphql&package-manager=pip&previous-version=0.254.1&new-version=0.256.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
dependabot[bot] authored Dec 23, 2024
1 parent 915c437 commit d1587f6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
19 changes: 11 additions & 8 deletions 07_uns_graphql/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions 07_uns_graphql/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ packages = [{ include = "uns_graphql", from = "src" }]
python = "^3.12"
logger = "^1.4"
dynaconf = "^3.2.4"
strawberry-graphql = { version = "^0.254", extras = ["fastapi", "cli"] }
strawberry-graphql = { version = "^0.256", extras = ["fastapi", "cli"] }
aiohttp = "^3.11"
uvicorn = { version = "^0.34", extras = ["standard"] }
aiomqtt = "^2.2.0"
Expand All @@ -39,7 +39,7 @@ psutil = "^6.1.1"
uns-mqtt = { path = "../02_mqtt-cluster", develop = true }

[tool.poetry.group.test.dependencies]
strawberry-graphql = { version = "^0.254", extras = ["debug-server"] }
strawberry-graphql = { version = "^0.256", extras = ["debug-server"] }
pytest = "^8.3.4"
pytest-xdist = { version="^3.6.1",extras =["psutil2"]}
pytest-asyncio = "^0.25"
Expand Down

0 comments on commit d1587f6

Please sign in to comment.