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 # 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 # The CA Bundle should always use Unix-style line endings, even on Windows
src/pip/_vendor/certifi/*.pem eol=lf src/pip/_vendor/certifi/*.pem eol=lf

View File

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

View File

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

View File

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