Skip to content

Commit

Permalink
Revert ansible-compat vendoring (#3478)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssbarnea authored May 22, 2023
1 parent 2fa3858 commit 8edd021
Show file tree
Hide file tree
Showing 12 changed files with 14 additions and 67 deletions.
1 change: 1 addition & 0 deletions .config/requirements-lock.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#
# pip-compile --no-annotate --output-file=.config/requirements-lock.txt --resolver=backtracking --strip-extras --unsafe-package=resolvelib --unsafe-package=ruamel-yaml-clib pyproject.toml
#
ansible-compat==4.0.5
ansible-core==2.15.0
attrs==23.1.0
black==23.3.0
Expand Down
1 change: 1 addition & 0 deletions .config/requirements.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Special order section for helping pip:
will-not-work-on-windows-try-from-wsl-instead; platform_system=='Windows'
ansible-core>=2.12.0 # GPLv3
ansible-compat>=4.0.5 # GPLv3
# alphabetically sorted:
black>=22.8.0 # MIT
filelock>=3.3.0 # The Unlicense
Expand Down
1 change: 1 addition & 0 deletions .config/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#
# pip-compile --extra=docs --extra=test --no-annotate --output-file=.config/requirements.txt --resolver=backtracking --strip-extras --unsafe-package=resolvelib --unsafe-package=ruamel-yaml-clib pyproject.toml
#
ansible-compat==4.0.5
ansible-core==2.15.0
astroid==2.15.5
attrs==23.1.0
Expand Down
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +0,0 @@
[submodule ".projects/ansible-compat"]
path = .projects/ansible-compat
url = https://github.com/ansible/ansible-compat
1 change: 0 additions & 1 deletion .projects/ansible-compat
Submodule ansible-compat deleted from 34c145
5 changes: 2 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ source = ["src", ".tox/*/site-packages"]

[tool.coverage.report]
exclude_lines = ["pragma: no cover", "if TYPE_CHECKING:"]
omit = ["*/src/*/_vendor/*", "test/*"]
omit = ["test/*"]
# Increase it just so it would pass on any single-python run
fail_under = 93
skip_covered = true
Expand Down Expand Up @@ -137,7 +137,7 @@ bad-names = [
# pylint defaults + f,fh,v,id
good-names = ["i", "j", "k", "Run", "_", "f", "fh", "v", "id", "T"]
# Ignore as being generated:
ignore-paths = "^src/ansiblelint/(_version|_vendor).*$"
ignore-paths = "^src/ansiblelint/_version.*$"

[tool.pylint."MESSAGES CONTROL"]
# increase from default is 50 which is too aggressive
Expand Down Expand Up @@ -199,7 +199,6 @@ norecursedirs = [
"collections",
"dist",
"docs",
"src/ansiblelint/_vendor",
"src/ansible_lint.egg-info",
".cache",
".eggs",
Expand Down
4 changes: 0 additions & 4 deletions src/ansiblelint/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@
"""Main ansible-lint package."""
from __future__ import annotations

import ansiblelint._vendor # noqa: F401
from ansiblelint.version import __version__

# make vendored top-level modules accessible EARLY


__all__ = ("__version__",)
47 changes: 0 additions & 47 deletions src/ansiblelint/_vendor/__init__.py

This file was deleted.

1 change: 0 additions & 1 deletion src/ansiblelint/_vendor/ansible_compat

This file was deleted.

14 changes: 7 additions & 7 deletions test/schemas/package-lock.json

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

2 changes: 1 addition & 1 deletion test/schemas/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"@types/js-yaml": "^4.0.5",
"@types/minimatch": "^5.1.2",
"@types/mocha": "^10.0.1",
"@types/node": "^20.2.1",
"@types/node": "^20.2.3",
"chai": "^4.3.7",
"minimatch": "^9.0.1",
"mocha": "^10.2.0",
Expand Down
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ description =
devel: ansible devel branch
deps =
devel: ansible-core @ git+https://github.com/ansible/ansible.git # GPLv3+
devel: ansible-compat @ git+https://github.com/ansible/ansible-compat.git # GPLv3+
extras =
test
commands_pre =
Expand Down

0 comments on commit 8edd021

Please sign in to comment.