Skip to content

Commit

Permalink
Fix pytest error due to deprecation warning (omry#1101)
Browse files Browse the repository at this point in the history
* Fix pytest error due to deprecation warning

* Revert "pin setuptools to avoid DeprecationWarning (omry#1069)"

This reverts commit 5b6257b.
  • Loading branch information
odelalleau authored Jul 22, 2023
1 parent 7dae67e commit 8065c7c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,7 @@
def deps(
session: Session, editable_install: bool, requirements: str = "requirements/dev.txt"
) -> None:
session.install(
"--upgrade",
"setuptools<=66", # pinned due to DeprecationWarning, see https://github.com/omry/omegaconf/issues/1068
"pip",
)
session.install("--upgrade", "setuptools", "pip")
extra_flags = ["-e"] if editable_install else []
session.install("-r", requirements, *extra_flags, ".", silent=True)

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ exclude = '''
'''

[tool.pytest.ini_options]
addopts = "--import-mode=append -Werror"
addopts = "--import-mode=append -Werror -W 'ignore:pkg_resources is deprecated as an API:DeprecationWarning' -W 'ignore:Deprecated call to `pkg_resources:DeprecationWarning'"
pythonpath = ["."]

[tool.towncrier]
Expand Down

0 comments on commit 8065c7c

Please sign in to comment.