Commit Graph
145 Commits
Author SHA1 Message Date
Erik Vroon a1f850f8d6 Group teams by stage items (#710) 2024-05-07 22:12:10 +02:00
Erik Vroon 0e4df8dcb5 Handle foreign key on stage items (#701)
fix https://github.com/evroon/bracket/issues/629
2024-05-05 10:50:09 +02:00
Danny Piper 05891698d6 Expose port 8400 in backend Dockerfile (#671) 2024-05-03 19:59:05 +02:00
dependabot[bot] ca8a240379 Update pytest requirement from <=8.1.1 to <=8.2.0 in /backend (#669)
Updates the requirements on
[pytest](https://github.com/pytest-dev/pytest) to permit the latest
version.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/pytest-dev/pytest/releases">pytest's
releases</a>.</em></p>
<blockquote>
<h2>8.2.0</h2>
<h1>pytest 8.2.0 (2024-04-27)</h1>
<h2>Deprecations</h2>
<ul>
<li>
<p><a
href="https://redirect.github.com/pytest-dev/pytest/issues/12069">#12069</a>:
A deprecation warning is now raised when implementations of one of the
following hooks request a deprecated <code>py.path.local</code>
parameter instead of the <code>pathlib.Path</code> parameter which
replaced it:</p>
<ul>
<li><code>pytest_ignore_collect</code>{.interpreted-text
role=&quot;hook&quot;} - the <code>path</code> parameter - use
<code>collection_path</code> instead.</li>
<li><code>pytest_collect_file</code>{.interpreted-text
role=&quot;hook&quot;} - the <code>path</code> parameter - use
<code>file_path</code> instead.</li>
<li><code>pytest_pycollect_makemodule</code>{.interpreted-text
role=&quot;hook&quot;} - the <code>path</code> parameter - use
<code>module_path</code> instead.</li>
<li><code>pytest_report_header</code>{.interpreted-text
role=&quot;hook&quot;} - the <code>startdir</code> parameter - use
<code>start_path</code> instead.</li>
<li><code>pytest_report_collectionfinish</code>{.interpreted-text
role=&quot;hook&quot;} - the <code>startdir</code> parameter - use
<code>start_path</code> instead.</li>
</ul>
<p>The replacement parameters are available since pytest 7.0.0.
The old parameters will be removed in pytest 9.0.0.</p>
<p>See <code>legacy-path-hooks-deprecated</code>{.interpreted-text
role=&quot;ref&quot;} for more details.</p>
</li>
</ul>
<h2>Features</h2>
<ul>
<li>
<p><a
href="https://redirect.github.com/pytest-dev/pytest/issues/11871">#11871</a>:
Added support for reading command line arguments from a file using the
prefix character <code>@</code>, like e.g.: <code>pytest
@tests.txt</code>. The file must have one argument per line.</p>
<p>See <code>Read arguments from file
&lt;args-from-file&gt;</code>{.interpreted-text role=&quot;ref&quot;}
for details.</p>
</li>
</ul>
<h2>Improvements</h2>
<ul>
<li>
<p><a
href="https://redirect.github.com/pytest-dev/pytest/issues/11523">#11523</a>:
<code>pytest.importorskip</code>{.interpreted-text
role=&quot;func&quot;} will now issue a warning if the module could be
found, but raised <code>ImportError</code>{.interpreted-text
role=&quot;class&quot;} instead of
<code>ModuleNotFoundError</code>{.interpreted-text
role=&quot;class&quot;}.</p>
<p>The warning can be suppressed by passing
<code>exc_type=ImportError</code> to
<code>pytest.importorskip</code>{.interpreted-text
role=&quot;func&quot;}.</p>
<p>See <code>import-or-skip-import-error</code>{.interpreted-text
role=&quot;ref&quot;} for details.</p>
</li>
<li>
<p><a
href="https://redirect.github.com/pytest-dev/pytest/issues/11728">#11728</a>:
For <code>unittest</code>-based tests, exceptions during class cleanup
(as raised by functions registered with <code>TestCase.addClassCleanup
&lt;unittest.TestCase.addClassCleanup&gt;</code>{.interpreted-text
role=&quot;meth&quot;}) are now reported instead of silently
failing.</p>
</li>
<li>
<p><a
href="https://redirect.github.com/pytest-dev/pytest/issues/11777">#11777</a>:
Text is no longer truncated in the <code>short test summary info</code>
section when <code>-vv</code> is given.</p>
</li>
<li>
<p><a
href="https://redirect.github.com/pytest-dev/pytest/issues/12112">#12112</a>:
Improved namespace packages detection when
<code>consider_namespace_packages</code>{.interpreted-text
role=&quot;confval&quot;} is enabled, covering more situations (like
editable installs).</p>
</li>
<li>
<p><a
href="https://redirect.github.com/pytest-dev/pytest/issues/9502">#9502</a>:
Added <code>PYTEST_VERSION</code>{.interpreted-text
role=&quot;envvar&quot;} environment variable which is defined at the
start of the pytest session and undefined afterwards. It contains the
value of <code>pytest.__version__</code>, and among other things can be
used to easily check if code is running from within a pytest run.</p>
</li>
</ul>
<h2>Bug Fixes</h2>
<ul>
<li>
<p><a
href="https://redirect.github.com/pytest-dev/pytest/issues/12065">#12065</a>:
Fixed a regression in pytest 8.0.0 where test classes containing
<code>setup_method</code> and tests using <code>@staticmethod</code> or
<code>@classmethod</code> would crash with <code>AttributeError:
'NoneType' object has no attribute 'setup_method'</code>.</p>
<p>Now the <code>request.instance
&lt;pytest.FixtureRequest.instance&gt;</code>{.interpreted-text
role=&quot;attr&quot;} attribute of tests using
<code>@staticmethod</code> and <code>@classmethod</code> is no longer
<code>None</code>, but a fresh instance of the class, like in non-static
methods.</p>
</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/pytest-dev/pytest/commit/6bd3f313447290380cbc2db30fb9ee5cca7eb941"><code>6bd3f31</code></a>
Tweak changelog for 8.2.0</li>
<li><a
href="https://github.com/pytest-dev/pytest/commit/9b6219b5e89af237e5bc80354d405d2b5c2fc8a0"><code>9b6219b</code></a>
Prepare release version 8.2.0</li>
<li><a
href="https://github.com/pytest-dev/pytest/commit/835765c9d31e0a86c6028f983b28d32c82a759c4"><code>835765c</code></a>
Merge pull request <a
href="https://redirect.github.com/pytest-dev/pytest/issues/12130">#12130</a>
from bluetech/fixtures-inline</li>
<li><a
href="https://github.com/pytest-dev/pytest/commit/7e7503c0b015f61d9d21d3b5f55990b7fcd683f7"><code>7e7503c</code></a>
unittest: report class cleanup exceptions (<a
href="https://redirect.github.com/pytest-dev/pytest/issues/12250">#12250</a>)</li>
<li><a
href="https://github.com/pytest-dev/pytest/commit/882c4da2f37702b00bdbd3b6c74e9821d33e0204"><code>882c4da</code></a>
fixtures: inline <code>fail_fixturefunc</code></li>
<li><a
href="https://github.com/pytest-dev/pytest/commit/2e8fb9f1401d727e20f004326752fd1922f9c601"><code>2e8fb9f</code></a>
fixtures: extract a <code>_check_fixturedef</code> method</li>
<li><a
href="https://github.com/pytest-dev/pytest/commit/acf2971f46a9518b3552d48ea9541a1951c2b207"><code>acf2971</code></a>
fixtures: inline <code>_getnextfixturedef</code> into
<code>_get_active_fixturedef</code></li>
<li><a
href="https://github.com/pytest-dev/pytest/commit/3c77aec1dac0894ec4ca774b71ec91c85cf91dd1"><code>3c77aec</code></a>
fixtures: move &quot;request&quot; check early</li>
<li><a
href="https://github.com/pytest-dev/pytest/commit/d217d68cde0c34d619862f15c773ecc02ecdaabe"><code>d217d68</code></a>
fixtures: inline <code>_compute_fixture_value</code></li>
<li><a
href="https://github.com/pytest-dev/pytest/commit/530be285751143febe54b8974b234eed5eb8b079"><code>530be28</code></a>
fixtures: use early return in <code>_get_active_fixturedef</code></li>
<li>Additional commits viewable in <a
href="https://github.com/pytest-dev/pytest/compare/1.0.0b3...8.2.0">compare
view</a></li>
</ul>
</details>
<br />


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>
2024-04-30 08:56:25 +02:00
dependabot[bot] 9d58a275fb Update pytest-asyncio requirement from <=0.21.1 to <=0.21.2 in /backend (#672)
Updates the requirements on
[pytest-asyncio](https://github.com/pytest-dev/pytest-asyncio) to permit
the latest version.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/pytest-dev/pytest-asyncio/releases">pytest-asyncio's
releases</a>.</em></p>
<blockquote>
<h2>pytest-asyncio 0.21.2</h2>
<h1>0.21.2 (2024-04-29)</h1>
<ul>
<li>Fix compatibility with pytest 8.2. Backport of <a
href="https://redirect.github.com/pytest-dev/pytest-asyncio/pull/800">#800</a>
to pytest-asyncio v0.21 for users who are unable to upgrade to a more
recent version (see <a
href="https://redirect.github.com/pytest-dev/pytest-asyncio/pull/706">#706</a></li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/pytest-dev/pytest-asyncio/commit/12de7f6c7da1e94cf317d498f48b6c83df09428d"><code>12de7f6</code></a>
[ci] Do not fail CI pipeline, if coverage upload fails.</li>
<li><a
href="https://github.com/pytest-dev/pytest-asyncio/commit/b4aebfbd3228743b7914838288b1e6c996cb43fd"><code>b4aebfb</code></a>
[test] Addresses a Hypothesis health check that leads to failing
tests.</li>
<li><a
href="https://github.com/pytest-dev/pytest-asyncio/commit/ef6144a41c79042c7c20081c2fcd9e62f27fb938"><code>ef6144a</code></a>
[refactor] Satisfy linters.</li>
<li><a
href="https://github.com/pytest-dev/pytest-asyncio/commit/df294815c7488cac38ad0f486585e9942120c170"><code>df29481</code></a>
[docs] Added changelog entry.</li>
<li><a
href="https://github.com/pytest-dev/pytest-asyncio/commit/2fb3b19ade1f9a60521150d6459860a5b12339b6"><code>2fb3b19</code></a>
Backported <a
href="https://redirect.github.com/pytest-dev/pytest-asyncio/issues/800">#800</a>
to the 0.21.1 tag</li>
<li><a
href="https://github.com/pytest-dev/pytest-asyncio/commit/a10cbde05ff46b44f37a79b937a8dd38230f232a"><code>a10cbde</code></a>
[docs] Fixed typo.</li>
<li><a
href="https://github.com/pytest-dev/pytest-asyncio/commit/82b010d6869b9c2330bcfaa551fc8fe4719f45a8"><code>82b010d</code></a>
[docs] Add release date of v0.21.1 to changelog.</li>
<li><a
href="https://github.com/pytest-dev/pytest-asyncio/commit/af08b1c70dee405956437521082ae01b16b8a8df"><code>af08b1c</code></a>
[test] Removed obsolete test &quot;test_async_close_loop&quot;.</li>
<li><a
href="https://github.com/pytest-dev/pytest-asyncio/commit/79b2d1aed3d31e0f95e7d97e6176ff6b82f62635"><code>79b2d1a</code></a>
[test] Added a test case which verifies compatibility with pytest.skip
in aut...</li>
<li><a
href="https://github.com/pytest-dev/pytest-asyncio/commit/39a97548bfb0fe0de9527a98563037cb1ce80899"><code>39a9754</code></a>
[test] The test that asserts compatibility with pytest.mark.skip reports
succ...</li>
<li>Additional commits viewable in <a
href="https://github.com/pytest-dev/pytest-asyncio/compare/v0.1.1...v0.21.2">compare
view</a></li>
</ul>
</details>
<br />

<details>
<summary>Most Recent Ignore Conditions Applied to This Pull
Request</summary>

| Dependency Name | Ignore Conditions |
| --- | --- |
| pytest-asyncio | [>= 0.23.a, < 0.24] |
</details>


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>
2024-04-30 08:42:04 +02:00
dependabot[bot] 62899b9e33 Update pluggy requirement from <=1.4.0 to <=1.5.0 in /backend (#662)
Updates the requirements on
[pluggy](https://github.com/pytest-dev/pluggy) to permit the latest
version.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/pytest-dev/pluggy/blob/main/CHANGELOG.rst">pluggy's
changelog</a>.</em></p>
<blockquote>
<h1>pluggy 1.5.0 (2024-04-19)</h1>
<h2>Features</h2>
<ul>
<li>
<p><code>[#178](https://github.com/pytest-dev/pluggy/issues/178)
&lt;https://github.com/pytest-dev/pluggy/issues/178&gt;</code>_: Add
support for deprecating specific hook parameters, or more generally, for
issuing a warning whenever a hook implementation requests certain
parameters.</p>
<p>See :ref:<code>warn_on_impl</code> for details.</p>
</li>
</ul>
<h2>Bug Fixes</h2>
<ul>
<li><code>[#481](https://github.com/pytest-dev/pluggy/issues/481)
&lt;https://github.com/pytest-dev/pluggy/issues/481&gt;</code>_:
<code>PluginManager.get_plugins()</code> no longer returns
<code>None</code> for blocked plugins.</li>
</ul>
<h1>pluggy 1.4.0 (2024-01-24)</h1>
<h2>Features</h2>
<ul>
<li>
<p><code>[#463](https://github.com/pytest-dev/pluggy/issues/463)
&lt;https://github.com/pytest-dev/pluggy/issues/463&gt;</code>_: A
warning :class:<code>~pluggy.PluggyTeardownRaisedWarning</code> is now
issued when an old-style hookwrapper raises an exception during
teardown.
See the warning documentation for more details.</p>
</li>
<li>
<p><code>[#471](https://github.com/pytest-dev/pluggy/issues/471)
&lt;https://github.com/pytest-dev/pluggy/issues/471&gt;</code>_: Add
:func:<code>PluginManager.unblock
&lt;pluggy.PluginManager.unblock&gt;</code> method to unblock a plugin
by plugin name.</p>
</li>
</ul>
<h2>Bug Fixes</h2>
<ul>
<li>
<p><code>[#441](https://github.com/pytest-dev/pluggy/issues/441)
&lt;https://github.com/pytest-dev/pluggy/issues/441&gt;</code>_: Fix
:func:<code>~pluggy.HookCaller.call_extra()</code> extra methods getting
ordered before everything else in some circumstances. Regressed in
pluggy 1.1.0.</p>
</li>
<li>
<p><code>[#438](https://github.com/pytest-dev/pluggy/issues/438)
&lt;https://github.com/pytest-dev/pluggy/issues/438&gt;</code>_: Fix
plugins registering other plugins in a hook when the other plugins
implement the same hook itself. Regressed in pluggy 1.1.0.</p>
</li>
</ul>
<h1>pluggy 1.3.0 (2023-08-26)</h1>
<h2>Deprecations and Removals</h2>
<ul>
<li><code>[#426](https://github.com/pytest-dev/pluggy/issues/426)
&lt;https://github.com/pytest-dev/pluggy/issues/426&gt;</code>_: Python
3.7 is no longer supported.</li>
</ul>
<h2>Features</h2>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/pytest-dev/pluggy/commit/f8aa4a009716a7994f2f6c1947d9fa69feccbdd5"><code>f8aa4a0</code></a>
Preparing release 1.5.0</li>
<li><a
href="https://github.com/pytest-dev/pluggy/commit/b4a8c92fb15dc05376ddb9b48e601be00ee3ee1b"><code>b4a8c92</code></a>
Merge pull request <a
href="https://redirect.github.com/pytest-dev/pluggy/issues/495">#495</a>
from bluetech/warn-on-impl-args</li>
<li><a
href="https://github.com/pytest-dev/pluggy/commit/6f6ea680ca5a1f73dca356eb23c0dd6bd5f7190e"><code>6f6ea68</code></a>
Add support deprecating hook parameters</li>
<li><a
href="https://github.com/pytest-dev/pluggy/commit/91f88d28e30c12612d671100b7a60dfbf4990446"><code>91f88d2</code></a>
Merge pull request <a
href="https://redirect.github.com/pytest-dev/pluggy/issues/496">#496</a>
from bluetech/codecov-action</li>
<li><a
href="https://github.com/pytest-dev/pluggy/commit/89ce829b44274569de83173867ce29828b620fe8"><code>89ce829</code></a>
ci: replace upload-coverage script with codecov github action</li>
<li><a
href="https://github.com/pytest-dev/pluggy/commit/29f104d21f06f0bf1415a8e872657bc10a768954"><code>29f104d</code></a>
Lift pluggy (<a
href="https://redirect.github.com/pytest-dev/pluggy/issues/493">#493</a>)</li>
<li><a
href="https://github.com/pytest-dev/pluggy/commit/c2b36b44af5c2530813e18553b54158535d4820a"><code>c2b36b4</code></a>
Merge pull request <a
href="https://redirect.github.com/pytest-dev/pluggy/issues/491">#491</a>
from pytest-dev/pre-commit-ci-update-config</li>
<li><a
href="https://github.com/pytest-dev/pluggy/commit/2b533c9d9f7421c9353aa32da967733bfe4c1c85"><code>2b533c9</code></a>
[pre-commit.ci] pre-commit autoupdate</li>
<li><a
href="https://github.com/pytest-dev/pluggy/commit/04d1bcdbc751a90ff79b72caf85dc96e1664ae45"><code>04d1bcd</code></a>
[pre-commit.ci] pre-commit autoupdate (<a
href="https://redirect.github.com/pytest-dev/pluggy/issues/490">#490</a>)</li>
<li><a
href="https://github.com/pytest-dev/pluggy/commit/f74e94b17d986c18e9039af87ecded9c9546ac32"><code>f74e94b</code></a>
[pre-commit.ci] pre-commit autoupdate (<a
href="https://redirect.github.com/pytest-dev/pluggy/issues/489">#489</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/pytest-dev/pluggy/compare/0.3.0...1.5.0">compare
view</a></li>
</ul>
</details>
<br />


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>
2024-04-22 08:47:17 +02:00
Erik Vroon ef895bf812 Extend deploy docs and add Nomad docs (#578) 2024-03-18 20:01:55 +01:00
dependabot[bot] 499ee12f37 Update pytest requirement from <=8.1.0 to <=8.1.1 in /backend (#593)
Updates the requirements on
[pytest](https://github.com/pytest-dev/pytest) to permit the latest
version.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/pytest-dev/pytest/releases">pytest's
releases</a>.</em></p>
<blockquote>
<h2>8.1.1</h2>
<h1>pytest 8.1.1 (2024-03-08)</h1>
<p>::: {.note}
::: {.title}
Note
:::</p>
<p>This release is not a usual bug fix release -- it contains features
and improvements, being a follow up
to <code>8.1.0</code>, which has been yanked from PyPI.
:::</p>
<h2>Features</h2>
<ul>
<li>
<p><a
href="https://redirect.github.com/pytest-dev/pytest/issues/11475">#11475</a>:
Added the new <code>consider_namespace_packages</code>{.interpreted-text
role=&quot;confval&quot;} configuration option, defaulting to
<code>False</code>.</p>
<p>If set to <code>True</code>, pytest will attempt to identify modules
that are part of <a
href="https://packaging.python.org/en/latest/guides/packaging-namespace-packages">namespace
packages</a> when importing modules.</p>
</li>
<li>
<p><a
href="https://redirect.github.com/pytest-dev/pytest/issues/11653">#11653</a>:
Added the new <code>verbosity_test_cases</code>{.interpreted-text
role=&quot;confval&quot;} configuration option for fine-grained control
of test execution verbosity.
See <code>Fine-grained verbosity
&lt;pytest.fine_grained_verbosity&gt;</code>{.interpreted-text
role=&quot;ref&quot;} for more details.</p>
</li>
</ul>
<h2>Improvements</h2>
<ul>
<li>
<p><a
href="https://redirect.github.com/pytest-dev/pytest/issues/10865">#10865</a>:
<code>pytest.warns</code>{.interpreted-text role=&quot;func&quot;} now
validates that <code>warnings.warn</code>{.interpreted-text
role=&quot;func&quot;} was called with a [str]{.title-ref} or a
[Warning]{.title-ref}.
Currently in Python it is possible to use other types, however this
causes an exception when
<code>warnings.filterwarnings</code>{.interpreted-text
role=&quot;func&quot;} is used to filter those warnings (see [CPython <a
href="https://redirect.github.com/pytest-dev/pytest/issues/103577">#103577</a>](<a
href="https://redirect.github.com/python/cpython/issues/103577">python/cpython#103577</a>)
for a discussion).
While this can be considered a bug in CPython, we decided to put guards
in pytest as the error message produced without this check in place is
confusing.</p>
</li>
<li>
<p><a
href="https://redirect.github.com/pytest-dev/pytest/issues/11311">#11311</a>:
When using <code>--override-ini</code> for paths in invocations without
a configuration file defined, the current working directory is used
as the relative directory.</p>
<p>Previoulsy this would raise an
<code>AssertionError</code>{.interpreted-text
role=&quot;class&quot;}.</p>
</li>
<li>
<p><a
href="https://redirect.github.com/pytest-dev/pytest/issues/11475">#11475</a>:
<code>--import-mode=importlib
&lt;import-mode-importlib&gt;</code>{.interpreted-text
role=&quot;ref&quot;} now tries to import modules using the standard
import mechanism (but still without changing
:py<code>sys.path</code>{.interpreted-text role=&quot;data&quot;}),
falling back to importing modules directly only if that fails.</p>
<p>This means that installed packages will be imported under their
canonical name if possible first, for example
<code>app.core.models</code>, instead of having the module name always
be derived from their path (for example
<code>.env310.lib.site_packages.app.core.models</code>).</p>
</li>
<li>
<p><a
href="https://redirect.github.com/pytest-dev/pytest/issues/11801">#11801</a>:
Added the <code>iter_parents()
&lt;_pytest.nodes.Node.iter_parents&gt;</code>{.interpreted-text
role=&quot;func&quot;} helper method on nodes.
It is similar to <code>listchain
&lt;_pytest.nodes.Node.listchain&gt;</code>{.interpreted-text
role=&quot;func&quot;}, but goes from bottom to top, and returns an
iterator, not a list.</p>
</li>
<li>
<p><a
href="https://redirect.github.com/pytest-dev/pytest/issues/11850">#11850</a>:
Added support for <code>sys.last_exc</code>{.interpreted-text
role=&quot;data&quot;} for post-mortem debugging on Python&gt;=3.12.</p>
</li>
<li>
<p><a
href="https://redirect.github.com/pytest-dev/pytest/issues/11962">#11962</a>:
In case no other suitable candidates for configuration file are found, a
<code>pyproject.toml</code> (even without a
<code>[tool.pytest.ini_options]</code> table) will be considered as the
configuration file and define the <code>rootdir</code>.</p>
</li>
<li>
<p><a
href="https://redirect.github.com/pytest-dev/pytest/issues/11978">#11978</a>:
Add <code>--log-file-mode</code> option to the logging plugin, enabling
appending to log-files. This option accepts either
<code>&quot;w&quot;</code> or <code>&quot;a&quot;</code> and defaults to
<code>&quot;w&quot;</code>.</p>
<p>Previously, the mode was hard-coded to be <code>&quot;w&quot;</code>
which truncates the file before logging.</p>
</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/pytest-dev/pytest/commit/81653ee385f4c62ee7e64502a7b7530096553115"><code>81653ee</code></a>
Adjust changelog manually for 8.1.1</li>
<li><a
href="https://github.com/pytest-dev/pytest/commit/e60b4b9ed80f761e3a51868a01338911a567b093"><code>e60b4b9</code></a>
Prepare release version 8.1.1</li>
<li><a
href="https://github.com/pytest-dev/pytest/commit/15fbe57c44fed6737f5c6dad99cf4437b6755a6c"><code>15fbe57</code></a>
[8.1.x] Revert legacy path removals (<a
href="https://redirect.github.com/pytest-dev/pytest/issues/12093">#12093</a>)</li>
<li><a
href="https://github.com/pytest-dev/pytest/commit/86c3aab005a98de7e12ee5e37782837f5db70ac3"><code>86c3aab</code></a>
[8.1.x] Do not import duplicated modules with --importmode=importlib (<a
href="https://redirect.github.com/pytest-dev/pytest/issues/12077">#12077</a>)</li>
<li><a
href="https://github.com/pytest-dev/pytest/commit/5b82b0cd20c3adcc21f34ae30c595c7355a87e23"><code>5b82b0c</code></a>
[8.1.x] Yank version 8.1.0 (<a
href="https://redirect.github.com/pytest-dev/pytest/issues/12076">#12076</a>)</li>
<li><a
href="https://github.com/pytest-dev/pytest/commit/0a536810dc5f51dac99bdb90dde06704b5aa034e"><code>0a53681</code></a>
Merge pull request <a
href="https://redirect.github.com/pytest-dev/pytest/issues/12054">#12054</a>
from pytest-dev/release-8.1.0</li>
<li><a
href="https://github.com/pytest-dev/pytest/commit/b9a167f9bbbd6eda4f0360c5bf5b7f5af50f2bc4"><code>b9a167f</code></a>
Prepare release version 8.1.0</li>
<li><a
href="https://github.com/pytest-dev/pytest/commit/00043f7f1047b29fdaeb18e169fe9d6146988cb8"><code>00043f7</code></a>
Merge pull request <a
href="https://redirect.github.com/pytest-dev/pytest/issues/12038">#12038</a>
from bluetech/fixtures-rm-arg2index</li>
<li><a
href="https://github.com/pytest-dev/pytest/commit/f4e10251a4a003495b5228cea421d4de5fa0ce89"><code>f4e1025</code></a>
Merge pull request <a
href="https://redirect.github.com/pytest-dev/pytest/issues/12048">#12048</a>
from bluetech/fixture-teardown-excgroup</li>
<li><a
href="https://github.com/pytest-dev/pytest/commit/43492f5707b38dab9b62dfb829bb41a13579629f"><code>43492f5</code></a>
Merge pull request <a
href="https://redirect.github.com/pytest-dev/pytest/issues/12051">#12051</a>
from jakkdl/test_debugging_pythonbreakpoint</li>
<li>Additional commits viewable in <a
href="https://github.com/pytest-dev/pytest/compare/1.0.0b3...8.1.1">compare
view</a></li>
</ul>
</details>
<br />


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>
2024-03-13 13:05:02 +01:00
dependabot[bot] 0f1cde5b6d Update pytest requirement from <=8.0.2 to <=8.1.0 in /backend (#582)
Updates the requirements on
[pytest](https://github.com/pytest-dev/pytest) to permit the latest
version.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/pytest-dev/pytest/releases">pytest's
releases</a>.</em></p>
<blockquote>
<h2>8.1.0</h2>
<h1>pytest 8.1.0 (2024-03-03)</h1>
<h2>Features</h2>
<ul>
<li>
<p><a
href="https://redirect.github.com/pytest-dev/pytest/issues/11475">#11475</a>:
Added the new <code>consider_namespace_packages</code>{.interpreted-text
role=&quot;confval&quot;} configuration option, defaulting to
<code>False</code>.</p>
<p>If set to <code>True</code>, pytest will attempt to identify modules
that are part of <a
href="https://packaging.python.org/en/latest/guides/packaging-namespace-packages">namespace
packages</a> when importing modules.</p>
</li>
<li>
<p><a
href="https://redirect.github.com/pytest-dev/pytest/issues/11653">#11653</a>:
Added the new <code>verbosity_test_cases</code>{.interpreted-text
role=&quot;confval&quot;} configuration option for fine-grained control
of test execution verbosity.
See <code>Fine-grained verbosity
&lt;pytest.fine_grained_verbosity&gt;</code>{.interpreted-text
role=&quot;ref&quot;} for more details.</p>
</li>
</ul>
<h2>Improvements</h2>
<ul>
<li>
<p><a
href="https://redirect.github.com/pytest-dev/pytest/issues/10865">#10865</a>:
<code>pytest.warns</code>{.interpreted-text role=&quot;func&quot;} now
validates that <code>warnings.warn</code>{.interpreted-text
role=&quot;func&quot;} was called with a [str]{.title-ref} or a
[Warning]{.title-ref}.
Currently in Python it is possible to use other types, however this
causes an exception when
<code>warnings.filterwarnings</code>{.interpreted-text
role=&quot;func&quot;} is used to filter those warnings (see [CPython <a
href="https://redirect.github.com/pytest-dev/pytest/issues/103577">#103577</a>](<a
href="https://redirect.github.com/python/cpython/issues/103577">python/cpython#103577</a>)
for a discussion).
While this can be considered a bug in CPython, we decided to put guards
in pytest as the error message produced without this check in place is
confusing.</p>
</li>
<li>
<p><a
href="https://redirect.github.com/pytest-dev/pytest/issues/11311">#11311</a>:
When using <code>--override-ini</code> for paths in invocations without
a configuration file defined, the current working directory is used
as the relative directory.</p>
<p>Previoulsy this would raise an
<code>AssertionError</code>{.interpreted-text
role=&quot;class&quot;}.</p>
</li>
<li>
<p><a
href="https://redirect.github.com/pytest-dev/pytest/issues/11475">#11475</a>:
<code>--import-mode=importlib
&lt;import-mode-importlib&gt;</code>{.interpreted-text
role=&quot;ref&quot;} now tries to import modules using the standard
import mechanism (but still without changing
:py<code>sys.path</code>{.interpreted-text role=&quot;data&quot;}),
falling back to importing modules directly only if that fails.</p>
<p>This means that installed packages will be imported under their
canonical name if possible first, for example
<code>app.core.models</code>, instead of having the module name always
be derived from their path (for example
<code>.env310.lib.site_packages.app.core.models</code>).</p>
</li>
<li>
<p><a
href="https://redirect.github.com/pytest-dev/pytest/issues/11801">#11801</a>:
Added the <code>iter_parents()
&lt;_pytest.nodes.Node.iter_parents&gt;</code>{.interpreted-text
role=&quot;func&quot;} helper method on nodes.
It is similar to <code>listchain
&lt;_pytest.nodes.Node.listchain&gt;</code>{.interpreted-text
role=&quot;func&quot;}, but goes from bottom to top, and returns an
iterator, not a list.</p>
</li>
<li>
<p><a
href="https://redirect.github.com/pytest-dev/pytest/issues/11850">#11850</a>:
Added support for <code>sys.last_exc</code>{.interpreted-text
role=&quot;data&quot;} for post-mortem debugging on Python&gt;=3.12.</p>
</li>
<li>
<p><a
href="https://redirect.github.com/pytest-dev/pytest/issues/11962">#11962</a>:
In case no other suitable candidates for configuration file are found, a
<code>pyproject.toml</code> (even without a
<code>[tool.pytest.ini_options]</code> table) will be considered as the
configuration file and define the <code>rootdir</code>.</p>
</li>
<li>
<p><a
href="https://redirect.github.com/pytest-dev/pytest/issues/11978">#11978</a>:
Add <code>--log-file-mode</code> option to the logging plugin, enabling
appending to log-files. This option accepts either
<code>&quot;w&quot;</code> or <code>&quot;a&quot;</code> and defaults to
<code>&quot;w&quot;</code>.</p>
<p>Previously, the mode was hard-coded to be <code>&quot;w&quot;</code>
which truncates the file before logging.</p>
</li>
<li>
<p><a
href="https://redirect.github.com/pytest-dev/pytest/issues/12047">#12047</a>:
When multiple finalizers of a fixture raise an exception, now all
exceptions are reported as an exception group.
Previously, only the first exception was reported.</p>
</li>
</ul>
<h2>Bug Fixes</h2>
<ul>
<li>
<p><a
href="https://redirect.github.com/pytest-dev/pytest/issues/11904">#11904</a>:
Fixed a regression in pytest 8.0.0 that would cause test collection to
fail due to permission errors when using <code>--pyargs</code>.</p>
<p>This change improves the collection tree for tests specified using
<code>--pyargs</code>, see <code>12043</code>{.interpreted-text
role=&quot;pull&quot;} for a comparison with pytest 8.0 and &lt;8.</p>
</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/pytest-dev/pytest/commit/b9a167f9bbbd6eda4f0360c5bf5b7f5af50f2bc4"><code>b9a167f</code></a>
Prepare release version 8.1.0</li>
<li><a
href="https://github.com/pytest-dev/pytest/commit/00043f7f1047b29fdaeb18e169fe9d6146988cb8"><code>00043f7</code></a>
Merge pull request <a
href="https://redirect.github.com/pytest-dev/pytest/issues/12038">#12038</a>
from bluetech/fixtures-rm-arg2index</li>
<li><a
href="https://github.com/pytest-dev/pytest/commit/f4e10251a4a003495b5228cea421d4de5fa0ce89"><code>f4e1025</code></a>
Merge pull request <a
href="https://redirect.github.com/pytest-dev/pytest/issues/12048">#12048</a>
from bluetech/fixture-teardown-excgroup</li>
<li><a
href="https://github.com/pytest-dev/pytest/commit/43492f5707b38dab9b62dfb829bb41a13579629f"><code>43492f5</code></a>
Merge pull request <a
href="https://redirect.github.com/pytest-dev/pytest/issues/12051">#12051</a>
from jakkdl/test_debugging_pythonbreakpoint</li>
<li><a
href="https://github.com/pytest-dev/pytest/commit/82fe28dae4eec900123175cee87245f37b964e5c"><code>82fe28d</code></a>
[automated] Update plugin list (<a
href="https://redirect.github.com/pytest-dev/pytest/issues/12049">#12049</a>)</li>
<li><a
href="https://github.com/pytest-dev/pytest/commit/5e2ee7175c145f84ff9882be9496abb56e6e56f2"><code>5e2ee71</code></a>
monkeypatch.delenv PYTHONBREAKPOINT in two tests that previously
failed/skipped</li>
<li><a
href="https://github.com/pytest-dev/pytest/commit/89ee4493ccbcd118349082cd78eb52a761683120"><code>89ee449</code></a>
Merge pull request <a
href="https://redirect.github.com/pytest-dev/pytest/issues/11997">#11997</a>
from nicoddemus/11475-importlib</li>
<li><a
href="https://github.com/pytest-dev/pytest/commit/8248946a552635f5751a58c7a6dfd24e98db7404"><code>8248946</code></a>
Do not collect symlinked tests under Windows (<a
href="https://redirect.github.com/pytest-dev/pytest/issues/12050">#12050</a>)</li>
<li><a
href="https://github.com/pytest-dev/pytest/commit/434282e17f5f1f4fcc1464a0a0921cf19804bdd7"><code>434282e</code></a>
fixtures: use exception group when multiple finalizers raise in fixture
teardown</li>
<li><a
href="https://github.com/pytest-dev/pytest/commit/d6134bc21e27efee7a2e264bd089e6c223515904"><code>d6134bc</code></a>
doc: document consider_namespace_packages option</li>
<li>Additional commits viewable in <a
href="https://github.com/pytest-dev/pytest/compare/1.0.0b3...8.1.0">compare
view</a></li>
</ul>
</details>
<br />


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>
2024-03-04 15:01:07 +01:00
Erik Vroon 5eddebbc17 Fix backend code style 2024-03-04 14:49:44 +01:00
Erik Vroon aa0ccdd64c Spawn only 1 gunicorn worker for now (#575)
Support for multiple is still WIP
2024-02-29 22:27:52 +01:00
robigan e3fa10e2a9 Team logos (#529) 2024-02-28 08:41:19 +01:00
Erik Vroon 1d763fe3dc Handle teams foreign key errors (#543) 2024-02-26 22:36:57 +01:00
dependabot[bot] 9da7811198 Update pytest requirement from <=8.0.1 to <=8.0.2 in /backend (#531)
Updates the requirements on
[pytest](https://github.com/pytest-dev/pytest) to permit the latest
version.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/pytest-dev/pytest/releases">pytest's
releases</a>.</em></p>
<blockquote>
<h2>8.0.2</h2>
<h1>pytest 8.0.2 (2024-02-24)</h1>
<h2>Bug Fixes</h2>
<ul>
<li><a
href="https://redirect.github.com/pytest-dev/pytest/issues/11895">#11895</a>:
Fix collection on Windows where initial paths contain the short version
of a path (for example <code>c:\PROGRA~1\tests</code>).</li>
<li><a
href="https://redirect.github.com/pytest-dev/pytest/issues/11953">#11953</a>:
Fix an <code>IndexError</code> crash raising from
<code>getstatementrange_ast</code>.</li>
<li><a
href="https://redirect.github.com/pytest-dev/pytest/issues/12021">#12021</a>:
Reverted a fix to [--maxfail]{.title-ref} handling in pytest 8.0.0
because it caused a regression in pytest-xdist whereby session fixture
teardowns may get executed multiple times when the max-fails is
reached.</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/pytest-dev/pytest/commit/31afeeb0df0e8bdab1325b5992a2cc733e981e82"><code>31afeeb</code></a>
Prepare release version 8.0.2</li>
<li><a
href="https://github.com/pytest-dev/pytest/commit/1b00a2f4fba7859c31dab4f5afdd9e1f07cbdd1e"><code>1b00a2f</code></a>
Merge pull request <a
href="https://redirect.github.com/pytest-dev/pytest/issues/12025">#12025</a>
from pytest-dev/backport-12022-to-8.0.x</li>
<li><a
href="https://github.com/pytest-dev/pytest/commit/ff2f66d84affb0fbcbf841b1897c7599026730bc"><code>ff2f66d</code></a>
[8.0.x] Revert &quot;Fix teardown error reporting when
<code>--maxfail=1</code> (<a
href="https://redirect.github.com/pytest-dev/pytest/issues/11721">#11721</a>)&quot;</li>
<li><a
href="https://github.com/pytest-dev/pytest/commit/8a8eed609c3c20da452446e1686df41ebda96d11"><code>8a8eed6</code></a>
[8.0.x] Fix collection of short paths on Windows (<a
href="https://redirect.github.com/pytest-dev/pytest/issues/12024">#12024</a>)</li>
<li><a
href="https://github.com/pytest-dev/pytest/commit/74346f027c205e5daffe66801094293744e8d85f"><code>74346f0</code></a>
[8.0.x] Allow Sphinx 7.x (<a
href="https://redirect.github.com/pytest-dev/pytest/issues/12005">#12005</a>)</li>
<li><a
href="https://github.com/pytest-dev/pytest/commit/b7657b4d6b69ee26e00d9a71c4d208506f644462"><code>b7657b4</code></a>
[8.0.x] Disallow Sphinx 6 and 7 (<a
href="https://redirect.github.com/pytest-dev/pytest/issues/12001">#12001</a>)</li>
<li><a
href="https://github.com/pytest-dev/pytest/commit/feb7c5e12ee3374b2c7c773614d76811ad21a4f4"><code>feb7c5e</code></a>
Merge pull request <a
href="https://redirect.github.com/pytest-dev/pytest/issues/11999">#11999</a>
from pytest-dev/backport-11996-to-8.0.x</li>
<li><a
href="https://github.com/pytest-dev/pytest/commit/090965574ece50c6be955719ced2a9cf8daaee17"><code>0909655</code></a>
[8.0.x] code: fix <code>IndexError</code> crash in
<code>getstatementrange_ast</code></li>
<li><a
href="https://github.com/pytest-dev/pytest/commit/68524d48586e7f8d070fc1146e5ff90e770d0382"><code>68524d4</code></a>
Merge pull request <a
href="https://redirect.github.com/pytest-dev/pytest/issues/11993">#11993</a>
from pytest-dev/release-8.0.1</li>
<li><a
href="https://github.com/pytest-dev/pytest/commit/d7d320a15a1f8dae909e0aa71f20ab5daeaa42d3"><code>d7d320a</code></a>
Prepare release version 8.0.1</li>
<li>Additional commits viewable in <a
href="https://github.com/pytest-dev/pytest/compare/1.0.0b3...8.0.2">compare
view</a></li>
</ul>
</details>
<br />


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>
2024-02-26 07:09:35 +01:00
Erik Vroon 25a9df2f36 Use asyncpg for updating tournaments (#523)
fix https://github.com/evroon/bracket/issues/514
2024-02-24 13:32:02 +01:00
Erik Vroon 873953daf0 Stamp alembic head when recreating tables (#521)
fix https://github.com/evroon/bracket/issues/520

After initializing the database, we don't want/need to run any
migrations, so we just tell alembic we're on the latest revision.
2024-02-24 12:28:28 +01:00
Erik Vroon d016e50537 Check foreign keys belong to tournament (#516)
Handles a security vulnerability where it's possible to link to columns
of other tournaments, such as add players from another tournament to a
team
2024-02-23 21:11:13 +01:00
Erik Vroon b395d148f0 Add newtypes for primary keys (#512)
Adds type safety
2024-02-23 20:41:55 +01:00
robigan fa813c6cec Add user registration to cli (#501)
This PR adds a custom function to be able to add users from the CLI.
This is a bare-bones modification to cli.py that works, and I've semi
tested (against a production environment lol). I am opening this PR as
an RFC.
2024-02-21 19:05:02 +01:00
Erik Vroon 0754964c7a Set random scores for dummy matches (#500) 2024-02-21 08:54:05 +01:00
dependabot[bot] 71483cf90e Update pytest requirement from <=8.0.0 to <=8.0.1 in /backend (#493)
Updates the requirements on
[pytest](https://github.com/pytest-dev/pytest) to permit the latest
version.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/pytest-dev/pytest/releases">pytest's
releases</a>.</em></p>
<blockquote>
<h2>8.0.1</h2>
<h1>pytest 8.0.1 (2024-02-16)</h1>
<h2>Bug Fixes</h2>
<ul>
<li><a
href="https://redirect.github.com/pytest-dev/pytest/issues/11875">#11875</a>:
Correctly handle errors from
<code>getpass.getuser</code>{.interpreted-text role=&quot;func&quot;} in
Python 3.13.</li>
<li><a
href="https://redirect.github.com/pytest-dev/pytest/issues/11879">#11879</a>:
Fix an edge case where <code>ExceptionInfo._stringify_exception</code>
could crash <code>pytest.raises</code>{.interpreted-text
role=&quot;func&quot;}.</li>
<li><a
href="https://redirect.github.com/pytest-dev/pytest/issues/11906">#11906</a>:
Fix regression with <code>pytest.warns</code>{.interpreted-text
role=&quot;func&quot;} using custom warning subclasses which have more
than one parameter in their [__init__]{.title-ref}.</li>
<li><a
href="https://redirect.github.com/pytest-dev/pytest/issues/11907">#11907</a>:
Fix a regression in pytest 8.0.0 whereby calling
<code>pytest.skip</code>{.interpreted-text role=&quot;func&quot;} and
similar control-flow exceptions within a
<code>pytest.warns()</code>{.interpreted-text role=&quot;func&quot;}
block would get suppressed instead of propagating.</li>
<li><a
href="https://redirect.github.com/pytest-dev/pytest/issues/11929">#11929</a>:
Fix a regression in pytest 8.0.0 whereby autouse fixtures defined in a
module get ignored by the doctests in the module.</li>
<li><a
href="https://redirect.github.com/pytest-dev/pytest/issues/11937">#11937</a>:
Fix a regression in pytest 8.0.0 whereby items would be collected in
reverse order in some circumstances.</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/pytest-dev/pytest/commit/d7d320a15a1f8dae909e0aa71f20ab5daeaa42d3"><code>d7d320a</code></a>
Prepare release version 8.0.1</li>
<li><a
href="https://github.com/pytest-dev/pytest/commit/93699166dc3d90676b126d2b1615fbd41cf0be4d"><code>9369916</code></a>
Merge pull request <a
href="https://redirect.github.com/pytest-dev/pytest/issues/11992">#11992</a>
from bluetech/backport-11991</li>
<li><a
href="https://github.com/pytest-dev/pytest/commit/a232abd56cd7ddc0d6dbeefd851c538ec547ab06"><code>a232abd</code></a>
[8.0.x] recwarn: fix pytest.warns handling of Warnings with multiple
arguments</li>
<li><a
href="https://github.com/pytest-dev/pytest/commit/92203d2b78135446510ec70d46452937effcb1d9"><code>92203d2</code></a>
Merge pull request <a
href="https://redirect.github.com/pytest-dev/pytest/issues/11990">#11990</a>
from bluetech/backport-11920</li>
<li><a
href="https://github.com/pytest-dev/pytest/commit/f1aa9226ac5b1962fdad442652765d5e589c7137"><code>f1aa922</code></a>
[8.0.x] recwarn: let base exceptions propagate through
<code>pytest.warns</code> again</li>
<li><a
href="https://github.com/pytest-dev/pytest/commit/d86d08156337b40ad0cf6e4bfe38ecfa0e5eb5bd"><code>d86d081</code></a>
[8.0.x] Added <code>logot</code> to the plugin list (<a
href="https://redirect.github.com/pytest-dev/pytest/issues/11977">#11977</a>)</li>
<li><a
href="https://github.com/pytest-dev/pytest/commit/c554c3d200747f9f56b4054619ba4fb6f8910bb5"><code>c554c3d</code></a>
Merge pull request <a
href="https://redirect.github.com/pytest-dev/pytest/issues/11968">#11968</a>
from pytest-dev/backport-11957-to-8.0.x</li>
<li><a
href="https://github.com/pytest-dev/pytest/commit/a6851e3459159f94387debf0b357c9b6481a2f48"><code>a6851e3</code></a>
[8.0.x] main: fix reversed collection order in Session</li>
<li><a
href="https://github.com/pytest-dev/pytest/commit/e6f6be3bc9e876f1853fdea68ec49cfc1c4c246d"><code>e6f6be3</code></a>
[8.0.x] Improve error message when using <a
href="https://github.com/pytest"><code>@​pytest</code></a>.fixture twice
(<a
href="https://redirect.github.com/pytest-dev/pytest/issues/11958">#11958</a>)</li>
<li><a
href="https://github.com/pytest-dev/pytest/commit/23b91d12de9bcbd0ce965bebefcbcc53a588b438"><code>23b91d1</code></a>
[8.0.x] Merge pull request <a
href="https://redirect.github.com/pytest-dev/pytest/issues/11941">#11941</a>
from bluetech/doctest-parsefactories (<a
href="https://redirect.github.com/pytest-dev/pytest/issues/11948">#11948</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/pytest-dev/pytest/compare/1.0.0b3...8.0.1">compare
view</a></li>
</ul>
</details>
<br />


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>
2024-02-19 10:21:24 +01:00
Erik Vroon 1c7ba768ca Add description to API docs (#489) 2024-02-18 16:56:10 +01:00
Erik Vroon 880d212ce9 Use uuids for logos (#488)
Otherwise uploads can replace current files with the same name.
Also fixes and adds more tests for logo uploads.
2024-02-18 11:24:35 +01:00
Erik Vroon 41c664ed56 Fix dashboard link unique bug (#487)
The frontend will send `"dashboard_link": ""` (empty string) but it
should be converted to `None` instead. Otherwise tournaments quickly
have non-unique endpoints.
2024-02-17 19:40:39 +01:00
Erik Vroon 0c0d99f8fe Write files async (non-blocking) (#485)
Also remove unused files and reload image in frontend when uploading a
new image.
2024-02-17 18:20:01 +01:00
Erik Vroon 7666e3a22b Handle foreign key constraint errors (#483) 2024-02-17 14:03:32 +01:00
Erik Vroon 31537a6f99 Add sort params to endpoints (#482)
Fixes a bug with pagination where only results of the currently shown
page are sorted, not all results are sorted and then limited to 25
items.
2024-02-17 13:20:54 +01:00
dependabot[bot] f465812e15 Update pluggy requirement from <=1.3.0 to <=1.4.0 in /backend (#468)
Updates the requirements on
[pluggy](https://github.com/pytest-dev/pluggy) to permit the latest
version.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/pytest-dev/pluggy/blob/main/CHANGELOG.rst">pluggy's
changelog</a>.</em></p>
<blockquote>
<h1>pluggy 1.4.0 (2024-01-24)</h1>
<h2>Features</h2>
<ul>
<li>
<p><code>[#463](https://github.com/pytest-dev/pluggy/issues/463)
&lt;https://github.com/pytest-dev/pluggy/issues/463&gt;</code>_: A
warning :class:<code>~pluggy.PluggyTeardownRaisedWarning</code> is now
issued when an old-style hookwrapper raises an exception during
teardown.
See the warning documentation for more details.</p>
</li>
<li>
<p><code>[#471](https://github.com/pytest-dev/pluggy/issues/471)
&lt;https://github.com/pytest-dev/pluggy/issues/471&gt;</code>_: Add
:func:<code>PluginManager.unblock
&lt;pluggy.PluginManager.unblock&gt;</code> method to unblock a plugin
by plugin name.</p>
</li>
</ul>
<h2>Bug Fixes</h2>
<ul>
<li>
<p><code>[#441](https://github.com/pytest-dev/pluggy/issues/441)
&lt;https://github.com/pytest-dev/pluggy/issues/441&gt;</code>_: Fix
:func:<code>~pluggy.HookCaller.call_extra()</code> extra methods getting
ordered before everything else in some circumstances. Regressed in
pluggy 1.1.0.</p>
</li>
<li>
<p><code>[#438](https://github.com/pytest-dev/pluggy/issues/438)
&lt;https://github.com/pytest-dev/pluggy/issues/438&gt;</code>_: Fix
plugins registering other plugins in a hook when the other plugins
implement the same hook itself. Regressed in pluggy 1.1.0.</p>
</li>
</ul>
<h1>pluggy 1.3.0 (2023-08-26)</h1>
<h2>Deprecations and Removals</h2>
<ul>
<li><code>[#426](https://github.com/pytest-dev/pluggy/issues/426)
&lt;https://github.com/pytest-dev/pluggy/issues/426&gt;</code>_: Python
3.7 is no longer supported.</li>
</ul>
<h2>Features</h2>
<ul>
<li>
<p><code>[#428](https://github.com/pytest-dev/pluggy/issues/428)
&lt;https://github.com/pytest-dev/pluggy/issues/428&gt;</code>_: Pluggy
now exposes its typings to static type checkers.</p>
<p>As part of this, the following changes are made:</p>
<ul>
<li>Renamed <code>_Result</code> to <code>Result</code>, and exported as
:class:<code>pluggy.Result</code>.</li>
<li>Renamed <code>_HookRelay</code> to <code>HookRelay</code>, and
exported as :class:<code>pluggy.HookRelay</code>.</li>
<li>Renamed <code>_HookCaller</code> to <code>HookCaller</code>, and
exported as :class:<code>pluggy.HookCaller</code>.</li>
<li>Exported <code>HookImpl</code> as
:class:<code>pluggy.HookImpl</code>.</li>
<li>Renamed <code>_HookImplOpts</code> to <code>HookimplOpts</code>, and
exported as :class:<code>pluggy.HookimplOpts</code>.</li>
<li>Renamed <code>_HookSpecOpts</code> to <code>HookspecOpts</code>, and
exported as :class:<code>pluggy.HookspecOpts</code>.</li>
<li>Some fields and classes are marked <code>Final</code> and
<code>@final</code>.</li>
<li>The :ref:<code>api-reference</code> is updated to clearly delineate
pluggy's public API.</li>
</ul>
<p>Compatibility aliases are put in place for the renamed types.
We do not plan to remove the aliases, but we strongly recommend to only
import from <code>pluggy.*</code> to ensure future compatibility.</p>
<p>Please note that pluggy is currently unable to provide strong typing
for hook calls, e.g. <code>pm.hook.my_hook(...)</code>,
nor to statically check that a hook implementation matches the hook
specification's type.</p>
</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/pytest-dev/pluggy/commit/2efd28ef5dcd8b7ad44a41777ce640debbbf9c39"><code>2efd28e</code></a>
Preparing release 1.4.0</li>
<li><a
href="https://github.com/pytest-dev/pluggy/commit/ebeb2f2e7865369e48d953c3dff1789d448f104e"><code>ebeb2f2</code></a>
Merge pull request <a
href="https://redirect.github.com/pytest-dev/pluggy/issues/471">#471</a>
from bluetech/unblock</li>
<li><a
href="https://github.com/pytest-dev/pluggy/commit/3a28b4d7a6d07ff3b3263ac2909be804323f578c"><code>3a28b4d</code></a>
Merge pull request <a
href="https://redirect.github.com/pytest-dev/pluggy/issues/464">#464</a>
from bluetech/hookwrapper-teardown-warning</li>
<li><a
href="https://github.com/pytest-dev/pluggy/commit/4331b7a164b6f0e79d2e64c8144e9bcb077f3a16"><code>4331b7a</code></a>
Merge pull request <a
href="https://redirect.github.com/pytest-dev/pluggy/issues/473">#473</a>
from bluetech/iterator-invalidation</li>
<li><a
href="https://github.com/pytest-dev/pluggy/commit/7aef3e608fddc57648daffaec23432e6893f26ff"><code>7aef3e6</code></a>
hooks: fix plugins registering other plugins in a hook</li>
<li><a
href="https://github.com/pytest-dev/pluggy/commit/cc36605090dfa090777b3d69ca91132ad852c6f2"><code>cc36605</code></a>
Merge pull request <a
href="https://redirect.github.com/pytest-dev/pluggy/issues/472">#472</a>
from bluetech/call-extra-ordering-fix</li>
<li><a
href="https://github.com/pytest-dev/pluggy/commit/443fee6d7a30ca694aa2eec77bde4aea9356efa0"><code>443fee6</code></a>
hooks: fix <code>call_extra</code> extra methods getting ordered before
everything else</li>
<li><a
href="https://github.com/pytest-dev/pluggy/commit/4577b459a9043ba283e0d7a39beeddd627cc54a0"><code>4577b45</code></a>
hooks: add comment describing <code>_hookimpls</code>'s
format/invariants.</li>
<li><a
href="https://github.com/pytest-dev/pluggy/commit/13b3661080cd3f6dcae1dedbceac6814b740c6dc"><code>13b3661</code></a>
Add <code>PluginManager.unblock</code> method to unblock a name</li>
<li><a
href="https://github.com/pytest-dev/pluggy/commit/4b5b2d4ede425742d99ebb6539c42517a4401dc0"><code>4b5b2d4</code></a>
CHANGELOG: fix errors in 1.0.0 entry</li>
<li>Additional commits viewable in <a
href="https://github.com/pytest-dev/pluggy/compare/0.3.0...1.4.0">compare
view</a></li>
</ul>
</details>
<br />


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>
2024-02-15 19:59:30 +01:00
dependabot[bot] a8e484a35c Update pytest requirement from <=7.4.3 to <=8.0.0 in /backend (#469)
Updates the requirements on
[pytest](https://github.com/pytest-dev/pytest) to permit the latest
version.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/pytest-dev/pytest/releases">pytest's
releases</a>.</em></p>
<blockquote>
<h2>pytest 8.0.0 (2024-01-27)</h2>
<p>See <a
href="https://github.com/pytest-dev/pytest/releases/tag/8.0.0rc1">8.0.0rc1</a>
and <a
href="https://github.com/pytest-dev/pytest/releases/tag/8.0.0rc2">8.0.0rc2</a>
for the full changes since pytest 7.4!</p>
<h2>Bug Fixes</h2>
<ul>
<li><a
href="https://redirect.github.com/pytest-dev/pytest/issues/11842">#11842</a>:
Properly escape the <code>reason</code> of a <code>skip
&lt;pytest.mark.skip ref&gt;</code>{.interpreted-text
role=&quot;ref&quot;} mark when writing JUnit XML files.</li>
<li><a
href="https://redirect.github.com/pytest-dev/pytest/issues/11861">#11861</a>:
Avoid microsecond exceeds <code>1_000_000</code> when using
<code>log-date-format</code> with <code>%f</code> specifier, which might
cause the test suite to crash.</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/pytest-dev/pytest/commit/478f8233bca8147445f0c5129f04ada892cc6c91"><code>478f823</code></a>
Prepare release version 8.0.0</li>
<li><a
href="https://github.com/pytest-dev/pytest/commit/608590097a6542768099dd371b84d8b37a1990da"><code>6085900</code></a>
[8.0.x] fix: avoid rounding microsecond to <code>1_000_000</code> (<a
href="https://redirect.github.com/pytest-dev/pytest/issues/11863">#11863</a>)</li>
<li><a
href="https://github.com/pytest-dev/pytest/commit/3b41c65c81d649d962be5ec469f44104b8d09748"><code>3b41c65</code></a>
[8.0.x] Escape skip reason in junitxml (<a
href="https://redirect.github.com/pytest-dev/pytest/issues/11845">#11845</a>)</li>
<li><a
href="https://github.com/pytest-dev/pytest/commit/747072ad26f2443dc8a62eb88db8cbf56fa95470"><code>747072a</code></a>
[8.0.x] Update docstring of scripts/generate-gh-release-notes.py (<a
href="https://redirect.github.com/pytest-dev/pytest/issues/11768">#11768</a>)</li>
<li><a
href="https://github.com/pytest-dev/pytest/commit/011a475baf6e1d0e9ec30c5996d9cbcbe7c95475"><code>011a475</code></a>
Properly attach packages to the GH release notes (<a
href="https://redirect.github.com/pytest-dev/pytest/issues/11839">#11839</a>)
(<a
href="https://redirect.github.com/pytest-dev/pytest/issues/11840">#11840</a>)</li>
<li><a
href="https://github.com/pytest-dev/pytest/commit/97960bdd148972b2f26bd9b336163e590bbc4c6b"><code>97960bd</code></a>
Merge pull request <a
href="https://redirect.github.com/pytest-dev/pytest/issues/11835">#11835</a>
from pytest-dev/release-8.0.0rc2</li>
<li><a
href="https://github.com/pytest-dev/pytest/commit/6be0a3cbf7e014834610139421a0d9804d4a3eae"><code>6be0a3c</code></a>
Prepare release version 8.0.0rc2</li>
<li><a
href="https://github.com/pytest-dev/pytest/commit/44ffe071658f5ac609fe8d3b967e8dba93abc819"><code>44ffe07</code></a>
Merge pull request <a
href="https://redirect.github.com/pytest-dev/pytest/issues/11837">#11837</a>
from pytest-dev/backport-11836-to-8.0.x</li>
<li><a
href="https://github.com/pytest-dev/pytest/commit/14ecb049732bed4dc913e2da55c616882432c978"><code>14ecb04</code></a>
[8.0.x] testing: temporarily disable test due to hypothesis issue</li>
<li><a
href="https://github.com/pytest-dev/pytest/commit/41c8dabee3c40a5d363bf03a3ca2370ee27cbcd0"><code>41c8dab</code></a>
Merge pull request <a
href="https://redirect.github.com/pytest-dev/pytest/issues/11831">#11831</a>
from bluetech/backport-11825-to-8.0.x</li>
<li>Additional commits viewable in <a
href="https://github.com/pytest-dev/pytest/compare/1.0.0b3...8.0.0">compare
view</a></li>
</ul>
</details>
<br />


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>
2024-02-15 19:23:13 +01:00
dependabot[bot] 3050441ae8 Update databases requirement from <=0.7.0 to <=0.8.0 in /backend (#471)
Updates the requirements on
[databases](https://github.com/encode/databases) to permit the latest
version.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/encode/databases/releases">databases's
releases</a>.</em></p>
<blockquote>
<h2>Version 0.8.0</h2>
<h3>Breaking</h3>
<p>This release improves isolation of connections and transactions
across concurrent tasks:</p>
<ul>
<li>Database connections are now task-local and are not inherited by
child tasks</li>
<li>The <code>@db.transaction</code> decorator uses the calling task's
connection</li>
<li>Each new task uses a new connection unless a connection is
explicitly provided</li>
</ul>
<p>These changes improve the consistency of behavior and fix bugs where
connections and transactions were not properly isolated such as: <a
href="https://redirect.github.com/encode/databases/issues/123">encode/databases#123</a>,
<a
href="https://redirect.github.com/encode/databases/issues/125">encode/databases#125</a>,
<a
href="https://redirect.github.com/encode/databases/issues/134">encode/databases#134</a>,
<a
href="https://redirect.github.com/encode/databases/issues/155">encode/databases#155</a>,
<a
href="https://redirect.github.com/encode/databases/issues/424">encode/databases#424</a>,
and <a
href="https://redirect.github.com/encode/databases/issues/452">encode/databases#452</a>.</p>
<p>In most cases, these changes should not be breaking. However, if
using an open transaction across tasks, the active connection
(<code>db.connection()</code>) now needs to be explicitly passed to each
task. See the <a
href="https://www.encode.io/databases/connections_and_transactions/#transactions">new
documentation</a> for an example.</p>
<h3>Added</h3>
<ul>
<li>Allow SQLite query parameters and support cached databases (<a
href="https://redirect.github.com/encode/databases/issues/561">#561</a><a
href="https://redirect.github.com/encode/databases/issues/561">#561</a>)</li>
<li>Support for unix socket for aiomysql and asyncmy (<a
href="https://redirect.github.com/encode/databases/issues/551">#551</a><a
href="https://redirect.github.com/encode/databases/issues/551">#551</a>)</li>
</ul>
<p><a
href="https://redirect.github.com/encode/databases/issues/551">#551</a>:
<a
href="https://redirect.github.com/encode/databases/pull/551">encode/databases#551</a>
<a
href="https://redirect.github.com/encode/databases/issues/561">#561</a>:
<a
href="https://redirect.github.com/encode/databases/pull/546">encode/databases#546</a></p>
<h3>Changed</h3>
<ul>
<li>Improve isolation of connections and transactions during concurrent
usage (<a
href="https://redirect.github.com/encode/databases/issues/546">#546</a><a
href="https://redirect.github.com/encode/databases/issues/546">#546</a>)</li>
<li>Bump requests from 2.28.1 to 2.31.0 (<a
href="https://redirect.github.com/encode/databases/issues/562">#562</a><a
href="https://redirect.github.com/encode/databases/issues/562">#562</a>)
zanieb marked this conversation as resolved.</li>
<li>Bump starlette from 0.20.4 to 0.27.0 (<a
href="https://redirect.github.com/encode/databases/issues/560">#560</a><a
href="https://redirect.github.com/encode/databases/issues/560">#560</a>)</li>
<li>Bump up asyncmy version to fix <code>No module named
'asyncmy.connection'</code> (<a
href="https://redirect.github.com/encode/databases/issues/553">#553</a><a
href="https://redirect.github.com/encode/databases/issues/553">#553</a>)</li>
<li>Bump wheel from 0.37.1 to 0.38.1 (<a
href="https://redirect.github.com/encode/databases/issues/524">#524</a><a
href="https://redirect.github.com/encode/databases/issues/524">#524</a>)</li>
</ul>
<p><a
href="https://redirect.github.com/encode/databases/issues/546">#546</a>:
<a
href="https://redirect.github.com/encode/databases/pull/546">encode/databases#546</a>
<a
href="https://redirect.github.com/encode/databases/issues/562">#562</a>:
<a
href="https://redirect.github.com/encode/databases/pull/562">encode/databases#562</a>
<a
href="https://redirect.github.com/encode/databases/issues/560">#560</a>:
<a
href="https://redirect.github.com/encode/databases/pull/560">encode/databases#560</a>
<a
href="https://redirect.github.com/encode/databases/issues/553">#553</a>:
<a
href="https://redirect.github.com/encode/databases/pull/553">encode/databases#553</a>
<a
href="https://redirect.github.com/encode/databases/issues/524">#524</a>:
<a
href="https://redirect.github.com/encode/databases/pull/524">encode/databases#524</a></p>
<h3>Fixed</h3>
<ul>
<li>Fix the type-hints using more standard mode (<a
href="https://redirect.github.com/encode/databases/issues/526">#526</a><a
href="https://redirect.github.com/encode/databases/issues/526">#526</a>)</li>
</ul>
<p><a
href="https://redirect.github.com/encode/databases/issues/526">#526</a>:
<a
href="https://redirect.github.com/encode/databases/pull/526">encode/databases#526</a></p>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/encode/databases/blob/master/CHANGELOG.md">databases's
changelog</a>.</em></p>
<blockquote>
<h2>0.8.0 (August 28th, 2023)</h2>
<h3>Added</h3>
<ul>
<li>Allow SQLite query parameters and support cached databases (<a
href="https://redirect.github.com/encode/databases/issues/561">#561</a><a
href="https://redirect.github.com/encode/databases/issues/561">#561</a>)</li>
<li>Support for unix socket for aiomysql and asyncmy (<a
href="https://redirect.github.com/encode/databases/issues/551">#551</a><a
href="https://redirect.github.com/encode/databases/issues/551">#551</a>)</li>
</ul>
<p><a
href="https://redirect.github.com/encode/databases/issues/551">#551</a>:
<a
href="https://redirect.github.com/encode/databases/pull/551">encode/databases#551</a>
<a
href="https://redirect.github.com/encode/databases/issues/561">#561</a>:
<a
href="https://redirect.github.com/encode/databases/pull/546">encode/databases#546</a></p>
<h3>Changed</h3>
<ul>
<li>Change isolation connections and transactions during concurrent
usage (<a
href="https://redirect.github.com/encode/databases/issues/546">#546</a><a
href="https://redirect.github.com/encode/databases/issues/546">#546</a>)</li>
<li>Bump requests from 2.28.1 to 2.31.0 (<a
href="https://redirect.github.com/encode/databases/issues/562">#562</a><a
href="https://redirect.github.com/encode/databases/issues/562">#562</a>)</li>
<li>Bump starlette from 0.20.4 to 0.27.0 (<a
href="https://redirect.github.com/encode/databases/issues/560">#560</a><a
href="https://redirect.github.com/encode/databases/issues/560">#560</a>)</li>
<li>Bump up asyncmy version to fix <code>No module named
'asyncmy.connection'</code> (<a
href="https://redirect.github.com/encode/databases/issues/553">#553</a><a
href="https://redirect.github.com/encode/databases/issues/553">#553</a>)</li>
<li>Bump wheel from 0.37.1 to 0.38.1 (<a
href="https://redirect.github.com/encode/databases/issues/524">#524</a><a
href="https://redirect.github.com/encode/databases/issues/524">#524</a>)</li>
</ul>
<p><a
href="https://redirect.github.com/encode/databases/issues/546">#546</a>:
<a
href="https://redirect.github.com/encode/databases/pull/546">encode/databases#546</a>
<a
href="https://redirect.github.com/encode/databases/issues/562">#562</a>:
<a
href="https://redirect.github.com/encode/databases/pull/562">encode/databases#562</a>
<a
href="https://redirect.github.com/encode/databases/issues/560">#560</a>:
<a
href="https://redirect.github.com/encode/databases/pull/560">encode/databases#560</a>
<a
href="https://redirect.github.com/encode/databases/issues/553">#553</a>:
<a
href="https://redirect.github.com/encode/databases/pull/553">encode/databases#553</a>
<a
href="https://redirect.github.com/encode/databases/issues/524">#524</a>:
<a
href="https://redirect.github.com/encode/databases/pull/524">encode/databases#524</a></p>
<h3>Fixed</h3>
<ul>
<li>Fix the type-hints using more standard mode (<a
href="https://redirect.github.com/encode/databases/issues/526">#526</a><a
href="https://redirect.github.com/encode/databases/issues/526">#526</a>)</li>
</ul>
<p><a
href="https://redirect.github.com/encode/databases/issues/526">#526</a>:
<a
href="https://redirect.github.com/encode/databases/pull/526">encode/databases#526</a></p>
<h2>0.7.0 (Dec 18th, 2022)</h2>
<h3>Fixed</h3>
<ul>
<li>Fixed breaking changes in SQLAlchemy cursor; supports
<code>&gt;=1.4.42,&lt;1.5</code> (<a
href="https://redirect.github.com/encode/databases/issues/513">#513</a><a
href="https://redirect.github.com/encode/databases/issues/513">#513</a>)</li>
<li>Wrapped types in <code>typing.Optional</code> where applicable (<a
href="https://redirect.github.com/encode/databases/issues/510">#510</a><a
href="https://redirect.github.com/encode/databases/issues/510">#510</a>)</li>
</ul>
<p><a
href="https://redirect.github.com/encode/databases/issues/513">#513</a>:
<a
href="https://redirect.github.com/encode/databases/pull/513">encode/databases#513</a>
<a
href="https://redirect.github.com/encode/databases/issues/510">#510</a>:
<a
href="https://redirect.github.com/encode/databases/pull/510">encode/databases#510</a></p>
<h2>0.6.2 (Nov 7th, 2022)</h2>
<h3>Changed</h3>
<ul>
<li>Pinned SQLAlchemy <code>&lt;=1.4.41</code> to avoid breaking changes
(<a
href="https://redirect.github.com/encode/databases/issues/520">#520</a><a
href="https://redirect.github.com/encode/databases/issues/520">#520</a>)</li>
</ul>
<p><a
href="https://redirect.github.com/encode/databases/issues/520">#520</a>:
<a
href="https://redirect.github.com/encode/databases/pull/520">encode/databases#520</a></p>
<h2>0.6.1 (Aug 9th, 2022)</h2>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/encode/databases/commit/d653b310e9ebb6b037f4e5922b334e68db27f48f"><code>d653b31</code></a>
chore: release 0.8.0 prep (<a
href="https://redirect.github.com/encode/databases/issues/565">#565</a>)</li>
<li><a
href="https://github.com/encode/databases/commit/9795187928083bb2cdf119284160c649e80ca27b"><code>9795187</code></a>
Allow SQLite query parameters and support cached databases (<a
href="https://redirect.github.com/encode/databases/issues/561">#561</a>)</li>
<li><a
href="https://github.com/encode/databases/commit/25fa29515d4b6387db482734c564152a1034fbe6"><code>25fa295</code></a>
fix: incorrect concurrent usage of connection and transaction (<a
href="https://redirect.github.com/encode/databases/issues/546">#546</a>)</li>
<li><a
href="https://github.com/encode/databases/commit/c09542802afdb1e4fbdde9803a136e9254461e5d"><code>c095428</code></a>
Bump requests from 2.28.1 to 2.31.0 (<a
href="https://redirect.github.com/encode/databases/issues/562">#562</a>)</li>
<li><a
href="https://github.com/encode/databases/commit/f3f0c6f0ba1b2af7d1716d5786d584410c745ed3"><code>f3f0c6f</code></a>
Bump starlette from 0.20.4 to 0.27.0 (<a
href="https://redirect.github.com/encode/databases/issues/560">#560</a>)</li>
<li><a
href="https://github.com/encode/databases/commit/71ea4adfeafc397e0fa54067c012edcbc5a62f7a"><code>71ea4ad</code></a>
Support for unix socket for aiomysql and asyncmy (<a
href="https://redirect.github.com/encode/databases/issues/551">#551</a>)</li>
<li><a
href="https://github.com/encode/databases/commit/ab5eb718a78a27afe18775754e9c0fa2ad9cd211"><code>ab5eb71</code></a>
Bump up asyncmy version to fix <code>No module named
'asyncmy.connection'</code> (<a
href="https://redirect.github.com/encode/databases/issues/553">#553</a>)</li>
<li><a
href="https://github.com/encode/databases/commit/b6eba5f7a19eaf8966e3821f44fe00f4770cb822"><code>b6eba5f</code></a>
Bump wheel from 0.37.1 to 0.38.1 (<a
href="https://redirect.github.com/encode/databases/issues/524">#524</a>)</li>
<li><a
href="https://github.com/encode/databases/commit/77d9b8aa7dc3871133b02adf0c498c583b89a6fd"><code>77d9b8a</code></a>
Fix the type-hints using more standard mode (<a
href="https://redirect.github.com/encode/databases/issues/526">#526</a>)</li>
<li><a
href="https://github.com/encode/databases/commit/6b0c767588f501d5edaabb1bdf665fcf1ded88ea"><code>6b0c767</code></a>
Version 0.7.0 (<a
href="https://redirect.github.com/encode/databases/issues/522">#522</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/encode/databases/compare/0.1.0...0.8.0">compare
view</a></li>
</ul>
</details>
<br />


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>
2024-02-15 19:22:37 +01:00
Erik Vroon f4c8bcdd65 Improve ui when there is no content (#473)
Adds more skeletons, fixes user page, fixes bug in modal for stage item
creation, etc.
2024-02-13 18:57:41 +01:00
Erik Vroon 6a0b9538eb Raise 404 on tournament not found (#474) 2024-02-13 10:06:59 +01:00
Erik Vroon f834fab2de Add pagination (#472)
Adds pagination (backend and frontend) to teams and players GET
endpoints
2024-02-12 19:08:50 +01:00
Erik Vroon 549243b1c3 Use fastapi routes for metrics (#467) 2024-02-11 17:56:02 +01:00
Erik Vroon 9479c92c97 Increase code coverage (#466)
Remove unused code and add some tests
Also fix detection of running pytest
2024-02-10 20:59:36 +01:00
Erik Vroon f7d79eae70 Autorun alembics (#455)
Runs alembic migration automatically on fastapi startup.
Can be disabled using config setting.
2024-02-10 16:36:58 +01:00
Erik Vroon 14728a62bb Make dashboard endpoint unique (#454) 2024-02-10 16:15:27 +01:00
Erik Vroon 8ff8831e90 Fix invalid order of matches in schedule (#453)
Also use CI environment when running pytest
2024-02-09 17:28:02 +01:00
Erik Vroon b42fce38ab Fix demo account deletion (#450)
Fixes error due to `._mapping` invalid return type
2024-02-09 16:52:14 +01:00
Erik Vroon 512166e86a Replace passlib by bcrypt (#452)
fixes https://github.com/evroon/bracket/issues/451

Old password hashes are still valid
2024-02-09 16:50:54 +01:00
Erik Vroonanddependabot[bot] 61611066cd Pydantic v2 migration (#252)
Upgrade Pydantic to V2.

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-09 11:51:14 +01:00
Erik Vroon 31818c374e Fix db initialisation (#427)
fixes https://github.com/evroon/bracket/issues/426
2024-02-04 11:52:18 +01:00
dependabot[bot] 54818446b8 Update pytest requirement from 7.4.4 to 8.0.0 in /backend (#417)
Updates the requirements on
[pytest](https://github.com/pytest-dev/pytest) to permit the latest
version.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/pytest-dev/pytest/releases">pytest's
releases</a>.</em></p>
<blockquote>
<h2>pytest 8.0.0 (2024-01-27)</h2>
<p>See <a
href="https://github.com/pytest-dev/pytest/releases/tag/8.0.0rc1">8.0.0rc1</a>
and <a
href="https://github.com/pytest-dev/pytest/releases/tag/8.0.0rc2">8.0.0rc2</a>
for the full changes since pytest 7.4!</p>
<h2>Bug Fixes</h2>
<ul>
<li><a
href="https://redirect.github.com/pytest-dev/pytest/issues/11842">#11842</a>:
Properly escape the <code>reason</code> of a <code>skip
&lt;pytest.mark.skip ref&gt;</code>{.interpreted-text
role=&quot;ref&quot;} mark when writing JUnit XML files.</li>
<li><a
href="https://redirect.github.com/pytest-dev/pytest/issues/11861">#11861</a>:
Avoid microsecond exceeds <code>1_000_000</code> when using
<code>log-date-format</code> with <code>%f</code> specifier, which might
cause the test suite to crash.</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/pytest-dev/pytest/commit/478f8233bca8147445f0c5129f04ada892cc6c91"><code>478f823</code></a>
Prepare release version 8.0.0</li>
<li><a
href="https://github.com/pytest-dev/pytest/commit/608590097a6542768099dd371b84d8b37a1990da"><code>6085900</code></a>
[8.0.x] fix: avoid rounding microsecond to <code>1_000_000</code> (<a
href="https://redirect.github.com/pytest-dev/pytest/issues/11863">#11863</a>)</li>
<li><a
href="https://github.com/pytest-dev/pytest/commit/3b41c65c81d649d962be5ec469f44104b8d09748"><code>3b41c65</code></a>
[8.0.x] Escape skip reason in junitxml (<a
href="https://redirect.github.com/pytest-dev/pytest/issues/11845">#11845</a>)</li>
<li><a
href="https://github.com/pytest-dev/pytest/commit/747072ad26f2443dc8a62eb88db8cbf56fa95470"><code>747072a</code></a>
[8.0.x] Update docstring of scripts/generate-gh-release-notes.py (<a
href="https://redirect.github.com/pytest-dev/pytest/issues/11768">#11768</a>)</li>
<li><a
href="https://github.com/pytest-dev/pytest/commit/011a475baf6e1d0e9ec30c5996d9cbcbe7c95475"><code>011a475</code></a>
Properly attach packages to the GH release notes (<a
href="https://redirect.github.com/pytest-dev/pytest/issues/11839">#11839</a>)
(<a
href="https://redirect.github.com/pytest-dev/pytest/issues/11840">#11840</a>)</li>
<li><a
href="https://github.com/pytest-dev/pytest/commit/97960bdd148972b2f26bd9b336163e590bbc4c6b"><code>97960bd</code></a>
Merge pull request <a
href="https://redirect.github.com/pytest-dev/pytest/issues/11835">#11835</a>
from pytest-dev/release-8.0.0rc2</li>
<li><a
href="https://github.com/pytest-dev/pytest/commit/6be0a3cbf7e014834610139421a0d9804d4a3eae"><code>6be0a3c</code></a>
Prepare release version 8.0.0rc2</li>
<li><a
href="https://github.com/pytest-dev/pytest/commit/44ffe071658f5ac609fe8d3b967e8dba93abc819"><code>44ffe07</code></a>
Merge pull request <a
href="https://redirect.github.com/pytest-dev/pytest/issues/11837">#11837</a>
from pytest-dev/backport-11836-to-8.0.x</li>
<li><a
href="https://github.com/pytest-dev/pytest/commit/14ecb049732bed4dc913e2da55c616882432c978"><code>14ecb04</code></a>
[8.0.x] testing: temporarily disable test due to hypothesis issue</li>
<li><a
href="https://github.com/pytest-dev/pytest/commit/41c8dabee3c40a5d363bf03a3ca2370ee27cbcd0"><code>41c8dab</code></a>
Merge pull request <a
href="https://redirect.github.com/pytest-dev/pytest/issues/11831">#11831</a>
from bluetech/backport-11825-to-8.0.x</li>
<li>Additional commits viewable in <a
href="https://github.com/pytest-dev/pytest/compare/7.4.4...8.0.0">compare
view</a></li>
</ul>
</details>
<br />


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>
2024-02-03 14:44:10 +01:00
dependabot[bot] 5f411f8dc0 Update bcrypt requirement from 4.0.1 to 4.1.2 in /backend (#398)
Updates the requirements on [bcrypt](https://github.com/pyca/bcrypt) to
permit the latest version.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/pyca/bcrypt/blob/main/release.py">bcrypt's
changelog</a>.</em></p>
<blockquote>
<h1>This file is dual licensed under the terms of the Apache License,
Version</h1>
<h1>2.0, and the BSD License. See the LICENSE file in the root of this
repository</h1>
<h1>for complete details.</h1>
<p>import getpass
import io
import json
import os
import subprocess
import time
import zipfile</p>
<p>import click
import requests</p>
<p>def run(*args, **kwargs):
print(f&quot;[running] {list(args)}&quot;)
subprocess.check_call(list(args), **kwargs)</p>
<p>def wait_for_build_complete_github_actions(session, token, run_url):
while True:
response = session.get(
run_url,
headers={
&quot;Content-Type&quot;: &quot;application/json&quot;,
&quot;Authorization&quot;: f&quot;token {token}&quot;,
},
)
response.raise_for_status()
if response.json()[&quot;conclusion&quot;] is not None:
break
time.sleep(3)</p>
<p>def download_artifacts_github_actions(session, token, run_url):
response = session.get(
run_url,
headers={
&quot;Content-Type&quot;: &quot;application/json&quot;,
&quot;Authorization&quot;: f&quot;token {token}&quot;,
},
)
response.raise_for_status()</p>
<pre><code>response = session.get(
    response.json()[&quot;artifacts_url&quot;],
    headers={
</code></pre>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/pyca/bcrypt/commit/b9223e61e2aec6f2d4841e3fa1f8e5d1ab7e4b61"><code>b9223e6</code></a>
Try building py39 wheels to see if that helps with reinitialization
errors (#...</li>
<li><a
href="https://github.com/pyca/bcrypt/commit/504978344416eb7128142e0fa40cc2d472c194e5"><code>5049783</code></a>
Bump syn from 2.0.40 to 2.0.41 in /src/_bcrypt (<a
href="https://redirect.github.com/pyca/bcrypt/issues/696">#696</a>)</li>
<li><a
href="https://github.com/pyca/bcrypt/commit/642d0709725fd1d376a72868042ff756e53e5ebf"><code>642d070</code></a>
Bump syn from 2.0.39 to 2.0.40 in /src/_bcrypt (<a
href="https://redirect.github.com/pyca/bcrypt/issues/693">#693</a>)</li>
<li><a
href="https://github.com/pyca/bcrypt/commit/8b44a1046a23499f9f8e91a4b2c375fecb511fa2"><code>8b44a10</code></a>
Bump libc from 0.2.150 to 0.2.151 in /src/_bcrypt (<a
href="https://redirect.github.com/pyca/bcrypt/issues/692">#692</a>)</li>
<li><a
href="https://github.com/pyca/bcrypt/commit/951cc64d0cb7df2345a6c1bf0c983645a8020e9f"><code>951cc64</code></a>
Bump once_cell from 1.18.0 to 1.19.0 in /src/_bcrypt (<a
href="https://redirect.github.com/pyca/bcrypt/issues/690">#690</a>)</li>
<li><a
href="https://github.com/pyca/bcrypt/commit/7377c6db3a51ade1c330b27d7eccf3a02b2b9a90"><code>7377c6d</code></a>
Bump actions/setup-python from 4.8.0 to 5.0.0 (<a
href="https://redirect.github.com/pyca/bcrypt/issues/689">#689</a>)</li>
<li><a
href="https://github.com/pyca/bcrypt/commit/61b32039d4cd657dd25d9f32bea15b066880e2a6"><code>61b3203</code></a>
Bump actions/setup-python from 4.7.1 to 4.8.0 (<a
href="https://redirect.github.com/pyca/bcrypt/issues/688">#688</a>)</li>
<li><a
href="https://github.com/pyca/bcrypt/commit/1c3159a28a88a2755149e73dfd1334a2b571c3f5"><code>1c3159a</code></a>
Fixed wheels for older versions of macOS (<a
href="https://redirect.github.com/pyca/bcrypt/issues/687">#687</a>)</li>
<li><a
href="https://github.com/pyca/bcrypt/commit/1a41437d3a38b856ed2d85161fecd28ffbc82fc6"><code>1a41437</code></a>
Update README.rst (<a
href="https://redirect.github.com/pyca/bcrypt/issues/682">#682</a>)</li>
<li><a
href="https://github.com/pyca/bcrypt/commit/7881c5beef0a8e00ecfd6a6decc3b5ba3a55db1c"><code>7881c5b</code></a>
Fix building windows abi3 wheels (<a
href="https://redirect.github.com/pyca/bcrypt/issues/681">#681</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/pyca/bcrypt/compare/4.0.1...4.1.2">compare
view</a></li>
</ul>
</details>
<br />


You can trigger a rebase of this PR 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>

> **Note**
> Automatic rebases have been disabled on this pull request as it has
been open for over 30 days.

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-03 14:43:37 +01:00
Erik Vroon 9767ecfa6b Load correct config value 2024-02-03 14:37:44 +01:00
Erik Vroon 469316efd4 Use Ruff format instead of Black (#420) 2024-02-03 14:29:33 +01:00
Erik Vroon 5659cd7344 Add demo functionality (#413)
Lets users create a temporary demo account to test the tool
2024-02-03 14:18:57 +01:00
Erik Vroon b49e54bcd4 Add missing aiohttp (#411) 2024-01-17 16:40:40 +01:00
Erik Vroon b2a2dd1ea1 Implement hcaptcha (#410) 2024-01-17 16:31:38 +01:00
dependabot[bot] 93443f20bb Update pytest requirement from 7.4.3 to 7.4.4 in /backend (#402)
Updates the requirements on
[pytest](https://github.com/pytest-dev/pytest) to permit the latest
version.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/pytest-dev/pytest/releases">pytest's
releases</a>.</em></p>
<blockquote>
<h2>pytest 7.4.4 (2023-12-31)</h2>
<h2>Bug Fixes</h2>
<ul>
<li><a
href="https://redirect.github.com/pytest-dev/pytest/issues/11140">#11140</a>:
Fix non-string constants at the top of file being detected as docstrings
on Python&gt;=3.8.</li>
<li><a
href="https://redirect.github.com/pytest-dev/pytest/issues/11572">#11572</a>:
Handle an edge case where <code>sys.stderr</code>{.interpreted-text
role=&quot;data&quot;} and <code>sys.__stderr__</code>{.interpreted-text
role=&quot;data&quot;} might already be closed when
<code>faulthandler</code>{.interpreted-text role=&quot;ref&quot;} is
tearing down.</li>
<li><a
href="https://redirect.github.com/pytest-dev/pytest/issues/11710">#11710</a>:
Fixed tracebacks from collection errors not getting pruned.</li>
<li><a
href="https://redirect.github.com/pytest-dev/pytest/issues/7966">#7966</a>:
Removed unhelpful error message from assertion rewrite mechanism when
exceptions are raised in <code>__iter__</code> methods. Now they are
treated un-iterable instead.</li>
</ul>
<h2>Improved Documentation</h2>
<ul>
<li><a
href="https://redirect.github.com/pytest-dev/pytest/issues/11091">#11091</a>:
Updated documentation to refer to hyphenated options: replaced
<code>--junitxml</code> with <code>--junit-xml</code> and
<code>--collectonly</code> with <code>--collect-only</code>.</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/pytest-dev/pytest/commit/33f694f4b30c5c502f21f81cb8ab907b12ad2f65"><code>33f694f</code></a>
Prepare release version 7.4.4</li>
<li><a
href="https://github.com/pytest-dev/pytest/commit/76c107c463afcaddf74ca48252614728c6829ea7"><code>76c107c</code></a>
Merge pull request <a
href="https://redirect.github.com/pytest-dev/pytest/issues/11751">#11751</a>
from bluetech/backport-11143-to-7.4.x</li>
<li><a
href="https://github.com/pytest-dev/pytest/commit/531d76daa4a871df5b2a46cae132851c29abf027"><code>531d76d</code></a>
[7.4.x] Improve reporting from <strong>iter</strong> exceptions (<a
href="https://redirect.github.com/pytest-dev/pytest/issues/11749">#11749</a>)</li>
<li><a
href="https://github.com/pytest-dev/pytest/commit/a0f58fa9e7f9b09b212ed491464be5df9b80fc0b"><code>a0f58fa</code></a>
Merge pull request <a
href="https://redirect.github.com/pytest-dev/pytest/issues/11143">#11143</a>
from tushar-deepsource/patch-1</li>
<li><a
href="https://github.com/pytest-dev/pytest/commit/b1f3387d42571090ee4a35ec1945765b7f2ffae8"><code>b1f3387</code></a>
[7.4.x] <a
href="https://redirect.github.com/pytest-dev/pytest/issues/11091">#11091</a>:
documentation should use hypthonated properties (<a
href="https://redirect.github.com/pytest-dev/pytest/issues/11750">#11750</a>)</li>
<li><a
href="https://github.com/pytest-dev/pytest/commit/2cdd619bf49ee7c5306dc70dcbf71090839ea985"><code>2cdd619</code></a>
Merge pull request <a
href="https://redirect.github.com/pytest-dev/pytest/issues/11747">#11747</a>
from pytest-dev/backport-11711-to-7.4.x</li>
<li><a
href="https://github.com/pytest-dev/pytest/commit/d06c05bd23ea6af8e07fd944e56c58b64375b724"><code>d06c05b</code></a>
[7.4.x] nodes: fix tracebacks from collection errors are not getting
pruned</li>
<li><a
href="https://github.com/pytest-dev/pytest/commit/5582bfcddf78929f7979c5023b167b333e1c2dd9"><code>5582bfc</code></a>
[7.4.x] Improves clarity in Sphinx documentation for function signature.
(<a
href="https://redirect.github.com/pytest-dev/pytest/issues/11">#11</a>...</li>
<li><a
href="https://github.com/pytest-dev/pytest/commit/13024efd7afdbae80ce70d27295d9bbe62670cb8"><code>13024ef</code></a>
[7.4.x] Fix for operation on closed file in faulthandler teardown (<a
href="https://redirect.github.com/pytest-dev/pytest/issues/11631">#11631</a>)</li>
<li><a
href="https://github.com/pytest-dev/pytest/commit/a40dacf6577ae990740e10572582538dfaf357b6"><code>a40dacf</code></a>
[7.4.x] XFAIL TestLocalPath.test_make_numbered_dir_multiprocess_safe (<a
href="https://redirect.github.com/pytest-dev/pytest/issues/11616">#11616</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/pytest-dev/pytest/compare/7.4.3...7.4.4">compare
view</a></li>
</ul>
</details>
<br />


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>
2024-01-01 11:12:47 +01:00