Comments (4)
I am going to close this issue but let reachout if you have any other questions.
from dbx_build_tools.
Sorry this is not better documented.
You would want to create a new //pip/flask/BUILD.in
file. Most of the contents need to be extracted from the upstream setup.py. So it would look something like this:
dbx_py_pypi_piplib(
name = "flask",
pip_version="1.1.1",
deps = [
"//pip/werkzeug",
"//pip/jinja2",
"//pip/itsdangerous",
"//pip/click",
],
)
And then you would need to repeat this process for all of the deps of flask. Once this is done you can run bzl gen //pip/...
to create the BUILD files. And bazel test //pip/...
to test that each library can be imported.
from dbx_build_tools.
thank you! Is it true that dbx_py_pypi_piplib
needs to be done for each module (of a particular version) only once and then used for all repositories in bazel?
from dbx_build_tools.
It is expected that you are working in a monorepo with a single //pip
tree. Within that tree each pip module would be created and only a single version would exist. This is along the lines of google's //third_party
which is documented in part of the The One Version Rule.
from dbx_build_tools.
Related Issues (20)
- No matching toolchains found for types @bazel_tools//tools/cpp:toolchain_type HOT 10
- map_each must be a function that accepts a single positional argument HOT 1
- Building python for aarch64 / ppc64le HOT 2
- Question: Using dbx_service_task to generate data for dbx_services_test HOT 2
- How to get boto3 modules in dbx_py_pytest_test HOT 3
- Question: Support for macOS? HOT 3
- action_env not propagated to pypi build actions
- Rationale for not propagating -shared HOT 5
- Support test_suite for dbx_services_test HOT 6
- A need for more Documentation HOT 12
- Tagged versions HOT 3
- Hermeticity bug: Package setup can find host libraries (leading to import failures) HOT 6
- Go builds fail on filesystems that require UTF-8 filenames HOT 1
- using dbx_build_tools with Docker HOT 1
- How do I build a distribution archive (archive/master.tar.gz)? HOT 1
- Error downloading [http://zlib.net/zlib-1.2.11.tar.gz]
- Is this still active? HOT 1
- Can you please open-source the svcctl protos?
- mypy bazel rules appear to be missing some dependencies HOT 1
- openssl download url breaks when new version is released HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dbx_build_tools.