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

Create environment-agnostic aliases for distribution data files, if possible #29

Open
apt-itude opened this issue Jun 12, 2019 · 0 comments
Labels
done Completed in a branch but not yet merged into master
Milestone

Comments

@apt-itude
Copy link
Owner

Currently, any data files or scripts included in a wheel are exposed to Bazel directly from the fully-qualified source workspace (e.g. @pip__lxml_4_3_3_cp36_cp36m_manylinux1_x86_64//data/somedir:foo), but this label is long and cumbersome, requires the developer to add their own select statements in order to support multi-platform, and would have to be modified whenever the requirement is updated since it includes the version.

Ideally, this should be available via an alias just like the py_library (e.g. @pip//lxml:data/somedir/foo).

@apt-itude apt-itude added this to the v1.0.0 milestone Jun 12, 2019
apt-itude added a commit that referenced this issue Jun 13, 2019
…lar distribution

Each distro package under the @pip repo now contains a `repos.bzl` file with variables
for conveniently accessing the label of each source repo. This can be used for more
easily accessing data files.

Resolves #29
@apt-itude apt-itude added the done Completed in a branch but not yet merged into master label Jul 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
done Completed in a branch but not yet merged into master
Projects
None yet
Development

No branches or pull requests

1 participant