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

Update syntax for installing from git repos to latest recommended #12

Merged
merged 2 commits into from
Nov 13, 2023

Conversation

astrofrog
Copy link
Member

Fixes #11 (the sunpy build)

There are however now genuine test failures in the sunpy build

@astrofrog
Copy link
Member Author

@pllim - I think it does make sense to run in PRs, so I think we should permanently add that setting.

@astrofrog
Copy link
Member Author

astrofrog commented Nov 10, 2023

I think the test failures might be related to the fact that there are some pytest options specified in sunpy's setup.cfg, but we'd have to repeat these here as command-line arguments. I wonder if there's a way to avoid that though as that would be a pain to keep in sync. Will ping the sunpy folk.

For example some of the test failures are probably due to the fact that we require the equivalent of:

doctest_optionflags = NORMALIZE_WHITESPACE FLOAT_CMP ELLIPSIS

@@ -2,6 +2,7 @@ name: astropy_rc_basic

on:
workflow_dispatch:
pull_request:
Copy link
Member

Choose a reason for hiding this comment

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

If there is no security concern, I guess it is okay to leave this in? This is a low-traffic repo anyway.

Copy link
Member Author

Choose a reason for hiding this comment

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

I don't see any potential security concerns with this. And any PR is likely to change the config in a way we want to make sure it isn't breaking I think.

astroquery,all: git+https://github.com/astropy/astroquery.git#egg=astroquery[test,all]
asdf_astropy,all: asdf_astropy[test] @ git+https://github.com/astropy/asdf-astropy.git
astropy_healpix,all: astropy_healpix[test] @ git+https://github.com/astropy/astropy-healpix.git
astroquery,all: astroquery[test,all] @ git+https://github.com/astropy/astroquery.git
ccdproc,all: psutil
Copy link
Member

Choose a reason for hiding this comment

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

Oops did I use the wrong syntax to pull in dependencies? My bad!

Copy link
Member Author

Choose a reason for hiding this comment

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

I think this original syntax did work at some point but I think it's not the latest and maybe doesn't work with new features like what sunpy uses. In any case, this should now be the preferred syntax.

Copy link
Member

@pllim pllim left a comment

Choose a reason for hiding this comment

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

The diff looks good. Should we investigate the actual sunpy failure separately?

@astrofrog
Copy link
Member Author

Yes sounds good

@pllim pllim merged commit 2d37b5f into astropy:main Nov 13, 2023
10 of 11 checks passed
@pllim pllim mentioned this pull request Nov 13, 2023
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.

Re-enable sunpy when we can
2 participants