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

override package dependencies with requirements file when requested #7557

Merged

Conversation

zacharyburnett
Copy link
Collaborator

@zacharyburnett zacharyburnett commented Apr 19, 2023

Resolves SCSB-66

Currently, tox installs the requirements-sdp.txt or requirements-dev.txt before installing the package with pip install .; this could result in the possible edge case where package dependencies override the requirements file, where the opposite should be the case:
https://github.com/spacetelescope/jwst/actions/runs/4743917678/jobs/8424099673#step:10:14

In fact, this edge case triggers right now in the test-devdeps-xdist CI job, because stdatamodels is pinned below 1.4.0 and the latest commit is past 1.4.0:
https://github.com/spacetelescope/jwst/actions/runs/4743917678/jobs/8424100250#step:10:16

Checklist for maintainers

  • added entry in CHANGES.rst within the relevant release section
  • updated or added relevant tests
  • [N/A] updated relevant documentation
  • [N/A] added relevant milestone
  • added relevant label(s)
  • [N/A] ran regression tests, post a link to the Jenkins job below.
    How to run regression tests on a PR
  • Make sure the JIRA ticket is resolved properly

@zacharyburnett zacharyburnett self-assigned this Apr 19, 2023
@zacharyburnett zacharyburnett changed the title install from requirements file after tox install override package dependencies with requirements file when requested Apr 19, 2023
@zacharyburnett zacharyburnett marked this pull request as ready for review April 19, 2023 14:56
@zacharyburnett zacharyburnett requested a review from a team as a code owner April 19, 2023 14:56
@codecov
Copy link

codecov bot commented Apr 19, 2023

Codecov Report

Patch coverage has no change and project coverage change: +0.01 🎉

Comparison is base (e1a3fa8) 77.57% compared to head (15c0508) 77.58%.

❗ Current head 15c0508 differs from pull request most recent head 4f6fce2. Consider uploading reports for the commit 4f6fce2 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7557      +/-   ##
==========================================
+ Coverage   77.57%   77.58%   +0.01%     
==========================================
  Files         455      455              
  Lines       36348    36367      +19     
==========================================
+ Hits        28197    28216      +19     
  Misses       8151     8151              
Flag Coverage Δ *Carryforward flag
nightly 77.64% <ø> (+0.01%) ⬆️ Carriedforward from 7822de3

*This pull request uses carry forward flags. Click here to find out more.

see 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@zacharyburnett zacharyburnett enabled auto-merge (squash) April 24, 2023 19:14
@zacharyburnett zacharyburnett disabled auto-merge April 26, 2023 12:12
@zacharyburnett zacharyburnett merged commit c38e111 into spacetelescope:master Apr 26, 2023
@zacharyburnett zacharyburnett deleted the reorder_deps_install branch April 26, 2023 12:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants