Update latest_deps workflow to migrate poetry --no-dev -> --without dev (#18617)
This commit is contained in:
parent
c5999cf452
commit
947216abc0
2
.github/workflows/latest_deps.yml
vendored
2
.github/workflows/latest_deps.yml
vendored
@ -60,7 +60,7 @@ jobs:
|
||||
- run: poetry run pip list > before.txt
|
||||
# Upgrade all runtime dependencies only. This is intended to mimic a fresh
|
||||
# `pip install matrix-synapse[all]` as closely as possible.
|
||||
- run: poetry update --no-dev
|
||||
- run: poetry update --without dev
|
||||
- run: poetry run pip list > after.txt && (diff -u before.txt after.txt || true)
|
||||
- name: Remove unhelpful options from mypy config
|
||||
run: sed -e '/warn_unused_ignores = True/d' -e '/warn_redundant_casts = True/d' -i mypy.ini
|
||||
|
||||
1
changelog.d/18617.misc
Normal file
1
changelog.d/18617.misc
Normal file
@ -0,0 +1 @@
|
||||
Unbreak "Latest dependencies" workflow by using the `--without dev` poetry option instead of removed `--no-dev`.
|
||||
@ -224,7 +224,7 @@ pydantic = ">=1.7.4, <3"
|
||||
# https://github.com/python-poetry/poetry/issues/6154). Both `pip install` and
|
||||
# `poetry build` do the right thing without this explicit dependency.
|
||||
#
|
||||
# This isn't really a dev-dependency, as `poetry install --no-dev` will fail,
|
||||
# This isn't really a dev-dependency, as `poetry install --without dev` will fail,
|
||||
# but the alternative is to add it to the main list of deps where it isn't
|
||||
# needed.
|
||||
setuptools_rust = ">=1.3"
|
||||
|
||||
@ -74,7 +74,7 @@ def _is_dev_dependency(req: Requirement) -> bool:
|
||||
def _should_ignore_runtime_requirement(req: Requirement) -> bool:
|
||||
# This is a build-time dependency. Irritatingly, `poetry build` ignores the
|
||||
# requirements listed in the [build-system] section of pyproject.toml, so in order
|
||||
# to support `poetry install --no-dev` we have to mark it as a runtime dependency.
|
||||
# to support `poetry install --without dev` we have to mark it as a runtime dependency.
|
||||
# See discussion on https://github.com/python-poetry/poetry/issues/6154 (it sounds
|
||||
# like the poetry authors don't consider this a bug?)
|
||||
#
|
||||
|
||||
Loading…
Reference in New Issue
Block a user