Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion sdks/python/apache_beam/yaml/standard_io.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,6 @@
catalog_properties: 'catalog_properties'
config_properties: 'config_properties'
triggering_frequency_seconds: 'triggering_frequency_seconds'
append_batch_size: 'append_batch_size'
Comment thread
derrickaw marked this conversation as resolved.
location_prefix: 'location_prefix'
partition_fields: 'partition_fields'
table_properties: 'table_properties'
Expand Down
28 changes: 22 additions & 6 deletions sdks/python/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -101,16 +101,32 @@ tasks.register("generateManagedIOPage") {
}
}

tasks.register("prepareExpansionServicesForYamlDocs") {
description "Builds all expansion services referenced in apache_beam/yaml/*.*"

dependsOn ":sdks:java:extensions:schemaio-expansion-service:shadowJar"
dependsOn ":sdks:java:extensions:sql:expansion-service:shadowJar"
dependsOn ":sdks:java:io:expansion-service:shadowJar"
dependsOn ":sdks:java:io:google-cloud-platform:expansion-service:shadowJar"

doLast {
// Copy expansion service jar into cache path (.apache_beam/cache/jars/).
copy {
from project.tasks.findByPath(":sdks:java:extensions:schemaio-expansion-service:shadowJar")
from project.tasks.findByPath(":sdks:java:extensions:sql:expansion-service:shadowJar")
from project.tasks.findByPath(":sdks:java:io:expansion-service:shadowJar")
from project.tasks.findByPath(":sdks:java:io:google-cloud-platform:expansion-service:shadowJar")
into "${System.getProperty('user.home')}/.apache_beam/cache/jars/"
}
Comment thread
Abacn marked this conversation as resolved.
}
}

tasks.register("generateYamlDocs") {
description "Generates the reference documentation for all YAML transforms."

dependsOn buildPython
// Need to build all expansion services referenced in apache_beam/yaml/*.*
// grep -oh 'sdk.*Jar' sdks/python/apache_beam/yaml/*.yaml | sort | uniq
dependsOn ":sdks:java:extensions:schemaio-expansion-service:shadowJar"
dependsOn ":sdks:java:extensions:sql:expansion-service:shadowJar"
dependsOn ":sdks:java:io:expansion-service:build"
dependsOn ":sdks:java:io:google-cloud-platform:expansion-service:build"
dependsOn prepareExpansionServicesForYamlDocs

def extraPackages = "pyyaml markdown docstring_parser pandas pygments Jinja2 virtualenv-clone"

doLast {
Expand Down
Loading