Git Product home page Git Product logo

Comments (4)

armooo avatar armooo commented on July 17, 2024 1

I am going to close this issue but let reachout if you have any other questions.

from dbx_build_tools.

armooo avatar armooo commented on July 17, 2024

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.

zyxue avatar zyxue commented on July 17, 2024

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.

armooo avatar armooo commented on July 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.