Skip to content

[DRAFT] Adding a utf8trunc function to io.votable.util. - #18294

Draft
msdemlei wants to merge 2 commits into
astropy:mainfrom
gavodachs:add-utf8-truncation
Draft

msdemlei wants to merge 2 commits into
astropy:mainfrom
gavodachs:add-utf8-truncation

Conversation

@msdemlei

Copy link
Copy Markdown
Contributor

Description

This function would be necessary once we prototype the interpretation of char as utf-8 sequences, which in turn has been discussed at the College Park Interop and in ivoa-std/VOTable#55.

Discussion

Apologies for the state this is in and that it will probably fail all kinds of CI; if nobody else volunteers, I will clean it up (including moving the doctests to pytest) once we actually do serialise utf-8 into chars. Until then, can this be a draft?

@github-actions

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 pllim added this to the v7.2.0 milestone Jun 18, 2025
@pllim
pllim marked this pull request as draft June 18, 2025 14:47
@astrofrog astrofrog modified the milestones: v7.2.0, v9.0.0, v8.0.0 Nov 3, 2025
@github-actions github-actions Bot added the Close? Tell stale bot that this issue/PR is stale label Nov 16, 2025
@github-actions

Copy link
Copy Markdown
Contributor

Hi humans 👋 - this pull request hasn't had any new commits for approximately 4 months. I plan to close this in 30 days if the pull request doesn't have any new commits by then.

In lieu of a stalled pull request, please consider closing this and open an issue instead if a reminder is needed to revisit in the future. Maintainers may also choose to add keep-open label to keep this PR open but it is discouraged unless absolutely necessary.

If this PR still needs to be reviewed, as an author, you can rebase it to reset the clock.

If you believe I commented on this pull request incorrectly, please report this here.

@bsipocz

bsipocz commented Nov 16, 2025

Copy link
Copy Markdown
Member

@pllim - wasnt' the bot supposed to come and complain after 5 months rather than 4?

@bsipocz bsipocz removed the Close? Tell stale bot that this issue/PR is stale label Nov 16, 2025
@bsipocz bsipocz removed this from the v8.0.0 milestone Nov 16, 2025
@bsipocz

bsipocz commented Nov 16, 2025

Copy link
Copy Markdown
Member

We had discussion about this at the interop, so I expect that code and implementation of the decisions will be made in the coming month. So with that, I put the keep-open label on to keep this alive for at least another half year.

@pllim

pllim commented Nov 17, 2025

Copy link
Copy Markdown
Member

Well, I had to define it in seconds, so the human month is approximate and can be 4 or 5 because of uneven months and so on.

https://github.com/pllim/action-astropy-stalebot/blob/aed4b8aa0b1cbdb4ef09d476e46ebe0768e75d4b/stale_pull_requests.py#L37

@pllim

This comment was marked as resolved.

@msdemlei

msdemlei commented Aug 25, 2026 via email

Copy link
Copy Markdown
Contributor Author

@pllim pllim removed the keep-open label Oct 14, 2026
@github-actions github-actions Bot added the Close? Tell stale bot that this issue/PR is stale label Oct 15, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Hi humans 👋 - this pull request hasn't had any new commits for approximately 1 year, 4 months. I plan to close this in a month if the pull request doesn't have any new commits by then.

In lieu of a stalled pull request, please consider closing this and open an issue instead if a reminder is needed to revisit in the future. Maintainers may also choose to add keep-open label to keep this PR open but it is discouraged unless absolutely necessary.

If this PR still needs to be reviewed, as an author, you can rebase it to reset the clock.

If you believe I commented on this pull request incorrectly, please report this here.

@bsipocz

bsipocz commented Oct 16, 2026

Copy link
Copy Markdown
Member

@pllim - the bot's comment needs to be updated now that the label is gone.

Otherwise, this PR needs a rebase as we want to keep it open as atypical case where upstream is a blocker for merging.

This would be necessary once we prototype the interpretation of char
as utf-8 sequence.

Apologies for just dumping in a bunch of doctests and possibly ignoring
all kinds of style guides; if nobody else volunteers to clean this up, I'll
take another dive into the astropy tooling once I've pulled my development
machine to trixie.
@msdemlei
msdemlei force-pushed the add-utf8-truncation branch from 5c3dde5 to b90f66f Compare October 16, 2026 12:56
@msdemlei

msdemlei commented Oct 16, 2026 via email

Copy link
Copy Markdown
Contributor Author

@pllim

pllim commented Oct 16, 2026 •

Copy link
Copy Markdown
Member

bot's comment needs to be updated

Oh yeah, good catch! I will do that as a separate PR (#20629).

@pllim pllim removed the Close? Tell stale bot that this issue/PR is stale label Oct 16, 2026
@pllim pllim added this to the v9.0.0 milestone Oct 16, 2026
@pllim

pllim commented Oct 16, 2026

Copy link
Copy Markdown
Member

p.s. I tentatively added a milestone just so you have one less failing check. When you know for sure, feel free to update it.

@bsipocz

bsipocz commented Oct 16, 2026

Copy link
Copy Markdown
Member

@msdemlei - I tried but unfortunately cannot push to/rebase the branch as it's opened from the GAVO org account rather than from a personal one.
Could you please push the rebased version instead? It was a clean one so there shouldn't be any actual issues.

This branch has not been deployed

No deployments
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.

4 participants