Skip to content

API: Deprecate astropy.samp#19373

Merged
bsipocz merged 3 commits into
astropy:mainfrom
pllim:sampwise-gamgee
Jun 8, 2026
Merged

API: Deprecate astropy.samp#19373
bsipocz merged 3 commits into
astropy:mainfrom
pllim:sampwise-gamgee

Conversation

@pllim

@pllim pllim commented Mar 6, 2026

Copy link
Copy Markdown
Member

Description

This pull request is to deprecate astropy.samp formally in the same style as astropy/astroquery#3548

Close #9763

Blocked by

After merge

  • Open follow-up issue to complete remove astropy.samp from this repo. This also includes directive in auto-labeling bot, pytest warning filter, and so on. Some grep-fu required.

@pllim pllim added this to the v9.0.0 milestone Mar 6, 2026
@pllim pllim added API change PRs and issues that change an existing API, possibly requiring a deprecation period Downstream Fix Required labels Mar 6, 2026
@github-actions

github-actions Bot commented Mar 6, 2026

Copy link
Copy Markdown
Contributor

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.

  • Do the proposed changes actually accomplish desired goals?
  • Do the proposed changes follow the Astropy coding guidelines?
  • Are tests added/updated as required? If so, do they follow the Astropy testing guidelines?
  • Are docs added/updated as required? If so, do they follow the Astropy documentation guidelines?
  • Is rebase and/or squash necessary? If so, please provide the author with appropriate instructions. Also see instructions for rebase and squash.
  • Did the CI pass? If no, are the failures related? If you need to run daily and weekly cron jobs as part of the PR, please apply the "Extra CI" label. Codestyle issues can be fixed by the bot.
  • Is a change log needed? If yes, did the change log check pass? If no, add the "no-changelog-entry-needed" label. If this is a manual backport, use the "skip-changelog-checks" label unless special changelog handling is necessary.
  • Is this a big PR that makes a "What's new?" entry worthwhile and if so, is (1) a "what's new" entry included in this PR and (2) the "whatsnew-needed" label applied?
  • At the time of adding the milestone, if the milestone set requires a backport to release branch(es), apply the appropriate "backport-X.Y.x" label(s) before merge.

@pllim

This comment was marked as resolved.

Comment thread astropy/samp/__init__.py Outdated
# Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
.. warning::
``astropy.samp`` was deprecated in version 9.0 and will be removed in a future version;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

not in 8.1?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

We can re-milestone when we know for sure. When will pyvo be released again?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Before the next ivoa, so practically end of May, very early june

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

OK we can revisit after that. Thanks!

@pllim pllim force-pushed the sampwise-gamgee branch from a8d7215 to 74d0868 Compare March 7, 2026 02:41
@pllim

pllim commented Mar 7, 2026

Copy link
Copy Markdown
Member Author

Remote data job failure is unrelated.

@bsipocz

bsipocz commented Jun 7, 2026

Copy link
Copy Markdown
Member

Can we do this for 8.0? I released pyvo 1.9 this week, and started to get reports of it colliding with astropy, so I wonder if we could get in the deprecation sooner rather than in 2 years down the line.

cc @astrofrog @andamian @tomdonaldson

@astrofrog

Copy link
Copy Markdown
Member

Fine by me!

@bsipocz

bsipocz commented Jun 7, 2026

Copy link
Copy Markdown
Member

Do you have a preference of just simply deprecate or making pyvo a dependency and pulling the functionality from it?

(I would expect the latter approach would resolve the samp-hub cli issue we got reported about in pyvo)

@bsipocz bsipocz modified the milestones: v9.0.0, v8.0.0 Jun 7, 2026

@bsipocz bsipocz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Some comments about deprecating this in 8.0

Comment thread astropy/samp/__init__.py Outdated
Comment thread astropy/samp/__init__.py Outdated
Comment thread astropy/samp/__init__.py Outdated
Comment thread astropy/samp/__init__.py Outdated
Comment thread docs/changes/samp/19373.api.rst Outdated
Comment thread docs/samp/index.rst Outdated
@bsipocz bsipocz force-pushed the sampwise-gamgee branch from 01ad1b9 to e174426 Compare June 7, 2026 12:36
@bsipocz bsipocz marked this pull request as ready for review June 7, 2026 12:36
@bsipocz bsipocz requested a review from neutrinoceros as a code owner June 7, 2026 12:36
@bsipocz

bsipocz commented Jun 7, 2026

Copy link
Copy Markdown
Member

Fine by me!

@astrofrog - this should be ready to review and merge then.

@astrofrog

Copy link
Copy Markdown
Member

Just to double check, is samp ready to use in pyvo?

@bsipocz

bsipocz commented Jun 7, 2026

Copy link
Copy Markdown
Member

Just to double check, is samp ready to use in pyvo?

Yes, it should be, at least the astropy version got ported over as is. But let me check with the other maintainers.

Comment thread astropy/samp/__init__.py
@astrofrog

Copy link
Copy Markdown
Member

@bsipocz - thanks, once you know for sure that it's ready to go, can you also open a PR to the v8.0.x branch to add a what's new entry?

@bsipocz

bsipocz commented Jun 8, 2026

Copy link
Copy Markdown
Member

@bsipocz - thanks, once you know for sure that it's ready to go, can you also open a PR to the v8.0.x branch to add a what's new entry?

Sure. What's new only goes into the backport PR, right?

@bsipocz bsipocz added the backport-v8.0.x on-merge: backport to v8.0.x label Jun 8, 2026
@bsipocz bsipocz merged commit 3def797 into astropy:main Jun 8, 2026
68 of 69 checks passed
bsipocz added a commit that referenced this pull request Jun 8, 2026
bsipocz added a commit that referenced this pull request Jun 8, 2026
…373-on-v8.0.x

Backport PR #19373 on branch v8.0.x (API: Deprecate astropy.samp)
@pllim pllim deleted the sampwise-gamgee branch June 8, 2026 16:29
@pllim

pllim commented Jun 8, 2026

Copy link
Copy Markdown
Member Author

Whoa, that moved fast. One weekend I didn't check email and the ring was already tossed into Mt. Doom. 😆

I opened #19874 as follow-up. Thanks, all!

@pllim

pllim commented Jun 8, 2026

Copy link
Copy Markdown
Member Author

@bsipocz

bsipocz commented Jun 9, 2026

Copy link
Copy Markdown
Member

Whoa, that moved fast. One weekend I didn't check email and the ring was already tossed into Mt. Doom. 😆
I opened #19874 as follow-up. Thanks, all!

Well, I was working with the assumption that astropy wanted to get rid of this module for at least half a decade, so no need to drag it on for longer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

API change PRs and issues that change an existing API, possibly requiring a deprecation period backport-v8.0.x on-merge: backport to v8.0.x Docs Downstream Fix Required samp

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Move samp to PyVO package

4 participants