-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'EncodingWarning-spam-reduction-pytest.ini' of https://g…
…ithub.com/Avasam/setuptools into EncodingWarning-spam-reduction-pytest.ini
- Loading branch information
Showing
60 changed files
with
521 additions
and
368 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,33 @@ | ||
[mypy] | ||
ignore_missing_imports = True | ||
# required to support namespace packages | ||
# https://github.com/python/mypy/issues/14057 | ||
# CI should test for all versions, local development gets hints for oldest supported | ||
python_version = 3.8 | ||
strict = False | ||
warn_unused_ignores = True | ||
# required to support namespace packages: https://github.com/python/mypy/issues/14057 | ||
explicit_package_bases = True | ||
exclude = (?x)( | ||
^build/ | ||
| ^.tox/ | ||
| ^pkg_resources/tests/data/my-test-package-source/setup.py$ # Duplicate module name | ||
| ^.+?/(_vendor|extern)/ # Vendored | ||
| ^setuptools/_distutils/ # Vendored | ||
| ^setuptools/config/_validate_pyproject/ # Auto-generated | ||
) | ||
# Ignoring attr-defined because setuptools wraps a lot of distutils classes, adding new attributes, | ||
# w/o updating all the attributes and return types from the base classes for type-checkers to understand | ||
# Especially with setuptools.dist.command vs distutils.dist.command vs setuptools._distutils.dist.command | ||
# *.extern modules that actually live in *._vendor will also cause attr-defined issues on import | ||
disable_error_code = attr-defined | ||
|
||
# - Avoid raising issues when importing from "extern" modules, as those are added to path dynamically. | ||
# https://github.com/pypa/setuptools/pull/3979#discussion_r1367968993 | ||
# - distutils._modified has different errors on Python 3.8 [import-untyped], on Python 3.9+ [import-not-found] | ||
# - All jaraco modules are still untyped | ||
[mypy-pkg_resources.extern.*,setuptools.extern.*,distutils._modified,jaraco.*] | ||
ignore_missing_imports = True | ||
|
||
# - pkg_resources tests create modules that won't exists statically before the test is run. | ||
# Let's ignore all "import-not-found" since, if an import really wasn't found, then the test would fail. | ||
# - setuptools._vendor.packaging._manylinux: Mypy issue, this vendored module is already excluded! | ||
[mypy-pkg_resources.tests.*,setuptools._vendor.packaging._manylinux] | ||
disable_error_code = import-not-found |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Clarify some `pkg_resources` methods return `bytes`, not `str`. Also return an empty `bytes` in ``EmptyProvider._get`` -- by :user:`Avasam` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Return an empty `list` by default in ``pkg_resources.ResourceManager.cleanup_resources`` -- by :user:`Avasam` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Made ``pkg_resoursces.NullProvider``'s ``has_metadata`` and ``metadata_isdir`` methods return actual booleans like all other Providers. -- by :user:`Avasam` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Remove unused ``resources_stream`` ``resource_dir`` and shadowed functions from `pkg_resources` -- by :user:`Avasam` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Avoid implicit ``encoding`` parameter in ``setuptools/tests``. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Avoid implicit ``encoding`` parameter in ``pkg_resources/tests``. |
Oops, something went wrong.