|
1 | 1 | load("@bazel_gazelle//:def.bzl", "gazelle") |
2 | 2 | load("@pypi//:requirements.bzl", "all_whl_requirements") |
3 | | -load("@rules_python//python:pip.bzl", "compile_pip_requirements") |
4 | 3 | load("@rules_python//python:packaging.bzl", "py_package", "py_wheel") |
| 4 | +load("@rules_python//python:pip.bzl", "compile_pip_requirements") |
5 | 5 | load("@rules_python_gazelle_plugin//manifest:defs.bzl", "gazelle_python_manifest") |
6 | 6 | load("@rules_python_gazelle_plugin//modules_mapping:def.bzl", "modules_mapping") |
7 | 7 |
|
8 | 8 | compile_pip_requirements( |
9 | 9 | name = "requirements", |
10 | 10 | srcs = ["pyproject.toml"], |
11 | | - requirements_darwin="requirements_darwin.txt", |
12 | | - requirements_linux="requirements_linux.txt", |
| 11 | + requirements_darwin = "requirements_darwin.txt", |
| 12 | + requirements_linux = "requirements_linux.txt", |
| 13 | + requirements_txt = "requirements.txt", |
13 | 14 | ) |
14 | 15 |
|
15 | 16 | # This rule fetches the metadata for python packages we depend on. That data is |
@@ -63,20 +64,18 @@ gazelle( |
63 | 64 |
|
64 | 65 | # gazelle:exclude samples |
65 | 66 | # gazelle:python_ignore_files setup.py |
66 | | -# gazelle:resolve py lxml.etree @pypi//lxml |
67 | 67 | # gazelle:python_binary_naming_convention $package_name$ |
68 | 68 | # gazelle:python_library_naming_convention $package_name$ |
69 | 69 |
|
70 | | - |
71 | 70 | # Publishing |
72 | 71 |
|
73 | 72 | py_wheel( |
74 | 73 | name = "wheel", |
75 | 74 | distribution = "tableaudocumentapi_ntnx", |
76 | 75 | homepage = "https://github.com/nutanix-corp/ng-common-utilities/tree/tableaudocumentapi_ntnx/tableaudocumentapi_ntnx", |
77 | | - version = '0.11.1', |
78 | | - deps = ["//tableaudocumentapi:tableaudocumentapi"], |
79 | 76 | requires = [ |
80 | | - "lxml" |
| 77 | + "lxml", |
81 | 78 | ], |
| 79 | + version = "0.11.1", |
| 80 | + deps = ["//tableaudocumentapi"], |
82 | 81 | ) |
0 commit comments