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

Add missing astroquery dependency #690

Merged
merged 1 commit into from
Jul 31, 2023

Conversation

larrybradley
Copy link
Member

No description provided.

@codecov
Copy link

codecov bot commented Jul 12, 2023

Codecov Report

Patch coverage has no change and project coverage change: -0.75% ⚠️

Comparison is base (90dba3f) 55.94% compared to head (5250d16) 55.20%.

❗ Current head 5250d16 differs from pull request most recent head e1682e9. Consider uploading reports for the commit e1682e9 to get more accurate results

Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #690      +/-   ##
===========================================
- Coverage    55.94%   55.20%   -0.75%     
===========================================
  Files           15       14       -1     
  Lines         6281     6141     -140     
===========================================
- Hits          3514     3390     -124     
+ Misses        2767     2751      -16     

see 5 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@BradleySappington BradleySappington left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good!

Copy link
Collaborator

@BradleySappington BradleySappington left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there a specific version we want to pin here?

@larrybradley
Copy link
Member Author

The requirements.txt file in this repo pins exactly to 0.4.6, which is the latest release:

astroquery==0.4.6

That seems very specific, but I can update this PR to use that. Internally, webbpsf is using astroquery.mast. I'm not sure if that API changes frequently.

@mperrin
Copy link
Collaborator

mperrin commented Jul 26, 2023

FYI @larrybradley, I agree having the "requirements" all pinned to exactly specifically the latest version is a little surprising and counterintuitive. That turns out to be from the use of Dependabot to manage dependencies. That service automatically updates the requirements.txt file to the latest versions of things. This has the nice effect of ensuring the CI runs with the latest version of every package, but on the other hand means that semantically the "requirements.txt" is not truly the minimum required version. Tradeoffs... 🤷‍♂️

@larrybradley
Copy link
Member Author

larrybradley commented Jul 26, 2023

There's also a discrepancy between the actual package runtime requirements as specfied in the pyproject.toml file:
https://github.com/spacetelescope/webbpsf/blob/develop/pyproject.toml#L16

and the dependencies in requirements.txt. It appears the install docs and various CI point to requirements.txt. Not sure why that is needed for CI since the latest versions will be used by default.

@BradleySappington
Copy link
Collaborator

The pyproject dependencies are all loosely pinned (above a certain version), while the requirements.txt are all the latest (thanks to dependabot). This gives two install options, if you install via pip with no special commands, pyproject will be used. If you want to install with the latest version only, the user can install using requirements.txt via pip install . -r requirements.txt.

Copy link
Collaborator

@BradleySappington BradleySappington left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just had a discussion with @obi-wan76, since astroquery isn't needed for base functionality, we should move the dependency down to the [project.optional-dependencies] section.

@larrybradley
Copy link
Member Author

I've updated this PR to move astroquery as an optional dependency under the all variant.

Copy link
Collaborator

@BradleySappington BradleySappington left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @larrybradley

@BradleySappington BradleySappington merged commit b920e36 into spacetelescope:develop Jul 31, 2023
6 checks passed
@larrybradley larrybradley deleted the deps branch July 31, 2023 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants