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
Removed support for version = '1.0' on VOTable #15490
Conversation
When version='1.0' a Value Error is now raised instead of a Deprecation Warning.
Test_version() on astropy.io.votable.tests.test_tree.py verifies if version of '1.0' raises a Value Error
Thank you for your contribution to Astropy! 🌌 This checklist is meant to remind the package maintainers who will review this pull request of some common things to look for.
|
Thanks! Still needs a change log. While the diff LGTM, I would like PyVO community to chime in, in case someone still needs 1.0 parsing for whatever reason. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Welcome to Astropy 👋 and congratulations on your first pull request! 🎉
A project member will respond to you as soon as possible; in the meantime, please have a look over the Checklist for Contributed Code and make sure you've addressed as many of the questions there as possible.
If you feel that this pull request has not been responded to in a timely manner, please send a message directly to the development mailing list. If the issue is urgent or sensitive in nature (e.g., a security vulnerability) please send an e-mail directly to the private e-mail feedback@astropy.org.
Hey @pllim. I'll do it rn. I just need to add the file in docs/changes/io.votable explaning what I did, right? |
For change log, please see https://github.com/astropy/astropy/blob/main/docs/changes/README.rst For pre-commit, see https://docs.astropy.org/en/latest/development/workflow/maintainer_workflow.html#pre-commit-bot The change log check failure will go away once you added a change log unless you did it wrong. I wouldn't worry about codecov until the entire test suite has finished running. Hope this helps! |
pre-commit.ci autofix |
for more information, see https://pre-commit.ci
Those two problems you pointed were fixed. Thanks for you patience! |
I'm fine with these changes. It is basically turning what was deprecated for quite some time into an error. I note, however, that both the deprecation and the new error are more limited in scope than they sound. Both only happen when I actually think this is a reasonable balance, and that the issue #11669 should have been written with that more limited scope. It's OK to still accept a version 1.0 table, but still strongly encourage the Astropy coder not to create one deliberately. |
And thanks @marcellonascif for working on this. With astropy 6.0 coming out, this is a good time to remove that old deprecation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me.
Thank you, all! |
Thank YOU guys! I'm really happy I could fix my first issue. Thanks for your patience while helping me. |
Description
This pull request removes support for '1.0' on VOTableFile__init__().
I basically removed a condition with version '1.0' specified and now '1.0' is treated like other versions which are not in
_version_namespace_map
dictionary. It means that now '1.0' raises aValueError
instead of aDeprecationWarning
.I also changed the test file to check if '1.0' is raising a ValueError as expected. It has passed the tests.
Fixes #11669