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

ENH: Adding cmd line -R option #62

Merged
merged 3 commits into from
Oct 6, 2022
Merged

Conversation

bsipocz
Copy link
Member

@bsipocz bsipocz commented Oct 2, 2022

To close #46

Also, I did minor cleanups for ancient python versions, etc.

@bsipocz bsipocz added this to the v0.4.0 milestone Oct 2, 2022
@bsipocz bsipocz closed this Oct 2, 2022
@bsipocz bsipocz reopened this Oct 2, 2022
@bsipocz
Copy link
Member Author

bsipocz commented Oct 2, 2022

close and reopen to trigger CI

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.

Thanks! Just a couple of questions.

- os: macos-latest
python-version: 3.8
toxenv: py38-test-pytestdev
python-version: '3.10'
Copy link
Member

Choose a reason for hiding this comment

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

Do we want Python 3.11 here?

Copy link
Member Author

Choose a reason for hiding this comment

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

Sure, but it's enough to have it once the release is out

Copy link
Member

Choose a reason for hiding this comment

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

🤞

parser.addoption(
"--remote-data", nargs="?", const='any', default='none',
"--remote-data", "-R", nargs="?", const='any', default='none',
Copy link
Member

Choose a reason for hiding this comment

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

I didn't check but we had a past problem where we accidentally overrode an existing shortcut from upstream. Are you sure this won't conflict with other stuff?

Copy link
Member Author

@bsipocz bsipocz Oct 5, 2022

Choose a reason for hiding this comment

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

yep, I'm sure, that was one of the other ones. There maybe override with other plugins, but not with core pytest or the ones I have installed:

$ ~/munka/devel/astroquery [esasky-doc-cleanup|…1⚑ 19] $ pytest -R
ERROR: usage: pytest [options] [file_or_dir] [file_or_dir] [...]
pytest: error: unrecognized arguments: -R
  inifile: /Users/bsipocz/munka/devel/astroquery/setup.cfg
  rootdir: /Users/bsipocz/munka/devel/astroquery
plugins: anyio-3.6.1, remotedata-0.3.3, requests-mock-1.9.3, rerunfailures-10.2, astropy-header-0.2.2, doctestplus-0.12.1, mock-3.8.2, dependency-0.5.1, astropy-0.10.0, filter-subpackage-0.1.1, openfiles-0.5.0, nbval-0.9.7.dev0, hypothesis-6.54.5, cov-3.0.0, arraydiff-0.5.0

Copy link
Member

Choose a reason for hiding this comment

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

Thanks for checking! We can revisit this in the future if a conflict does arise I hope not. 😸

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.

LGTM but I think need a change log?

- os: macos-latest
python-version: 3.8
toxenv: py38-test-pytestdev
python-version: '3.10'
Copy link
Member

Choose a reason for hiding this comment

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

🤞

parser.addoption(
"--remote-data", nargs="?", const='any', default='none',
"--remote-data", "-R", nargs="?", const='any', default='none',
Copy link
Member

Choose a reason for hiding this comment

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

Thanks for checking! We can revisit this in the future if a conflict does arise I hope not. 😸

@bsipocz
Copy link
Member Author

bsipocz commented Oct 6, 2022

And even the changelog addition was waiting for it in staged state, I must have sidetracked before I could commit and push it 😅

@bsipocz bsipocz merged commit d2c4ba1 into astropy:main Oct 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add -R as shortcut for --remote-data=any
2 participants