Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added brief introduction to using external packages #29

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jake-arkinstall
Copy link

Partially addresses #27, and related to #5

I'm a new user of this project, and I found it rather difficult to understand how external packages were used. After finding issue #5, and seeing some explanation, as well as with help from @jsharpe on the Bazel/Python slack channel, I believe that I understand the process.

I figured that that I should assist by adding some instructions to README.md I don't know if my approach is the intended approach, so I'm happy to make any changes (or for you to make any changes) to suit the intended use. Either way, I think such an explanation is vital for newcomers to utilize this project.

README.md Outdated
load("@dbx_build_tools//build_tools/py:py.bzl", "dbx_py_pypi_piplib")

dbx_py_pypi_piplib(
name = "some_library",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a typo here. Maybe instead, introduce another_library that depends on some_library. That will cut down on needing to duplicate.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My apologies for the typo - I entirely agree with the suggestion of simplifying the instructions by using another_library as the dependent package rather than the dependency.

README.md Outdated
Consider that `some_library` requires `some_setup_library`. Then, following the previous steps, you can write

```
# [project_root]/pip/some_setup_library/BUILD:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Again cut this, define another_library below and have it setup_requires on some_library.

@jake-arkinstall
Copy link
Author

I agree with the above comments and have updated my PR with the requested changes.

I am likewise happy to address any further concerns.

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants