Get rid of the tools/automation folder

It was an unnecessary level added to the folder hierarchy.
This commit is contained in:
Pradyun Gedam 2021-04-01 23:25:09 +01:00
parent 1720aee672
commit 147b914782
No known key found for this signature in database
GPG Key ID: FF99710C4332258E
9 changed files with 5 additions and 5 deletions

2
.gitattributes vendored
View File

@ -1,4 +1,4 @@
# Patches must have Unix-style line endings, even on Windows
tools/automation/vendoring/patches/* eol=lf
tools/vendoring/patches/* eol=lf
# The CA Bundle should always use Unix-style line endings, even on Windows
src/pip/_vendor/certifi/*.pem eol=lf

View File

@ -12,7 +12,7 @@ import nox
# fmt: off
sys.path.append(".")
from tools.automation import release # isort:skip # noqa
from tools import release # isort:skip # noqa
sys.path.pop()
# fmt: on

View File

@ -9,7 +9,7 @@ filename = "NEWS.rst"
directory = "news/"
title_format = "{version} ({project_date})"
issue_format = "`#{issue} <https://github.com/pypa/pip/issues/{issue}>`_"
template = "tools/automation/news/template.rst"
template = "tools/news/template.rst"
type = [
{ name = "Process", directory = "process", showcontent = true },
{ name = "Deprecations and Removals", directory = "removal", showcontent = true },
@ -26,7 +26,7 @@ requirements = "src/pip/_vendor/vendor.txt"
namespace = "pip._vendor"
protected-files = ["__init__.py", "README.rst", "vendor.txt"]
patches-dir = "tools/automation/vendoring/patches"
patches-dir = "tools/vendoring/patches"
[tool.vendoring.transformations]
substitute = [

View File

@ -28,7 +28,7 @@ def get_version_from_arguments(session: Session) -> Optional[str]:
cmd = [
# https://github.com/theacodes/nox/pull/378
os.path.join(session.bin, "python"), # type: ignore
"tools/automation/release/check_version.py",
"tools/release/check_version.py",
version
]
not_ok = subprocess.run(cmd).returncode