diff --git a/.gitignore b/.gitignore index 40ccb23..38e8f9f 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,4 @@ automathon/errors/__pycache__/ build/ .idea/ bazel-* +.pytest_cache/ diff --git a/third_party/BUILD.bazel b/BUILD.bazel similarity index 100% rename from third_party/BUILD.bazel rename to BUILD.bazel diff --git a/MODULE.bazel b/MODULE.bazel index 00bb183..f6927d3 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -1,6 +1,18 @@ -############################################################################### -# Bazel now uses Bzlmod by default to manage external dependencies. -# Please consider migrating your external dependencies from WORKSPACE to MODULE.bazel. -# -# For more details, please check https://github.com/bazelbuild/bazel/issues/18958 -############################################################################### +""" +Bazel build file for the Python module. + +Imports the `rules_python` dependency and the `pip` extension from the +`rules_python` repository. +""" + +bazel_dep(name = "rules_python", version = "0.34.0") + +pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip") + +pip.parse( + hub_name = "pip", + python_version = "3.11", + requirements_lock = "//:requirements.txt", +) + +use_repo(pip, "pip") diff --git a/MODULE.bazel.lock b/MODULE.bazel.lock index 11bf37a..e0300b9 100644 --- a/MODULE.bazel.lock +++ b/MODULE.bazel.lock @@ -1,6 +1,6 @@ { "lockFileVersion": 6, - "moduleFileHash": "0e3e315145ac7ee7a4e0ac825e1c5e03c068ec1254dd42c3caaecb27e921dc4d", + "moduleFileHash": "0029e81ea7f225251cac102fe58ba0963802605f7b13b61595dbb3a1c050a138", "flags": { "cmdRegistries": [ "https://bcr.bazel.build/" @@ -23,12 +23,184 @@ "repoName": "", "executionPlatformsToRegister": [], "toolchainsToRegister": [], - "extensionUsages": [], + "extensionUsages": [ + { + "extensionBzlFile": "@rules_python//python/extensions:pip.bzl", + "extensionName": "pip", + "usingModule": "", + "location": { + "file": "@@//:MODULE.bazel", + "line": 10, + "column": 20 + }, + "imports": { + "pip": "pip" + }, + "devImports": [], + "tags": [ + { + "tagName": "parse", + "attributeValues": { + "hub_name": "pip", + "python_version": "3.11", + "requirements_lock": "//:requirements.txt" + }, + "devDependency": false, + "location": { + "file": "@@//:MODULE.bazel", + "line": 12, + "column": 10 + } + } + ], + "hasDevUseExtension": false, + "hasNonDevUseExtension": true + } + ], "deps": { + "rules_python": "rules_python@0.34.0", "bazel_tools": "bazel_tools@_", "local_config_platform": "local_config_platform@_" } }, + "rules_python@0.34.0": { + "name": "rules_python", + "version": "0.34.0", + "key": "rules_python@0.34.0", + "repoName": "rules_python", + "executionPlatformsToRegister": [], + "toolchainsToRegister": [ + "@pythons_hub//:all" + ], + "extensionUsages": [ + { + "extensionBzlFile": "@rules_python//python/private:internal_deps.bzl", + "extensionName": "internal_deps", + "usingModule": "rules_python@0.34.0", + "location": { + "file": "https://bcr.bazel.build/modules/rules_python/0.34.0/MODULE.bazel", + "line": 16, + "column": 30 + }, + "imports": { + "pypi__build": "pypi__build", + "pypi__click": "pypi__click", + "pypi__colorama": "pypi__colorama", + "pypi__importlib_metadata": "pypi__importlib_metadata", + "pypi__installer": "pypi__installer", + "pypi__more_itertools": "pypi__more_itertools", + "pypi__packaging": "pypi__packaging", + "pypi__pep517": "pypi__pep517", + "pypi__pip": "pypi__pip", + "pypi__pip_tools": "pypi__pip_tools", + "pypi__pyproject_hooks": "pypi__pyproject_hooks", + "pypi__setuptools": "pypi__setuptools", + "pypi__tomli": "pypi__tomli", + "pypi__wheel": "pypi__wheel", + "pypi__zipp": "pypi__zipp", + "rules_python_internal": "rules_python_internal" + }, + "devImports": [], + "tags": [], + "hasDevUseExtension": false, + "hasNonDevUseExtension": true + }, + { + "extensionBzlFile": "@rules_python//python/extensions:python.bzl", + "extensionName": "python", + "usingModule": "rules_python@0.34.0", + "location": { + "file": "https://bcr.bazel.build/modules/rules_python/0.34.0/MODULE.bazel", + "line": 39, + "column": 23 + }, + "imports": { + "python_3_11": "python_3_11", + "python_versions": "python_versions", + "pythons_hub": "pythons_hub" + }, + "devImports": [], + "tags": [ + { + "tagName": "toolchain", + "attributeValues": { + "is_default": true, + "python_version": "3.11" + }, + "devDependency": false, + "location": { + "file": "https://bcr.bazel.build/modules/rules_python/0.34.0/MODULE.bazel", + "line": 45, + "column": 17 + } + } + ], + "hasDevUseExtension": false, + "hasNonDevUseExtension": true + }, + { + "extensionBzlFile": "@rules_python//python/private/pypi:pip.bzl", + "extensionName": "pip_internal", + "usingModule": "rules_python@0.34.0", + "location": { + "file": "https://bcr.bazel.build/modules/rules_python/0.34.0/MODULE.bazel", + "line": 57, + "column": 20 + }, + "imports": { + "rules_python_publish_deps": "rules_python_publish_deps" + }, + "devImports": [], + "tags": [ + { + "tagName": "parse", + "attributeValues": { + "hub_name": "rules_python_publish_deps", + "python_version": "3.11", + "requirements_by_platform": { + "//tools/publish:requirements.txt": "linux_*", + "//tools/publish:requirements_darwin.txt": "osx_*", + "//tools/publish:requirements_windows.txt": "windows_*" + } + }, + "devDependency": false, + "location": { + "file": "https://bcr.bazel.build/modules/rules_python/0.34.0/MODULE.bazel", + "line": 58, + "column": 10 + } + } + ], + "hasDevUseExtension": false, + "hasNonDevUseExtension": true + } + ], + "deps": { + "bazel_features": "bazel_features@1.9.1", + "bazel_skylib": "bazel_skylib@1.6.1", + "rules_cc": "rules_cc@0.0.9", + "platforms": "platforms@0.0.8", + "rules_proto": "rules_proto@6.0.0-rc1", + "com_google_protobuf": "protobuf@24.4", + "bazel_tools": "bazel_tools@_", + "local_config_platform": "local_config_platform@_" + }, + "repoSpec": { + "bzlFile": "@@bazel_tools//tools/build_defs/repo:http.bzl", + "ruleClassName": "http_archive", + "attributes": { + "urls": [ + "https://github.com/bazelbuild/rules_python/releases/download/0.34.0/rules_python-0.34.0.tar.gz" + ], + "integrity": "sha256-d4quqz5s/VbWgcifXBDXrWv40vGnLeneVbIwgbLTFhg=", + "strip_prefix": "rules_python-0.34.0", + "remote_patches": { + "https://bcr.bazel.build/modules/rules_python/0.34.0/patches/module_dot_bazel_version.patch": "sha256-9Hwgtvb4RwCw/H1tVHuzJFpDSLvbPWD0dw4elwjeHQM=" + }, + "remote_patch_strip": 1 + } + } + }, "bazel_tools@_": { "name": "bazel_tools", "version": "", @@ -171,11 +343,11 @@ "rules_cc": "rules_cc@0.0.9", "rules_java": "rules_java@7.4.0", "rules_license": "rules_license@0.0.7", - "rules_proto": "rules_proto@5.3.0-21.7", - "rules_python": "rules_python@0.22.1", + "rules_proto": "rules_proto@6.0.0-rc1", + "rules_python": "rules_python@0.34.0", "buildozer": "buildozer@6.4.0.2", - "platforms": "platforms@0.0.7", - "com_google_protobuf": "protobuf@21.7", + "platforms": "platforms@0.0.8", + "com_google_protobuf": "protobuf@24.4", "zlib": "zlib@1.3", "build_bazel_apple_support": "apple_support@1.5.0", "local_config_platform": "local_config_platform@_" @@ -190,10 +362,88 @@ "toolchainsToRegister": [], "extensionUsages": [], "deps": { - "platforms": "platforms@0.0.7", + "platforms": "platforms@0.0.8", "bazel_tools": "bazel_tools@_" } }, + "bazel_features@1.9.1": { + "name": "bazel_features", + "version": "1.9.1", + "key": "bazel_features@1.9.1", + "repoName": "bazel_features", + "executionPlatformsToRegister": [], + "toolchainsToRegister": [], + "extensionUsages": [ + { + "extensionBzlFile": "@bazel_features//private:extensions.bzl", + "extensionName": "version_extension", + "usingModule": "bazel_features@1.9.1", + "location": { + "file": "https://bcr.bazel.build/modules/bazel_features/1.9.1/MODULE.bazel", + "line": 15, + "column": 24 + }, + "imports": { + "bazel_features_globals": "bazel_features_globals", + "bazel_features_version": "bazel_features_version" + }, + "devImports": [], + "tags": [], + "hasDevUseExtension": false, + "hasNonDevUseExtension": true + } + ], + "deps": { + "bazel_skylib": "bazel_skylib@1.6.1", + "bazel_tools": "bazel_tools@_", + "local_config_platform": "local_config_platform@_" + }, + "repoSpec": { + "bzlFile": "@@bazel_tools//tools/build_defs/repo:http.bzl", + "ruleClassName": "http_archive", + "attributes": { + "urls": [ + "https://github.com/bazel-contrib/bazel_features/releases/download/v1.9.1/bazel_features-v1.9.1.tar.gz" + ], + "integrity": "sha256-13h9oomn+0lzUiEa0gDsn2mIIqngdXpJdv2fcT/zcrM=", + "strip_prefix": "bazel_features-1.9.1", + "remote_patches": { + "https://bcr.bazel.build/modules/bazel_features/1.9.1/patches/module_dot_bazel_version.patch": "sha256-a2ofwS5r2Qq+WxzVa7sLbRXhfT3JoYxSlUVQH/nL454=" + }, + "remote_patch_strip": 1 + } + } + }, + "bazel_skylib@1.6.1": { + "name": "bazel_skylib", + "version": "1.6.1", + "key": "bazel_skylib@1.6.1", + "repoName": "bazel_skylib", + "executionPlatformsToRegister": [], + "toolchainsToRegister": [ + "//toolchains/unittest:cmd_toolchain", + "//toolchains/unittest:bash_toolchain" + ], + "extensionUsages": [], + "deps": { + "platforms": "platforms@0.0.8", + "bazel_tools": "bazel_tools@_", + "local_config_platform": "local_config_platform@_" + }, + "repoSpec": { + "bzlFile": "@@bazel_tools//tools/build_defs/repo:http.bzl", + "ruleClassName": "http_archive", + "attributes": { + "urls": [ + "https://github.com/bazelbuild/bazel-skylib/releases/download/1.6.1/bazel-skylib-1.6.1.tar.gz" + ], + "integrity": "sha256-nziIakBUjG6WwQa3UvJCEw7hGqoGila6flb0UR8z5PI=", + "strip_prefix": "", + "remote_patches": {}, + "remote_patch_strip": 0 + } + } + }, "rules_cc@0.0.9": { "name": "rules_cc", "version": "0.0.9", @@ -223,7 +473,163 @@ } ], "deps": { - "platforms": "platforms@0.0.7", + "platforms": "platforms@0.0.8", + "bazel_tools": "bazel_tools@_", + "local_config_platform": "local_config_platform@_" + }, + "repoSpec": { + "bzlFile": "@@bazel_tools//tools/build_defs/repo:http.bzl", + "ruleClassName": "http_archive", + "attributes": { + "urls": [ + "https://github.com/bazelbuild/rules_cc/releases/download/0.0.9/rules_cc-0.0.9.tar.gz" + ], + "integrity": "sha256-IDeHW5pEVtzkp50RKorohbvEqtlo5lh9ym5k86CQDN8=", + "strip_prefix": "rules_cc-0.0.9", + "remote_patches": { + "https://bcr.bazel.build/modules/rules_cc/0.0.9/patches/module_dot_bazel_version.patch": "sha256-mM+qzOI0SgAdaJBlWOSMwMPKpaA9b7R37Hj/tp5bb4g=" + }, + "remote_patch_strip": 0 + } + } + }, + "platforms@0.0.8": { + "name": "platforms", + "version": "0.0.8", + "key": "platforms@0.0.8", + "repoName": "platforms", + "executionPlatformsToRegister": [], + "toolchainsToRegister": [], + "extensionUsages": [], + "deps": { + "rules_license": "rules_license@0.0.7", + "bazel_tools": "bazel_tools@_", + "local_config_platform": "local_config_platform@_" + }, + "repoSpec": { + "bzlFile": "@@bazel_tools//tools/build_defs/repo:http.bzl", + "ruleClassName": "http_archive", + "attributes": { + "urls": [ + "https://github.com/bazelbuild/platforms/releases/download/0.0.8/platforms-0.0.8.tar.gz" + ], + "integrity": "sha256-gVBAZgU4ns7LbaB8vLUJ1WN6OrmiS8abEQFTE2fYnXQ=", + "strip_prefix": "", + "remote_patches": {}, + "remote_patch_strip": 0 + } + } + }, + "rules_proto@6.0.0-rc1": { + "name": "rules_proto", + "version": "6.0.0-rc1", + "key": "rules_proto@6.0.0-rc1", + "repoName": "rules_proto", + "executionPlatformsToRegister": [], + "toolchainsToRegister": [], + "extensionUsages": [], + "deps": { + "rules_license": "rules_license@0.0.7", + "bazel_skylib": "bazel_skylib@1.6.1", + "bazel_tools": "bazel_tools@_", + "local_config_platform": "local_config_platform@_" + }, + "repoSpec": { + "bzlFile": "@@bazel_tools//tools/build_defs/repo:http.bzl", + "ruleClassName": "http_archive", + "attributes": { + "urls": [ + "https://github.com/bazelbuild/rules_proto/releases/download/6.0.0-rc1/rules_proto-6.0.0-rc1.tar.gz" + ], + "integrity": "sha256-kEqAl/rkKmkMjgjYBSEOQMzLBp9fmg9nJ89PqnvtLJw=", + "strip_prefix": "rules_proto-6.0.0-rc1", + "remote_patches": { + "https://bcr.bazel.build/modules/rules_proto/6.0.0-rc1/patches/module_dot_bazel_version.patch": "sha256-OepRECTunWiz3WREvMK/pOvpt/HRZ6g87fKfokcnQGE=" + }, + "remote_patch_strip": 1 + } + } + }, + "protobuf@24.4": { + "name": "protobuf", + "version": "24.4", + "key": "protobuf@24.4", + "repoName": "protobuf", + "executionPlatformsToRegister": [], + "toolchainsToRegister": [], + "extensionUsages": [ + { + "extensionBzlFile": "@protobuf//:non_module_deps.bzl", + "extensionName": "non_module_deps", + "usingModule": "protobuf@24.4", + "location": { + "file": "https://bcr.bazel.build/modules/protobuf/24.4/MODULE.bazel", + "line": 20, + "column": 32 + }, + "imports": { + "utf8_range": "utf8_range" + }, + "devImports": [], + "tags": [], + "hasDevUseExtension": false, + "hasNonDevUseExtension": true + }, + { + "extensionBzlFile": "@rules_jvm_external//:extensions.bzl", + "extensionName": "maven", + "usingModule": "protobuf@24.4", + "location": { + "file": "https://bcr.bazel.build/modules/protobuf/24.4/MODULE.bazel", + "line": 28, + "column": 22 + }, + "imports": { + "maven": "maven" + }, + "devImports": [], + "tags": [ + { + "tagName": "install", + "attributeValues": { + "name": "maven", + "artifacts": [ + "com.google.code.findbugs:jsr305:3.0.2", + "com.google.code.gson:gson:2.8.9", + "com.google.errorprone:error_prone_annotations:2.3.2", + "com.google.j2objc:j2objc-annotations:1.3", + "com.google.guava:guava:31.1-jre", + "com.google.guava:guava-testlib:31.1-jre", + "com.google.truth:truth:1.1.2", + "junit:junit:4.13.2", + "org.mockito:mockito-core:4.3.1" + ] + }, + "devDependency": false, + "location": { + "file": "https://bcr.bazel.build/modules/protobuf/24.4/MODULE.bazel", + "line": 30, + "column": 14 + } + } + ], + "hasDevUseExtension": false, + "hasNonDevUseExtension": true + } + ], + "deps": { + "bazel_skylib": "bazel_skylib@1.6.1", + "rules_python": "rules_python@0.34.0", + "rules_cc": "rules_cc@0.0.9", + "rules_proto": "rules_proto@6.0.0-rc1", + "rules_java": "rules_java@7.4.0", + "rules_pkg": "rules_pkg@0.7.0", + "platforms": "platforms@0.0.8", + "com_google_absl": "abseil-cpp@20230802.0.bcr.1", + "zlib": "zlib@1.3", + "upb": "upb@0.0.0-20230516-61a97ef", + "rules_jvm_external": "rules_jvm_external@5.1", + "com_google_googletest": "googletest@1.14.0", "bazel_tools": "bazel_tools@_", "local_config_platform": "local_config_platform@_" }, @@ -232,14 +638,18 @@ "ruleClassName": "http_archive", "attributes": { "urls": [ - "https://github.com/bazelbuild/rules_cc/releases/download/0.0.9/rules_cc-0.0.9.tar.gz" + "https://github.com/protocolbuffers/protobuf/releases/download/v24.4/protobuf-24.4.tar.gz" ], - "integrity": "sha256-IDeHW5pEVtzkp50RKorohbvEqtlo5lh9ym5k86CQDN8=", - "strip_prefix": "rules_cc-0.0.9", + "integrity": "sha256-YWuzU2rB//P7GhQUUPoouHXphXEhcOp/G/5eX8QeLNg=", + "strip_prefix": "protobuf-24.4", "remote_patches": { - "https://bcr.bazel.build/modules/rules_cc/0.0.9/patches/module_dot_bazel_version.patch": "sha256-mM+qzOI0SgAdaJBlWOSMwMPKpaA9b7R37Hj/tp5bb4g=" + "https://bcr.bazel.build/modules/protobuf/24.4/patches/0001-Add-MODULE.bazel.patch": "sha256-nF6uuO4jHJpzOqJyhWhSZ8aRWznjbgrdSM50IiT0GhY=", + "https://bcr.bazel.build/modules/protobuf/24.4/patches/0002-Add-utf8_range-dependency.patch": "sha256-UPhKk5lQVa/8675JZJG/h/WTIzmQml6g/wTFJWgWnL8=", + "https://bcr.bazel.build/modules/protobuf/24.4/patches/0003-Examples-MODULE.bazel.patch": "sha256-mzBuXdk9K9RTN4PhYkoXcSXDXncPjSYjj6nVcq+dNv4=", + "https://bcr.bazel.build/modules/protobuf/24.4/patches/0004-Migrate-from-bind-to-alias.patch": "sha256-OHsXlAzbHYMAvGRlKGcxmolaoLXa86Rc5lhs84YAApg=", + "https://bcr.bazel.build/modules/protobuf/24.4/patches/0005-Make-rules_ruby-a-dev-only-dependency.patch": "sha256-k6M0C9i23kADrLUupaKQcv5sQ59LZDYp2cp3dcBPcbA=" }, - "remote_patch_strip": 0 + "remote_patch_strip": 1 } } }, @@ -321,10 +731,10 @@ } ], "deps": { - "platforms": "platforms@0.0.7", + "platforms": "platforms@0.0.8", "rules_cc": "rules_cc@0.0.9", - "bazel_skylib": "bazel_skylib@1.3.0", - "rules_proto": "rules_proto@5.3.0-21.7", + "bazel_skylib": "bazel_skylib@1.6.1", + "rules_proto": "rules_proto@6.0.0-rc1", "rules_license": "rules_license@0.0.7", "bazel_tools": "bazel_tools@_", "local_config_platform": "local_config_platform@_" @@ -369,143 +779,6 @@ } } }, - "rules_proto@5.3.0-21.7": { - "name": "rules_proto", - "version": "5.3.0-21.7", - "key": "rules_proto@5.3.0-21.7", - "repoName": "rules_proto", - "executionPlatformsToRegister": [], - "toolchainsToRegister": [], - "extensionUsages": [], - "deps": { - "bazel_skylib": "bazel_skylib@1.3.0", - "com_google_protobuf": "protobuf@21.7", - "rules_cc": "rules_cc@0.0.9", - "bazel_tools": "bazel_tools@_", - "local_config_platform": "local_config_platform@_" - }, - "repoSpec": { - "bzlFile": "@@bazel_tools//tools/build_defs/repo:http.bzl", - "ruleClassName": "http_archive", - "attributes": { - "urls": [ - "https://github.com/bazelbuild/rules_proto/archive/refs/tags/5.3.0-21.7.tar.gz" - ], - "integrity": "sha256-3D+yBqLLNEG0heseQjFlsjEjWh6psDG0Qzz3vB+kYN0=", - "strip_prefix": "rules_proto-5.3.0-21.7", - "remote_patches": {}, - "remote_patch_strip": 0 - } - } - }, - "rules_python@0.22.1": { - "name": "rules_python", - "version": "0.22.1", - "key": "rules_python@0.22.1", - "repoName": "rules_python", - "executionPlatformsToRegister": [], - "toolchainsToRegister": [ - "@bazel_tools//tools/python:autodetecting_toolchain" - ], - "extensionUsages": [ - { - "extensionBzlFile": "@rules_python//python/extensions/private:internal_deps.bzl", - "extensionName": "internal_deps", - "usingModule": "rules_python@0.22.1", - "location": { - "file": "https://bcr.bazel.build/modules/rules_python/0.22.1/MODULE.bazel", - "line": 14, - "column": 30 - }, - "imports": { - "pypi__build": "pypi__build", - "pypi__click": "pypi__click", - "pypi__colorama": "pypi__colorama", - "pypi__importlib_metadata": "pypi__importlib_metadata", - "pypi__installer": "pypi__installer", - "pypi__more_itertools": "pypi__more_itertools", - "pypi__packaging": "pypi__packaging", - "pypi__pep517": "pypi__pep517", - "pypi__pip": "pypi__pip", - "pypi__pip_tools": "pypi__pip_tools", - "pypi__setuptools": "pypi__setuptools", - "pypi__tomli": "pypi__tomli", - "pypi__wheel": "pypi__wheel", - "pypi__zipp": "pypi__zipp", - "pypi__coverage_cp310_aarch64-apple-darwin": "pypi__coverage_cp310_aarch64-apple-darwin", - "pypi__coverage_cp310_aarch64-unknown-linux-gnu": "pypi__coverage_cp310_aarch64-unknown-linux-gnu", - "pypi__coverage_cp310_x86_64-apple-darwin": "pypi__coverage_cp310_x86_64-apple-darwin", - "pypi__coverage_cp310_x86_64-unknown-linux-gnu": "pypi__coverage_cp310_x86_64-unknown-linux-gnu", - "pypi__coverage_cp311_aarch64-unknown-linux-gnu": "pypi__coverage_cp311_aarch64-unknown-linux-gnu", - "pypi__coverage_cp311_x86_64-apple-darwin": "pypi__coverage_cp311_x86_64-apple-darwin", - "pypi__coverage_cp311_x86_64-unknown-linux-gnu": "pypi__coverage_cp311_x86_64-unknown-linux-gnu", - "pypi__coverage_cp38_aarch64-apple-darwin": "pypi__coverage_cp38_aarch64-apple-darwin", - "pypi__coverage_cp38_aarch64-unknown-linux-gnu": "pypi__coverage_cp38_aarch64-unknown-linux-gnu", - "pypi__coverage_cp38_x86_64-apple-darwin": "pypi__coverage_cp38_x86_64-apple-darwin", - "pypi__coverage_cp38_x86_64-unknown-linux-gnu": "pypi__coverage_cp38_x86_64-unknown-linux-gnu", - "pypi__coverage_cp39_aarch64-apple-darwin": "pypi__coverage_cp39_aarch64-apple-darwin", - "pypi__coverage_cp39_aarch64-unknown-linux-gnu": "pypi__coverage_cp39_aarch64-unknown-linux-gnu", - "pypi__coverage_cp39_x86_64-apple-darwin": "pypi__coverage_cp39_x86_64-apple-darwin", - "pypi__coverage_cp39_x86_64-unknown-linux-gnu": "pypi__coverage_cp39_x86_64-unknown-linux-gnu" - }, - "devImports": [], - "tags": [ - { - "tagName": "install", - "attributeValues": {}, - "devDependency": false, - "location": { - "file": "https://bcr.bazel.build/modules/rules_python/0.22.1/MODULE.bazel", - "line": 15, - "column": 22 - } - } - ], - "hasDevUseExtension": false, - "hasNonDevUseExtension": true - }, - { - "extensionBzlFile": "@rules_python//python/extensions:python.bzl", - "extensionName": "python", - "usingModule": "rules_python@0.22.1", - "location": { - "file": "https://bcr.bazel.build/modules/rules_python/0.22.1/MODULE.bazel", - "line": 50, - "column": 23 - }, - "imports": { - "pythons_hub": "pythons_hub" - }, - "devImports": [], - "tags": [], - "hasDevUseExtension": false, - "hasNonDevUseExtension": true - } - ], - "deps": { - "platforms": "platforms@0.0.7", - "bazel_skylib": "bazel_skylib@1.3.0", - "rules_proto": "rules_proto@5.3.0-21.7", - "com_google_protobuf": "protobuf@21.7", - "bazel_tools": "bazel_tools@_", - "local_config_platform": "local_config_platform@_" - }, - "repoSpec": { - "bzlFile": "@@bazel_tools//tools/build_defs/repo:http.bzl", - "ruleClassName": "http_archive", - "attributes": { - "urls": [ - "https://github.com/bazelbuild/rules_python/releases/download/0.22.1/rules_python-0.22.1.tar.gz" - ], - "integrity": "sha256-pWQP3dS+sD6MH95e1xYMC6a9R359BIZhwwwGk2om/WM=", - "strip_prefix": "rules_python-0.22.1", - "remote_patches": { - "https://bcr.bazel.build/modules/rules_python/0.22.1/patches/module_dot_bazel_version.patch": "sha256-3+VLDH9gYDzNI4eOW7mABC/LKxh1xqF6NhacLbNTucs=" - }, - "remote_patch_strip": 1 - } - } - }, "buildozer@6.4.0.2": { "name": "buildozer", "version": "6.4.0.2", @@ -572,117 +845,6 @@ } } }, - "platforms@0.0.7": { - "name": "platforms", - "version": "0.0.7", - "key": "platforms@0.0.7", - "repoName": "platforms", - "executionPlatformsToRegister": [], - "toolchainsToRegister": [], - "extensionUsages": [], - "deps": { - "rules_license": "rules_license@0.0.7", - "bazel_tools": "bazel_tools@_", - "local_config_platform": "local_config_platform@_" - }, - "repoSpec": { - "bzlFile": "@@bazel_tools//tools/build_defs/repo:http.bzl", - "ruleClassName": "http_archive", - "attributes": { - "urls": [ - "https://github.com/bazelbuild/platforms/releases/download/0.0.7/platforms-0.0.7.tar.gz" - ], - "integrity": "sha256-OlYcmee9vpFzqmU/1Xn+hJ8djWc5V4CrR3Cx84FDHVE=", - "strip_prefix": "", - "remote_patches": {}, - "remote_patch_strip": 0 - } - } - }, - "protobuf@21.7": { - "name": "protobuf", - "version": "21.7", - "key": "protobuf@21.7", - "repoName": "protobuf", - "executionPlatformsToRegister": [], - "toolchainsToRegister": [], - "extensionUsages": [ - { - "extensionBzlFile": "@rules_jvm_external//:extensions.bzl", - "extensionName": "maven", - "usingModule": "protobuf@21.7", - "location": { - "file": "https://bcr.bazel.build/modules/protobuf/21.7/MODULE.bazel", - "line": 22, - "column": 22 - }, - "imports": { - "maven": "maven" - }, - "devImports": [], - "tags": [ - { - "tagName": "install", - "attributeValues": { - "name": "maven", - "artifacts": [ - "com.google.code.findbugs:jsr305:3.0.2", - "com.google.code.gson:gson:2.8.9", - "com.google.errorprone:error_prone_annotations:2.3.2", - "com.google.j2objc:j2objc-annotations:1.3", - "com.google.guava:guava:31.1-jre", - "com.google.guava:guava-testlib:31.1-jre", - "com.google.truth:truth:1.1.2", - "junit:junit:4.13.2", - "org.mockito:mockito-core:4.3.1" - ] - }, - "devDependency": false, - "location": { - "file": "https://bcr.bazel.build/modules/protobuf/21.7/MODULE.bazel", - "line": 24, - "column": 14 - } - } - ], - "hasDevUseExtension": false, - "hasNonDevUseExtension": true - } - ], - "deps": { - "bazel_skylib": "bazel_skylib@1.3.0", - "rules_python": "rules_python@0.22.1", - "rules_cc": "rules_cc@0.0.9", - "rules_proto": "rules_proto@5.3.0-21.7", - "rules_java": "rules_java@7.4.0", - "rules_pkg": "rules_pkg@0.7.0", - "com_google_abseil": "abseil-cpp@20211102.0", - "zlib": "zlib@1.3", - "upb": "upb@0.0.0-20220923-a547704", - "rules_jvm_external": "rules_jvm_external@4.4.2", - "com_google_googletest": "googletest@1.11.0", - "bazel_tools": "bazel_tools@_", - "local_config_platform": "local_config_platform@_" - }, - "repoSpec": { - "bzlFile": "@@bazel_tools//tools/build_defs/repo:http.bzl", - "ruleClassName": "http_archive", - "attributes": { - "urls": [ - "https://github.com/protocolbuffers/protobuf/releases/download/v21.7/protobuf-all-21.7.zip" - ], - "integrity": "sha256-VJOiH17T/FAuZv7GuUScBqVRztYwAvpIkDxA36jeeko=", - "strip_prefix": "protobuf-21.7", - "remote_patches": { - "https://bcr.bazel.build/modules/protobuf/21.7/patches/add_module_dot_bazel.patch": "sha256-q3V2+eq0v2XF0z8z+V+QF4cynD6JvHI1y3kI/+rzl5s=", - "https://bcr.bazel.build/modules/protobuf/21.7/patches/add_module_dot_bazel_for_examples.patch": "sha256-O7YP6s3lo/1opUiO0jqXYORNHdZ/2q3hjz1QGy8QdIU=", - "https://bcr.bazel.build/modules/protobuf/21.7/patches/relative_repo_names.patch": "sha256-RK9RjW8T5UJNG7flIrnFiNE9vKwWB+8uWWtJqXYT0w4=", - "https://bcr.bazel.build/modules/protobuf/21.7/patches/add_missing_files.patch": "sha256-Hyne4DG2u5bXcWHNxNMirA2QFAe/2Cl8oMm1XJdkQIY=" - }, - "remote_patch_strip": 1 - } - } - }, "zlib@1.3": { "name": "zlib", "version": "1.3", @@ -692,7 +854,7 @@ "toolchainsToRegister": [], "extensionUsages": [], "deps": { - "platforms": "platforms@0.0.7", + "platforms": "platforms@0.0.8", "rules_cc": "rules_cc@0.0.9", "bazel_tools": "bazel_tools@_", "local_config_platform": "local_config_platform@_" @@ -744,8 +906,8 @@ } ], "deps": { - "bazel_skylib": "bazel_skylib@1.3.0", - "platforms": "platforms@0.0.7", + "bazel_skylib": "bazel_skylib@1.6.1", + "platforms": "platforms@0.0.8", "bazel_tools": "bazel_tools@_", "local_config_platform": "local_config_platform@_" }, @@ -763,36 +925,6 @@ } } }, - "bazel_skylib@1.3.0": { - "name": "bazel_skylib", - "version": "1.3.0", - "key": "bazel_skylib@1.3.0", - "repoName": "bazel_skylib", - "executionPlatformsToRegister": [], - "toolchainsToRegister": [ - "//toolchains/unittest:cmd_toolchain", - "//toolchains/unittest:bash_toolchain" - ], - "extensionUsages": [], - "deps": { - "platforms": "platforms@0.0.7", - "bazel_tools": "bazel_tools@_", - "local_config_platform": "local_config_platform@_" - }, - "repoSpec": { - "bzlFile": "@@bazel_tools//tools/build_defs/repo:http.bzl", - "ruleClassName": "http_archive", - "attributes": { - "urls": [ - "https://github.com/bazelbuild/bazel-skylib/releases/download/1.3.0/bazel-skylib-1.3.0.tar.gz" - ], - "integrity": "sha256-dNVE2W9KW7Yw1GXKi7z+Ix41lOWq5X4e2/F6brPKJQY=", - "strip_prefix": "", - "remote_patches": {}, - "remote_patch_strip": 0 - } - } - }, "rules_pkg@0.7.0": { "name": "rules_pkg", "version": "0.7.0", @@ -802,8 +934,8 @@ "toolchainsToRegister": [], "extensionUsages": [], "deps": { - "rules_python": "rules_python@0.22.1", - "bazel_skylib": "bazel_skylib@1.3.0", + "rules_python": "rules_python@0.34.0", + "bazel_skylib": "bazel_skylib@1.6.1", "rules_license": "rules_license@0.0.7", "bazel_tools": "bazel_tools@_", "local_config_platform": "local_config_platform@_" @@ -824,17 +956,19 @@ } } }, - "abseil-cpp@20211102.0": { + "abseil-cpp@20230802.0.bcr.1": { "name": "abseil-cpp", - "version": "20211102.0", - "key": "abseil-cpp@20211102.0", + "version": "20230802.0.bcr.1", + "key": "abseil-cpp@20230802.0.bcr.1", "repoName": "abseil-cpp", "executionPlatformsToRegister": [], "toolchainsToRegister": [], "extensionUsages": [], "deps": { "rules_cc": "rules_cc@0.0.9", - "platforms": "platforms@0.0.7", + "platforms": "platforms@0.0.8", + "bazel_skylib": "bazel_skylib@1.6.1", + "com_google_googletest": "googletest@1.14.0", "bazel_tools": "bazel_tools@_", "local_config_platform": "local_config_platform@_" }, @@ -843,31 +977,50 @@ "ruleClassName": "http_archive", "attributes": { "urls": [ - "https://github.com/abseil/abseil-cpp/archive/refs/tags/20211102.0.tar.gz" + "https://github.com/abseil/abseil-cpp/archive/refs/tags/20230802.0.tar.gz" ], - "integrity": "sha256-3PcbnLqNwMqZQMSzFqDHlr6Pq0KwcLtrfKtitI8OZsQ=", - "strip_prefix": "abseil-cpp-20211102.0", + "integrity": "sha256-WdKXavnW7PABqBo1dJpuVRozW5SdNJGM+t4Hc3udk8U=", + "strip_prefix": "abseil-cpp-20230802.0", "remote_patches": { - "https://bcr.bazel.build/modules/abseil-cpp/20211102.0/patches/module_dot_bazel.patch": "sha256-4izqopgGCey4jVZzl/w3M2GVPNohjh2B5TmbThZNvPY=" + "https://bcr.bazel.build/modules/abseil-cpp/20230802.0.bcr.1/patches/module_dot_bazel.patch": "sha256-Ku6wJ7uNqANq3fVmW03ySSUddevratZDsJ67NqtXIEY=" }, "remote_patch_strip": 0 } } }, - "upb@0.0.0-20220923-a547704": { + "upb@0.0.0-20230516-61a97ef": { "name": "upb", - "version": "0.0.0-20220923-a547704", - "key": "upb@0.0.0-20220923-a547704", + "version": "0.0.0-20230516-61a97ef", + "key": "upb@0.0.0-20230516-61a97ef", "repoName": "upb", "executionPlatformsToRegister": [], "toolchainsToRegister": [], - "extensionUsages": [], + "extensionUsages": [ + { + "extensionBzlFile": "@upb//:non_module_deps.bzl", + "extensionName": "non_module_deps", + "usingModule": "upb@0.0.0-20230516-61a97ef", + "location": { + "file": "https://bcr.bazel.build/modules/upb/0.0.0-20230516-61a97ef/MODULE.bazel", + "line": 15, + "column": 32 + }, + "imports": { + "utf8_range": "utf8_range" + }, + "devImports": [], + "tags": [], + "hasDevUseExtension": false, + "hasNonDevUseExtension": true + } + ], "deps": { - "bazel_skylib": "bazel_skylib@1.3.0", - "rules_proto": "rules_proto@5.3.0-21.7", - "com_google_protobuf": "protobuf@21.7", - "com_google_absl": "abseil-cpp@20211102.0", - "platforms": "platforms@0.0.7", + "bazel_skylib": "bazel_skylib@1.6.1", + "rules_proto": "rules_proto@6.0.0-rc1", + "com_google_protobuf": "protobuf@24.4", + "com_google_absl": "abseil-cpp@20230802.0.bcr.1", + "rules_pkg": "rules_pkg@0.7.0", + "platforms": "platforms@0.0.8", "bazel_tools": "bazel_tools@_", "local_config_platform": "local_config_platform@_" }, @@ -876,21 +1029,23 @@ "ruleClassName": "http_archive", "attributes": { "urls": [ - "https://github.com/protocolbuffers/upb/archive/a5477045acaa34586420942098f5fecd3570f577.tar.gz" + "https://github.com/protocolbuffers/upb/archive/61a97efa24a5ce01fb8cc73c9d1e6e7060f8ea98.tar.gz" ], - "integrity": "sha256-z39x6v+QskwaKLSWRan/A6mmwecTQpHOcJActj5zZLU=", - "strip_prefix": "upb-a5477045acaa34586420942098f5fecd3570f577", + "integrity": "sha256-fRnyrJweUIqGonKRPZqmfIFHgn+UkDWCiRC7BdnyzwM=", + "strip_prefix": "upb-61a97efa24a5ce01fb8cc73c9d1e6e7060f8ea98", "remote_patches": { - "https://bcr.bazel.build/modules/upb/0.0.0-20220923-a547704/patches/module_dot_bazel.patch": "sha256-wH4mNS6ZYy+8uC0HoAft/c7SDsq2Kxf+J8dUakXhaB0=" + "https://bcr.bazel.build/modules/upb/0.0.0-20230516-61a97ef/patches/0001-Add-MODULE.bazel.patch": "sha256-YSOPeNFt006ghZRI1D056RQ1USwCodZnjXMw6pAPhKc=", + "https://bcr.bazel.build/modules/upb/0.0.0-20230516-61a97ef/patches/0002-Add-utf8_range-dependency.patch": "sha256-L9jPxcjZqoJh5t9mH4BR01puRI5aUY4jtYptZt5T/p8=", + "https://bcr.bazel.build/modules/upb/0.0.0-20230516-61a97ef/patches/0003-Backport-path-generation-instead-of-hardcoded-one.patch": "sha256-K+OqQb2b+5k43UOwHupBlfqakuNST470j/yTfvwjj04=" }, - "remote_patch_strip": 0 + "remote_patch_strip": 1 } } }, - "rules_jvm_external@4.4.2": { + "rules_jvm_external@5.1": { "name": "rules_jvm_external", - "version": "4.4.2", - "key": "rules_jvm_external@4.4.2", + "version": "5.1", + "key": "rules_jvm_external@5.1", "repoName": "rules_jvm_external", "executionPlatformsToRegister": [], "toolchainsToRegister": [], @@ -898,9 +1053,9 @@ { "extensionBzlFile": "@rules_jvm_external//:non-module-deps.bzl", "extensionName": "non_module_deps", - "usingModule": "rules_jvm_external@4.4.2", + "usingModule": "rules_jvm_external@5.1", "location": { - "file": "https://bcr.bazel.build/modules/rules_jvm_external/4.4.2/MODULE.bazel", + "file": "https://bcr.bazel.build/modules/rules_jvm_external/5.1/MODULE.bazel", "line": 9, "column": 32 }, @@ -915,9 +1070,9 @@ { "extensionBzlFile": "@rules_jvm_external//:extensions.bzl", "extensionName": "maven", - "usingModule": "rules_jvm_external@4.4.2", + "usingModule": "rules_jvm_external@5.1", "location": { - "file": "https://bcr.bazel.build/modules/rules_jvm_external/4.4.2/MODULE.bazel", + "file": "https://bcr.bazel.build/modules/rules_jvm_external/5.1/MODULE.bazel", "line": 16, "column": 22 }, @@ -931,9 +1086,13 @@ "attributeValues": { "name": "rules_jvm_external_deps", "artifacts": [ + "com.google.auth:google-auth-library-credentials:0.22.0", + "com.google.auth:google-auth-library-oauth2-http:0.22.0", "com.google.cloud:google-cloud-core:1.93.10", "com.google.cloud:google-cloud-storage:1.113.4", "com.google.code.gson:gson:2.9.0", + "com.google.googlejavaformat:google-java-format:1.15.0", + "com.google.guava:guava:31.1-jre", "org.apache.maven:maven-artifact:3.8.6", "software.amazon.awssdk:s3:2.17.183" ], @@ -941,7 +1100,7 @@ }, "devDependency": false, "location": { - "file": "https://bcr.bazel.build/modules/rules_jvm_external/4.4.2/MODULE.bazel", + "file": "https://bcr.bazel.build/modules/rules_jvm_external/5.1/MODULE.bazel", "line": 18, "column": 14 } @@ -952,8 +1111,8 @@ } ], "deps": { - "bazel_skylib": "bazel_skylib@1.3.0", - "io_bazel_stardoc": "stardoc@0.5.1", + "bazel_skylib": "bazel_skylib@1.6.1", + "io_bazel_stardoc": "stardoc@0.5.3", "bazel_tools": "bazel_tools@_", "local_config_platform": "local_config_platform@_" }, @@ -962,26 +1121,26 @@ "ruleClassName": "http_archive", "attributes": { "urls": [ - "https://github.com/bazelbuild/rules_jvm_external/archive/refs/tags/4.4.2.zip" + "https://github.com/bazelbuild/rules_jvm_external/releases/download/5.1/rules_jvm_external-5.1.tar.gz" ], - "integrity": "sha256-c1YC9QgT6y6pPKP15DsZWb2AshO4NqB6YqKddXZwt3s=", - "strip_prefix": "rules_jvm_external-4.4.2", + "integrity": "sha256-jDsgdyLl+X8cgzEVgqbBHfmSJuZeJHEIbillYeV8yVQ=", + "strip_prefix": "rules_jvm_external-5.1", "remote_patches": {}, "remote_patch_strip": 0 } } }, - "googletest@1.11.0": { + "googletest@1.14.0": { "name": "googletest", - "version": "1.11.0", - "key": "googletest@1.11.0", + "version": "1.14.0", + "key": "googletest@1.14.0", "repoName": "googletest", "executionPlatformsToRegister": [], "toolchainsToRegister": [], "extensionUsages": [], "deps": { - "com_google_absl": "abseil-cpp@20211102.0", - "platforms": "platforms@0.0.7", + "com_google_absl": "abseil-cpp@20230802.0.bcr.1", + "platforms": "platforms@0.0.8", "rules_cc": "rules_cc@0.0.9", "bazel_tools": "bazel_tools@_", "local_config_platform": "local_config_platform@_" @@ -991,27 +1150,27 @@ "ruleClassName": "http_archive", "attributes": { "urls": [ - "https://github.com/google/googletest/archive/refs/tags/release-1.11.0.tar.gz" + "https://github.com/google/googletest/archive/refs/tags/v1.14.0.tar.gz" ], - "integrity": "sha256-tIcL8SH/d5W6INILzdhie44Ijy0dqymaAxwQNO3ck9U=", - "strip_prefix": "googletest-release-1.11.0", + "integrity": "sha256-itWYxzrXluDYKAsILOvYKmMNc+c808cAV5OKZQG7pdc=", + "strip_prefix": "googletest-1.14.0", "remote_patches": { - "https://bcr.bazel.build/modules/googletest/1.11.0/patches/module_dot_bazel.patch": "sha256-HuahEdI/n8KCI071sN3CEziX+7qP/Ec77IWayYunLP0=" + "https://bcr.bazel.build/modules/googletest/1.14.0/patches/module_dot_bazel.patch": "sha256-CSomzvti38LCuURDG5EEoa3O1tQF3cKKt/mknnP1qcc=" }, "remote_patch_strip": 0 } } }, - "stardoc@0.5.1": { + "stardoc@0.5.3": { "name": "stardoc", - "version": "0.5.1", - "key": "stardoc@0.5.1", + "version": "0.5.3", + "key": "stardoc@0.5.3", "repoName": "stardoc", "executionPlatformsToRegister": [], "toolchainsToRegister": [], "extensionUsages": [], "deps": { - "bazel_skylib": "bazel_skylib@1.3.0", + "bazel_skylib": "bazel_skylib@1.6.1", "rules_java": "rules_java@7.4.0", "bazel_tools": "bazel_tools@_", "local_config_platform": "local_config_platform@_" @@ -1021,12 +1180,12 @@ "ruleClassName": "http_archive", "attributes": { "urls": [ - "https://github.com/bazelbuild/stardoc/releases/download/0.5.1/stardoc-0.5.1.tar.gz" + "https://github.com/bazelbuild/stardoc/releases/download/0.5.3/stardoc-0.5.3.tar.gz" ], - "integrity": "sha256-qoFNrgrEALurLoiB+ZFcb0fElmS/CHxAmhX5BDjSwj4=", + "integrity": "sha256-P9j+xN3sPGcL2BCQTi4zFwvt/hL5Ct+UNQgYS+RYyLs=", "strip_prefix": "", "remote_patches": { - "https://bcr.bazel.build/modules/stardoc/0.5.1/patches/module_dot_bazel.patch": "sha256-UAULCuTpJE7SG0YrR9XLjMfxMRmbP+za3uW9ONZ5rjI=" + "https://bcr.bazel.build/modules/stardoc/0.5.3/patches/module_dot_bazel.patch": "sha256-Lgpy9OCr0zBWYuHoyM1rJJrgxn23X/bwgICEF7XiEug=" }, "remote_patch_strip": 0 } @@ -1061,6 +1220,39 @@ ] } }, + "@@bazel_features~//private:extensions.bzl%version_extension": { + "general": { + "bzlTransitiveDigest": "UwYHXjy4P9iCTMR9n5kWsy4RwLoowjUrfDFTkBo5RG8=", + "recordedFileInputs": {}, + "recordedDirentsInputs": {}, + "envVariables": {}, + "generatedRepoSpecs": { + "bazel_features_version": { + "bzlFile": "@@bazel_features~//private:version_repo.bzl", + "ruleClassName": "version_repo", + "attributes": {} + }, + "bazel_features_globals": { + "bzlFile": "@@bazel_features~//private:globals_repo.bzl", + "ruleClassName": "globals_repo", + "attributes": { + "globals": { + "RunEnvironmentInfo": "5.3.0", + "DefaultInfo": "0.0.1", + "__TestingOnly_NeverAvailable": "1000000000.0.0" + } + } + } + }, + "recordedRepoMappingEntries": [ + [ + "bazel_features~", + "bazel_tools", + "bazel_tools" + ] + ] + } + }, "@@bazel_tools//tools/cpp:cc_configure.bzl%cc_configure_extension": { "general": { "bzlTransitiveDigest": "PHpT2yqMGms2U4L3E/aZ+WcQalmZWm+ILdP3yiLsDhA=", @@ -1125,7 +1317,7 @@ }, "@@rules_java~//java:extensions.bzl%toolchains": { "general": { - "bzlTransitiveDigest": "tJHbmWnq7m+9eUBnUdv7jZziQ26FmcGL9C5/hU3Q9UQ=", + "bzlTransitiveDigest": "0N5b5J9fUzo0sgvH4F3kIEaeXunz4Wy2/UtSFV/eXUY=", "recordedFileInputs": {}, "recordedDirentsInputs": {}, "envVariables": {}, diff --git a/WORKSPACE.bazel b/WORKSPACE.bazel deleted file mode 100644 index 28f08f4..0000000 --- a/WORKSPACE.bazel +++ /dev/null @@ -1,23 +0,0 @@ -load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") - -http_archive( - name = "rules_python", - sha256 = "a644da969b6824cc87f8fe7b18101a8a6c57da5db39caa6566ec6109f37d2141", - strip_prefix = "rules_python-0.20.0", - url = "https://github.com/bazelbuild/rules_python/releases/download/0.20.0/rules_python-0.20.0.tar.gz", -) - -load("@rules_python//python:repositories.bzl", "py_repositories") - -py_repositories() - -load("@rules_python//python:pip.bzl", "pip_parse") - -pip_parse( - name = "python_deps", - requirements_lock = "//third_party:requirements.txt", -) -# Load the starlark macro which will define your dependencies. -load("@python_deps//:requirements.bzl", "install_deps") -# Call it to define repos for your requirements. -install_deps() diff --git a/automathon/BUILD.bazel b/automathon/BUILD.bazel index f37c75e..f00935c 100644 --- a/automathon/BUILD.bazel +++ b/automathon/BUILD.bazel @@ -1,10 +1,10 @@ py_library( - name="automathon", - srcs=[ - "__init__.py", - ], - deps=[ - "//automathon/finiteAutomata:finiteAutomata", - ], - visibility=["//visibility:public"], + name = "automathon", + srcs = [ + "__init__.py", + ], + visibility = ["//visibility:public"], + deps = [ + "//automathon/finite_automata", + ], ) diff --git a/automathon/__init__.py b/automathon/__init__.py index 27c83d6..b587361 100644 --- a/automathon/__init__.py +++ b/automathon/__init__.py @@ -1,4 +1,4 @@ -from .finiteAutomata.dfa import DFA -from .finiteAutomata.nfa import NFA +from .finite_automata.dfa import DFA +from .finite_automata.nfa import NFA __all__ = ["DFA", "NFA"] diff --git a/automathon/__version__.py b/automathon/__version__.py index e66e068..14b5c55 100644 --- a/automathon/__version__.py +++ b/automathon/__version__.py @@ -1,10 +1,10 @@ -""" "Package metadata.""" +"""Package metadata.""" __title__ = "automathon" __description__ = ( "A Python library for simulating and visualizing finite automata" ) -__url__ = "https://github.com/rohaquinlop/automathon.git" +__url__ = "https://github.com/rohaquinlop/automathon" __version__ = "0.0.15" __author__ = "Robin Hafid Quintero Lopez" __author_email__ = "rohaquinlop301@gmail.com" diff --git a/automathon/finiteAutomata/BUILD.bazel b/automathon/finiteAutomata/BUILD.bazel deleted file mode 100644 index a8a7d01..0000000 --- a/automathon/finiteAutomata/BUILD.bazel +++ /dev/null @@ -1,11 +0,0 @@ -load("@python_deps//:requirements.bzl", "requirement") - -py_library( - name="finiteAutomata", - srcs=["__init__.py", "dfa.py", "nfa.py"], - deps=[ - "//automathon/errors:errors", - requirement("graphviz") - ], - visibility=["//visibility:public"], -) diff --git a/automathon/finiteAutomata/__init__.py b/automathon/finiteAutomata/__init__.py deleted file mode 100644 index 1e5898b..0000000 --- a/automathon/finiteAutomata/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -from .dfa import DFA -from .nfa import NFA - -__all__ = ["DFA", "NFA"] diff --git a/automathon/finite_automata/BUILD.bazel b/automathon/finite_automata/BUILD.bazel new file mode 100644 index 0000000..6d24dc0 --- /dev/null +++ b/automathon/finite_automata/BUILD.bazel @@ -0,0 +1,13 @@ +py_library( + name = "finite_automata", + srcs = [ + "__init__.py", + "dfa.py", + "nfa.py", + ], + visibility = ["//visibility:public"], + deps = [ + "//automathon/errors", + "@pip//graphviz", + ], +) diff --git a/automathon/finite_automata/__init__.py b/automathon/finite_automata/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/automathon/finiteAutomata/dfa.py b/automathon/finite_automata/dfa.py similarity index 99% rename from automathon/finiteAutomata/dfa.py rename to automathon/finite_automata/dfa.py index b368d6b..457ae50 100644 --- a/automathon/finiteAutomata/dfa.py +++ b/automathon/finite_automata/dfa.py @@ -168,7 +168,7 @@ def complement(self) -> "DFA": return DFA(q, sigma, delta, initial_state, f) def get_nfa(self): - from automathon.finiteAutomata.nfa import NFA + from automathon.finite_automata.nfa import NFA """Convert the actual DFA to NFA class and return it's conversion""" q = self.q.copy() diff --git a/automathon/finiteAutomata/nfa.py b/automathon/finite_automata/nfa.py similarity index 99% rename from automathon/finiteAutomata/nfa.py rename to automathon/finite_automata/nfa.py index da6e8d8..21193ad 100644 --- a/automathon/finiteAutomata/nfa.py +++ b/automathon/finite_automata/nfa.py @@ -6,7 +6,7 @@ InputError, SigmaError, ) -from automathon.finiteAutomata.dfa import ( +from automathon.finite_automata.dfa import ( DFA, ) from collections import ( diff --git a/buildPackage.sh b/buildPackage.sh deleted file mode 100755 index f4b039d..0000000 --- a/buildPackage.sh +++ /dev/null @@ -1,3 +0,0 @@ -source ./virtualEnv.sh -python setup.py sdist -deactivate diff --git a/installVenvLibs.sh b/installVenvLibs.sh deleted file mode 100755 index 5268689..0000000 --- a/installVenvLibs.sh +++ /dev/null @@ -1,3 +0,0 @@ -source ./virtualEnv.sh -pip install wheel twine pytest==4.4.1 pytest-runner==4.4 -deactivate diff --git a/runTests.sh b/runTests.sh deleted file mode 100755 index 8f1634f..0000000 --- a/runTests.sh +++ /dev/null @@ -1,3 +0,0 @@ -source ./virtualEnv.sh -python setup.py pytest -deactivate diff --git a/third_party/requirements.txt b/third_party/requirements.txt deleted file mode 100644 index ce88c47..0000000 --- a/third_party/requirements.txt +++ /dev/null @@ -1,3 +0,0 @@ -pytest==4.4.1 -pytest-runner==4.4 -graphviz==0.16 \ No newline at end of file diff --git a/uploadPackage.sh b/uploadPackage.sh deleted file mode 100755 index ce079ac..0000000 --- a/uploadPackage.sh +++ /dev/null @@ -1,4 +0,0 @@ -source ./virtualEnv.sh -route= "dist/${1}" -python -m twine upload "$route" -deactivate diff --git a/virtualEnv.sh b/virtualEnv.sh deleted file mode 100755 index 63812bb..0000000 --- a/virtualEnv.sh +++ /dev/null @@ -1,5 +0,0 @@ -function callEnv(){ - . ./venv/bin/activate -} - -callEnv