Skip to content

Commit 30f0a58

Browse files
committed
minor updates
- add build instructions - update homepage for package
1 parent d67accb commit 30f0a58

3 files changed

Lines changed: 142 additions & 1 deletion

File tree

BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ gazelle(
7272
py_wheel(
7373
name = "wheel",
7474
distribution = "tableaudocumentapi_ntnx",
75-
homepage = "https://github.com/nutanix-corp/ng-common-utilities/tree/tableaudocumentapi_ntnx/tableaudocumentapi_ntnx",
75+
homepage = "https://github.com/nudowding/tableaudocumentapi_ntnx",
7676
requires = [
7777
"lxml",
7878
],

MODULE.bazel.lock

Lines changed: 87 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README_NTNX.org

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
* instructions for building package
2+
3+
** install bazelisk
4+
5+
** make code changes eg. add a feature or fix a bug
6+
7+
** When ready to make a new package
8+
9+
*** update version
10+
Find this rule in =//BUILD.bazel=
11+
#+begin_src bazel -n
12+
py_wheel(
13+
name = "wheel",
14+
distribution = "tableaudocumentapi_ntnx",
15+
homepage = "https://github.com/nudowding/tableaudocumentapi_ntnx"
16+
requires = [
17+
"lxml",
18+
],
19+
version = "0.11.2",
20+
deps = ["//tableaudocumentapi"],
21+
)
22+
#+end_src
23+
Update the version to a higher number. This is needed if using pip to upgrade.
24+
*** build wheel
25+
#+begin_src sh :results drawer :wrap example
26+
bazel build //:wheel.dist
27+
#+end_src
28+
29+
#+RESULTS:
30+
:results:
31+
#+begin_example
32+
INFO: Analyzed target //:wheel.dist (102 packages loaded, 4184 targets configured).
33+
INFO: Found 1 target...
34+
Target //:wheel.dist up-to-date:
35+
bazel-bin/wheel_dist
36+
INFO: Elapsed time: 10.745s, Critical Path: 3.30s
37+
INFO: 21 processes: 19 internal, 2 darwin-sandbox.
38+
INFO: Build completed successfully, 21 total actions
39+
#+end_example
40+
:end:
41+
*** Wheel will be in =bazel-bin= dir
42+
#+begin_src sh :results drawer :wrap example
43+
ls bazel-bin
44+
#+end_src
45+
46+
#+RESULTS:
47+
#+begin_example
48+
tableaudocumentapi_ntnx-0.11.2-py3-none-any.whl
49+
wheel_dist
50+
wheel_target_wrapped_inputs.txt
51+
wheel.metadata.txt
52+
wheel.name
53+
#+end_example
54+

0 commit comments

Comments
 (0)