GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test(python): use constraints files to check dependency lower bounds by busunkim96 · Pull Request #869 · googleapis/synthtool

test(python): use constraints files to check dependency lower bounds #869

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.

Sign up for GitHub

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

Merged
gcf-merge-on-green merged 10 commits into master from use-constraints-file
Mar 23, 2021

Uh oh!

There was an error while loading. Please reload this page.

Merged

test(python): use constraints files to check dependency lower bounds #869

Changes from 1 commit
Commits
Show all changes
10 commits
Select commit Hold shift + click to select a range
b9a14fe
test(python): use constraints files to check dependency lower bounds
busunkim96 Dec 1, 2020
785a55f
Merge branch 'master' into use-constraints-file
busunkim96 Dec 3, 2020
9c6f155
fix: don't fail if no constraints file is found
busunkim96 Dec 3, 2020
cc463da
Merge branch 'use-constraints-file' of github.com:googleapis/synthtoo…
busunkim96 Dec 3, 2020
dfda1a0
fix: fail on missing file; add constraints to all dep installs
busunkim96 Dec 3, 2020
2a29047
chore: use path as string
busunkim96 Dec 3, 2020
a9d400a
Merge branch 'master' into use-constraints-file
tseaver Dec 16, 2020
41d18e9
Merge remote-tracking branch 'upstream/master' into use-constraints-file
tswast Mar 23, 2021
897f08f
fix tests
tswast Mar 23, 2021
8f98a99
Merge branch 'master' into use-constraints-file
gcf-merge-on-green[bot] Mar 23, 2021
File filter
Filter by extension

Clear filters
Conversations
Failed to load comments.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Jump to
Jump to file
Failed to load files.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Diff view
Diff view
Prev Previous commit
Next Next commit
chore: use path as string
  • Loading branch information

Uh oh!

There was an error while loading. Please reload this page.

@busunkim96
busunkim96 committed Dec 3, 2020
commit 2a290475c184e929c423d5ba1f0f0a25ce998e40

There are no files selected for viewing

14 changes: 7 additions & 7 deletions 14 synthtool/gcp/templates/python_library/noxfile.py.j2
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,14 @@ def lint_setup_py(session):
def default(session):
# Install all test dependencies, then install this package in-place.

constraints_path = (
constraints_path = str(
CURRENT_DIRECTORY / "testing" / f"constraints-{session.python}.txt"
)
{%- if microgenerator %}
session.install("asyncmock", "pytest-asyncio", "-c", str(constraints_path))
session.install("asyncmock", "pytest-asyncio", "-c", constraints_path)
{% endif %}
session.install("mock", "pytest", "pytest-cov"{% for d in unit_test_external_dependencies %}, "{{d}}"{% endfor %}, "-c", str(constraints_path))
session.install("-e", ".", "-c", str(constraints_path))
session.install("mock", "pytest", "pytest-cov"{% for d in unit_test_external_dependencies %}, "{{d}}"{% endfor %}, "-c", constraints_path)
session.install("-e", ".", "-c", constraints_path)
{% for dependency in unit_test_local_dependencies %}session.install("-e", "{{dependency}}"){% endfor %}
{% for dependency in unit_test_dependencies %}session.install("-e", "{{dependency}}"){% endfor %}

Expand All @@ -110,7 +110,7 @@ def unit(session):
@nox.session(python=SYSTEM_TEST_PYTHON_VERSIONS)
def system(session):
"""Run the system test suite."""
constraints_path = (
constraints_path = str(
CURRENT_DIRECTORY / "testing" / f"constraints-{session.python}.txt"
)
system_test_path = os.path.join("tests", "system.py")
Expand All @@ -134,12 +134,12 @@ def system(session):

# Install all test dependencies, then install this package into the
# virtualenv's dist-packages.
session.install("mock", "pytest", "google-cloud-testutils"{% for d in system_test_external_dependencies %}, "{{d}}"{% endfor %}, "-c", str(constraints_path))
session.install("mock", "pytest", "google-cloud-testutils"{% for d in system_test_external_dependencies %}, "{{d}}"{% endfor %}, "-c", constraints_path)

{%- if system_test_local_dependencies %}
session.install("-e", {% for d in system_test_local_dependencies %}"{{d}}"{% if not loop.last %},{% endif %}{% endfor %})
{%- endif %}
session.install("-e", ".", "-c", str(constraints_path))
session.install("-e", ".", "-c", constraints_path)


# Run py.test against the system tests.
Expand Down
Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
You are visitor 01402809 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.