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

feat: (WIP) Add pypi_install() rule #1728

Draft
wants to merge 114 commits into
base: main
Choose a base branch
from

Commits on Jun 10, 2023

  1. Configuration menu
    Copy the full SHA
    10af2a3 View commit details
    Browse the repository at this point in the history

Commits on Jun 14, 2023

  1. Configuration menu
    Copy the full SHA
    cf28cb6 View commit details
    Browse the repository at this point in the history
  2. skeleton pypi_install

    philsc committed Jun 14, 2023
    Configuration menu
    Copy the full SHA
    5bb472f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f5b53dd View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e1026c9 View commit details
    Browse the repository at this point in the history

Commits on Jul 3, 2023

  1. Configuration menu
    Copy the full SHA
    b6a7f0c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f9a9fa2 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    327ba26 View commit details
    Browse the repository at this point in the history
  4. Start generating aliases

    Still need to switch over to pointing at the py_library targets. Right
    now I started writing them as pointing to the http_file targets.
    philsc committed Jul 3, 2023
    Configuration menu
    Copy the full SHA
    050d338 View commit details
    Browse the repository at this point in the history

Commits on Jul 4, 2023

  1. Aliases are working

        $ bazel query --output=build @pypi//...
    philsc committed Jul 4, 2023
    Configuration menu
    Copy the full SHA
    1f43e70 View commit details
    Browse the repository at this point in the history
  2. Wheel are now extracted

    philsc committed Jul 4, 2023
    Configuration menu
    Copy the full SHA
    97718eb View commit details
    Browse the repository at this point in the history

Commits on Jul 10, 2023

  1. Add support for deps

    philsc committed Jul 10, 2023
    Configuration menu
    Copy the full SHA
    99e4924 View commit details
    Browse the repository at this point in the history
  2. regenerate intermediate file

    philsc committed Jul 10, 2023
    Configuration menu
    Copy the full SHA
    39e2a7c View commit details
    Browse the repository at this point in the history
  3. fix issues with version

    philsc committed Jul 10, 2023
    Configuration menu
    Copy the full SHA
    cd2325e View commit details
    Browse the repository at this point in the history

Commits on Jul 30, 2023

  1. Configuration menu
    Copy the full SHA
    317be76 View commit details
    Browse the repository at this point in the history
  2. Resolve merge conflict

    philsc committed Jul 30, 2023
    Configuration menu
    Copy the full SHA
    9074c6c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    8fcf5cc View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    4dfd766 View commit details
    Browse the repository at this point in the history
  5. Add a basic test

    philsc committed Jul 30, 2023
    Configuration menu
    Copy the full SHA
    b0c9d33 View commit details
    Browse the repository at this point in the history

Commits on Aug 6, 2023

  1. fix test

    philsc committed Aug 6, 2023
    Configuration menu
    Copy the full SHA
    9438672 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5639057 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    93ac73c View commit details
    Browse the repository at this point in the history
  4. clean up a bit

    philsc committed Aug 6, 2023
    Configuration menu
    Copy the full SHA
    09e030f View commit details
    Browse the repository at this point in the history
  5. clean up more

    philsc committed Aug 6, 2023
    Configuration menu
    Copy the full SHA
    14150de View commit details
    Browse the repository at this point in the history

Commits on Aug 7, 2023

  1. rename file

    philsc committed Aug 7, 2023
    Configuration menu
    Copy the full SHA
    9c72809 View commit details
    Browse the repository at this point in the history
  2. clean up more

    philsc committed Aug 7, 2023
    Configuration menu
    Copy the full SHA
    98c0416 View commit details
    Browse the repository at this point in the history
  3. more cleanup

    philsc committed Aug 7, 2023
    Configuration menu
    Copy the full SHA
    b346789 View commit details
    Browse the repository at this point in the history

Commits on Aug 20, 2023

  1. Re-organize the logic a bit

    philsc committed Aug 20, 2023
    Configuration menu
    Copy the full SHA
    356c067 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    77a08d9 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    614b434 View commit details
    Browse the repository at this point in the history
  4. add missing files

    philsc committed Aug 20, 2023
    Configuration menu
    Copy the full SHA
    34412f0 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    c58db28 View commit details
    Browse the repository at this point in the history

Commits on Aug 24, 2023

  1. Configuration menu
    Copy the full SHA
    34ff1c8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    fd3f40a View commit details
    Browse the repository at this point in the history
  3. Switch to BUILD.bazel

    philsc committed Aug 24, 2023
    Configuration menu
    Copy the full SHA
    00e83b4 View commit details
    Browse the repository at this point in the history

Commits on Aug 27, 2023

  1. Fix deps

    philsc committed Aug 27, 2023
    Configuration menu
    Copy the full SHA
    831559e View commit details
    Browse the repository at this point in the history
  2. make patches actually work.

    philsc committed Aug 27, 2023
    Configuration menu
    Copy the full SHA
    35bbf8e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b8536ba View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d77b997 View commit details
    Browse the repository at this point in the history

Commits on Sep 4, 2023

  1. fix a couple of things.

    philsc committed Sep 4, 2023
    Configuration menu
    Copy the full SHA
    6d85b4f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4dd5f28 View commit details
    Browse the repository at this point in the history

Commits on Sep 8, 2023

  1. Configuration menu
    Copy the full SHA
    32cc710 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    36d0b85 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    4b1c56d View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d40c04b View commit details
    Browse the repository at this point in the history

Commits on Sep 13, 2023

  1. Introduce circular dependency

    philsc committed Sep 13, 2023
    Configuration menu
    Copy the full SHA
    d2158f2 View commit details
    Browse the repository at this point in the history
  2. Give up on finding a package with a circular dependency for now.

    apache-airflow and dvc[gs] require source packages.
    philsc committed Sep 13, 2023
    Configuration menu
    Copy the full SHA
    f5e73de View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    1890412 View commit details
    Browse the repository at this point in the history
  4. normalize name

    philsc committed Sep 13, 2023
    Configuration menu
    Copy the full SHA
    04776dd View commit details
    Browse the repository at this point in the history
  5. clean up

    philsc committed Sep 13, 2023
    Configuration menu
    Copy the full SHA
    a75d69e View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    8cb7e29 View commit details
    Browse the repository at this point in the history
  7. Rename pycross_wheel_library to py_wheel_library and make it work

    This patch changes the name of the rule to reflect the fact that it's
    not exactly the same as the one in rules_pycross.
    
    I also took this opportunity to delete the superfluous
    `namespace_pkgs.py` library (plus test) since we have a nearly
    identical version already in the main repo.
    
    I added a test to validate that the rule functions at a basic level.
    
    References: bazelbuild#1360
    philsc committed Sep 13, 2023
    Configuration menu
    Copy the full SHA
    bdfd1d0 View commit details
    Browse the repository at this point in the history

Commits on Sep 25, 2023

  1. Configuration menu
    Copy the full SHA
    bc3dcb0 View commit details
    Browse the repository at this point in the history
  2. Move test to //tests/pycross

    philsc committed Sep 25, 2023
    Configuration menu
    Copy the full SHA
    dd2f722 View commit details
    Browse the repository at this point in the history
  3. fix one more call site

    philsc committed Sep 25, 2023
    Configuration menu
    Copy the full SHA
    e8386f1 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    a066006 View commit details
    Browse the repository at this point in the history
  5. Suppress buildifier warning

    philsc committed Sep 25, 2023
    Configuration menu
    Copy the full SHA
    ea9f5be View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    b4e94d3 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    e1775c3 View commit details
    Browse the repository at this point in the history
  8. run buildifier.

    philsc committed Sep 25, 2023
    Configuration menu
    Copy the full SHA
    35c80ac View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    c451b9f View commit details
    Browse the repository at this point in the history
  10. add comment

    philsc committed Sep 25, 2023
    Configuration menu
    Copy the full SHA
    37ed85b View commit details
    Browse the repository at this point in the history

Commits on Sep 28, 2023

  1. pycross: Add patching support to py_wheel_library

    This patch adds a few arguments to `py_wheel_library` to simulate how
    `http_archive` accepts patch-related arguments.
    
    I also amended the existing test to validate the behaviour at a very
    high level.
    
    References: bazelbuild#1360
    philsc committed Sep 28, 2023
    Configuration menu
    Copy the full SHA
    dd84feb View commit details
    Browse the repository at this point in the history

Commits on Oct 10, 2023

  1. Compile GNU patch

    philsc committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    bb46f2e View commit details
    Browse the repository at this point in the history

Commits on Oct 19, 2023

  1. Configuration menu
    Copy the full SHA
    91c0a30 View commit details
    Browse the repository at this point in the history
  2. add missing file

    philsc committed Oct 19, 2023
    Configuration menu
    Copy the full SHA
    7f4b344 View commit details
    Browse the repository at this point in the history
  3. clean up a bit

    philsc committed Oct 19, 2023
    Configuration menu
    Copy the full SHA
    c456eff View commit details
    Browse the repository at this point in the history
  4. fix buildifier warning

    philsc committed Oct 19, 2023
    Configuration menu
    Copy the full SHA
    88d679e View commit details
    Browse the repository at this point in the history
  5. clean up deps

    philsc committed Oct 19, 2023
    Configuration menu
    Copy the full SHA
    8fb9c6d View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    0a6b206 View commit details
    Browse the repository at this point in the history
  7. fix merge conflicts

    philsc committed Oct 19, 2023
    Configuration menu
    Copy the full SHA
    b8ef501 View commit details
    Browse the repository at this point in the history
  8. Clean up some more.

    philsc committed Oct 19, 2023
    Configuration menu
    Copy the full SHA
    2b0cdaf View commit details
    Browse the repository at this point in the history
  9. buildifier

    philsc committed Oct 19, 2023
    Configuration menu
    Copy the full SHA
    7855521 View commit details
    Browse the repository at this point in the history
  10. black

    philsc committed Oct 19, 2023
    Configuration menu
    Copy the full SHA
    03d5b57 View commit details
    Browse the repository at this point in the history

Commits on Nov 1, 2023

  1. Configuration menu
    Copy the full SHA
    6bd11b4 View commit details
    Browse the repository at this point in the history
  2. Go back to using host patch

    philsc committed Nov 1, 2023
    Configuration menu
    Copy the full SHA
    1d4f48a View commit details
    Browse the repository at this point in the history
  3. buildifier

    philsc committed Nov 1, 2023
    Configuration menu
    Copy the full SHA
    13d59d3 View commit details
    Browse the repository at this point in the history
  4. black

    philsc committed Nov 1, 2023
    Configuration menu
    Copy the full SHA
    50b4739 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    7619780 View commit details
    Browse the repository at this point in the history
  6. add missing file

    philsc committed Nov 1, 2023
    Configuration menu
    Copy the full SHA
    a4c5c69 View commit details
    Browse the repository at this point in the history

Commits on Nov 3, 2023

  1. fix typo

    philsc committed Nov 3, 2023
    Configuration menu
    Copy the full SHA
    322e295 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    651ffff View commit details
    Browse the repository at this point in the history
  3. import pypiserver

    philsc committed Nov 3, 2023
    Configuration menu
    Copy the full SHA
    a099bda View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    b2b9fd7 View commit details
    Browse the repository at this point in the history

Commits on Dec 3, 2023

  1. minor edits

    philsc committed Dec 3, 2023
    Configuration menu
    Copy the full SHA
    5b1e539 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    93d3edc View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    7353010 View commit details
    Browse the repository at this point in the history
  4. fix arg type

    philsc committed Dec 3, 2023
    Configuration menu
    Copy the full SHA
    05f47a6 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    a4a2c71 View commit details
    Browse the repository at this point in the history
  6. buildifier

    philsc committed Dec 3, 2023
    Configuration menu
    Copy the full SHA
    97c0378 View commit details
    Browse the repository at this point in the history

Commits on Dec 4, 2023

  1. Configuration menu
    Copy the full SHA
    3997242 View commit details
    Browse the repository at this point in the history
  2. fix merge conflict

    philsc committed Dec 4, 2023
    Configuration menu
    Copy the full SHA
    acc5112 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    915aadc View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    6926142 View commit details
    Browse the repository at this point in the history

Commits on Dec 5, 2023

  1. Configuration menu
    Copy the full SHA
    d52e57b View commit details
    Browse the repository at this point in the history
  2. Fix a few more bugs

    philsc committed Dec 5, 2023
    Configuration menu
    Copy the full SHA
    a8c12de View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    4ac70e6 View commit details
    Browse the repository at this point in the history

Commits on Jan 29, 2024

  1. Configuration menu
    Copy the full SHA
    8adf080 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    991e835 View commit details
    Browse the repository at this point in the history
  3. re-enable integration test

    philsc committed Jan 29, 2024
    Configuration menu
    Copy the full SHA
    92aae04 View commit details
    Browse the repository at this point in the history
  4. fix up a few things.

    philsc committed Jan 29, 2024
    Configuration menu
    Copy the full SHA
    bbc79ec View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    9dc8623 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    e29aba2 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    ad75959 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    7144829 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    2bda97f View commit details
    Browse the repository at this point in the history
  10. get the basic example working.

    philsc committed Jan 29, 2024
    Configuration menu
    Copy the full SHA
    6c818b4 View commit details
    Browse the repository at this point in the history
  11. disable bzlmod for now

    philsc committed Jan 29, 2024
    Configuration menu
    Copy the full SHA
    d41f491 View commit details
    Browse the repository at this point in the history

Commits on Feb 11, 2024

  1. Configuration menu
    Copy the full SHA
    33cdcb3 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    45247be View commit details
    Browse the repository at this point in the history

Commits on Feb 12, 2024

  1. Configuration menu
    Copy the full SHA
    fd477fc View commit details
    Browse the repository at this point in the history
  2. Clean up naming.

    philsc committed Feb 12, 2024
    Configuration menu
    Copy the full SHA
    93f9df3 View commit details
    Browse the repository at this point in the history
  3. fix up tests

    philsc committed Feb 12, 2024
    Configuration menu
    Copy the full SHA
    4bd6443 View commit details
    Browse the repository at this point in the history
  4. add version-specific package

    philsc committed Feb 12, 2024
    Configuration menu
    Copy the full SHA
    1582943 View commit details
    Browse the repository at this point in the history