Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: googleapis/python-test-utils
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.1.0
Choose a base ref
Loading
...
head repository: googleapis/python-test-utils
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.2.0
Choose a head ref
Loading
  • 4 commits
  • 15 files changed
  • 3 contributors

Commits on May 28, 2020

  1. chore(python): remove one remaining extra bash line (#565) (#4)

    To avoid generating bogus PRs
    
    Co-authored-by: Jeffrey Rennie <rennie@google.com>
    
    Source-Author: Carlos de la Guardia <cguardia@yahoo.com>
    Source-Date: Tue May 19 11:57:19 2020 -0500
    Source-Repo: googleapis/synthtool
    Source-Sha: d2364eb80b840a36136c8ce12f1c6efabcc9600e
    Source-Link: googleapis/synthtool@d2364eb
    yoshi-automation authored May 28, 2020
    Configuration menu
    Copy the full SHA
    d3d3ce8 View commit details
    Browse the repository at this point in the history

Commits on Sep 24, 2020

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

Commits on Feb 22, 2021

  1. feat: add lower bound checker (#8)

    Add a lower bound checker to be invoked on the command line by client libraries. This accomplishes two things:
    - Makes it easier to mass update/create constraints files.
    - Adds another layer of checks to the lower bounds in setup.py / constraints files.
    
    See googleapis/synthtool#869 for additional context on the lower bounds work.
    
    `lower-bound-checker` is intentionally restrictive on the types of pins it permits in `setup.py` and `constraints.txt`. The tool doesn't try to `pip install` the package. It is assumed that other checks (e.g., setup.py lint, unit tests) will pick up on things like misspelled package names or a version range that cannot be fulfilled.
    
    ```
    busunkim@busunkim:~/github/python-test-utils$ lower-bound-checker check --help
    Usage: lower-bound-checker check [OPTIONS]
    
      Check that the constraints-file pins to the lower bound specified in
      package-name's setup.py for each requirement.
    
      Requirements:
    
      1. The setup.py pins every requirement in one of the following formats:
    
          * foo==1.2.0
    
          * foo>=1.2.0
    
          * foo>=1.2.0, <2.0.0dev
    
          * foo<2.0.0dev, >=1.2.0
    
      2. The constraints file pins every requirement to a single version:
    
          * foo==1.2.0
    
      3. package-name is already be installed in the environment.
    
    Options:
      --package-name TEXT      Name of the package.  [required]
      --constraints-file TEXT  Path to constraints file.  [required]
      --help                   Show this message and exit.
    ```
    
    
    **Example Usage:**
    
    (for reviewers)
    - Install this repo from source: `pip install /path/to/repo`
    - Install another package from source: `pip install /path/to/google-cloud-foo`
    
    1. Check an existing package and constraints file:
    ```
    lower-bound-checker check --package-name google-cloud-foo
    --constraints-file testing/constraints-3.6.txt
    ```
    
    2. Create/update a constraints file:
    ```
    lower-bound-checker update --package-name google-cloud-foo
    --constraints-file testing/constraints-3.6.txt
    ```
    busunkim96 authored Feb 22, 2021
    Configuration menu
    Copy the full SHA
    5ebac9f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    500a930 View commit details
    Browse the repository at this point in the history
Loading
Morty Proxy This is a proxified and sanitized view of the page, visit original site.