Skip to content

Commit

Permalink
revert bazel related changes for python
Browse files Browse the repository at this point in the history
  • Loading branch information
frank-bee committed Oct 24, 2024
1 parent 53f3997 commit 0b391f3
Show file tree
Hide file tree
Showing 122 changed files with 5,625 additions and 2,609 deletions.
12 changes: 2 additions & 10 deletions .bazelignore
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
commons-libs
qg-api-service
user-documentation
yaku-apps-typescript
yaku-apps-python/packages/autopilot-utils/tests-pex
yaku-apps-python/packages/autopilot-utils/tests/app_chained_multi_evaluator
yaku-apps-python/packages/autopilot-utils/tests/app_multi_command
yaku-apps-python/packages/autopilot-utils/tests/app_multi_evaluator
yaku-apps-python/packages/autopilot-utils/tests/app_single_command
yaku-apps-python/packages/autopilot-utils/tests/app_single_evaluator
yaku-apps-python/packages/autopilot-utils/tests/app_subprocess_steps
yaku-apps-python/packages/autopilot-utils/tests/app_super_simple_evaluator
yaku-apps-python/packages/autopilot-utils/tests/demo_app
yaku-apps-python
yaku-apps-typescript
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/.idea/
bazel-*
node_modules
htmlcov/
25 changes: 0 additions & 25 deletions .vscode/settings.json

This file was deleted.

27 changes: 1 addition & 26 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -20,36 +20,11 @@ go_deps = use_extension("@gazelle//:extensions.bzl", "go_deps")
go_deps.from_file(go_mod = "//onyx:go.mod")
use_repo(go_deps, "com_github_azure_azure_sdk_for_go_sdk_azcore", "com_github_azure_azure_sdk_for_go_sdk_azidentity", "com_github_azure_azure_sdk_for_go_sdk_storage_azblob", "com_github_chigopher_pathlib", "com_github_invopop_jsonschema", "com_github_invopop_yaml", "com_github_netflix_go_iomux", "com_github_pkg_errors", "com_github_spf13_afero", "com_github_spf13_cobra", "com_github_spf13_viper", "com_github_stretchr_testify", "com_github_xeipuuv_gojsonschema", "in_gopkg_natefinch_lumberjack_v2", "in_gopkg_yaml_v3", "org_uber_go_zap")

###
# Python
###

PYTHON_VERSION = "3.11"

# Update the version to the release found here:
# https://github.com/bazelbuild/rules_python/releases.
bazel_dep(name = "rules_python", dev_dependency = True, version = "0.36.0")

bazel_dep(name = "aspect_rules_py", version = "1.0.0-rc0")

python = use_extension("@rules_python//python/extensions:python.bzl", "python")
python.toolchain(python_version = PYTHON_VERSION, configure_coverage_tool = True)

pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip")

pip.parse(
hub_name = "pip",
python_version = PYTHON_VERSION,
requirements_lock = "//yaku-apps-python:3rdparty/requirements_lock.txt",
)

use_repo(pip, "pip")

###
# core image
###

bazel_dep(name = "aspect_bazel_lib", version = "2.9.1")
bazel_dep(name = "aspect_bazel_lib", version = "2.8.0")
bazel_dep(name = "rules_oci", version = "2.0.1")
bazel_dep(name = "rules_pkg", version = "0.10.1")
bazel_dep(name = "container_structure_test", version = "1.15.0")
Expand Down
321 changes: 167 additions & 154 deletions MODULE.bazel.lock

Large diffs are not rendered by default.

25 changes: 0 additions & 25 deletions pyproject.toml

This file was deleted.

1 change: 0 additions & 1 deletion tools/pytest-runner/BUILD.bazel

This file was deleted.

19 changes: 0 additions & 19 deletions tools/pytest-runner/defs.bzl

This file was deleted.

18 changes: 0 additions & 18 deletions tools/pytest-runner/run_pytest.py

This file was deleted.

2 changes: 2 additions & 0 deletions yaku-apps-python/.bandit
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[bandit]
skips = B101,B404,B602,B603,B607
9 changes: 9 additions & 0 deletions yaku-apps-python/3rdparty/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
python_requirements(
name="reqs",
module_mapping={
"dohq-artifactory": ["artifactory", "dohq_artifactory"],
"requests-ntlm": ["requests_ntlm"],
"cyclonedx-python-lib": ["cyclonedx"],
},
resolve="python-default", # is also the default value for 'resolve'
)
Loading

0 comments on commit 0b391f3

Please sign in to comment.