chore(google/maps): Rename nox.py to noxfile.py
upstream wip fix here: https://github.com/googleapis/gapic-generator/pull/3156 PiperOrigin-RevId: 304411146
This commit is contained in:
parent
bbf26d7f11
commit
b89abbf12c
|
|
@ -4,3 +4,8 @@ sh_binary(
|
|||
name = "postprocessing_java",
|
||||
srcs = ["postprocessing_java.sh"],
|
||||
)
|
||||
|
||||
sh_binary(
|
||||
name = "postprocessing_py",
|
||||
srcs = ["postprocessing_py.sh"],
|
||||
)
|
||||
|
|
|
|||
|
|
@ -0,0 +1,39 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -eu
|
||||
|
||||
# Performs Maps specific post-processing on a .tar.gz archive
|
||||
|
||||
# Rename nox config file from nox.py to noxfile.py if it exists
|
||||
#
|
||||
# Arguments:
|
||||
# postprocess_dir: The directory that contains the Java files to postprocess.
|
||||
rename_nox_file() {
|
||||
postprocess_dir="${1}"
|
||||
|
||||
if [ -f "$postprocess_dir/nox.py" ]; then
|
||||
mv "$postprocess_dir/nox.py" "$postprocess_dir/noxfile.py"
|
||||
fi
|
||||
}
|
||||
|
||||
use_markdown_readme() {
|
||||
sed -e "s/= 'com\.google\.cloud'/= 'com\.google\.maps'/g" "${1}/${f}" > "${f}.new" && mv "${f}.new" "${f}"
|
||||
|
||||
}
|
||||
|
||||
# Main entry point
|
||||
#
|
||||
# Arguments:
|
||||
# postprocess_dir: The directory that contains the Java files to postprocess.
|
||||
main() {
|
||||
postprocess_dir="$1"
|
||||
|
||||
if [ "${postprocess_dir}" = "" ]; then
|
||||
echo "postprocess_dir is required"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
rename_nox_file "${postprocess_dir}"
|
||||
}
|
||||
|
||||
main "$@"
|
||||
|
|
@ -181,6 +181,12 @@ py_gapic_assembly_pkg(
|
|||
],
|
||||
)
|
||||
|
||||
maps_assembly_pkg(
|
||||
name = "roads-v1op-py-postprocess",
|
||||
srcs = [":roads-v1op-py"],
|
||||
language = "py",
|
||||
)
|
||||
|
||||
##############################################################################
|
||||
# PHP
|
||||
##############################################################################
|
||||
|
|
|
|||
|
|
@ -201,6 +201,12 @@ py_gapic_assembly_pkg(
|
|||
],
|
||||
)
|
||||
|
||||
maps_assembly_pkg(
|
||||
name = "routes-v1-py-postprocess",
|
||||
srcs = [":routes-v1-py"],
|
||||
language = "py",
|
||||
)
|
||||
|
||||
##############################################################################
|
||||
# PHP
|
||||
##############################################################################
|
||||
|
|
@ -358,6 +364,7 @@ csharp_gapic_assembly_pkg(
|
|||
":routes_csharp_proto",
|
||||
],
|
||||
)
|
||||
|
||||
##############################################################################
|
||||
# C++
|
||||
##############################################################################
|
||||
|
|
|
|||
Loading…
Reference in New Issue