Skip to content

Fix dateutil timezone detection and add Alpine Linux CI coverage - #2101

Open
SemTiOne wants to merge 16 commits into
PyCalendar:mainfrom
SemTiOne:issue-812-alpine-timezone-tests
Open

SemTiOne wants to merge 16 commits into
PyCalendar:mainfrom
SemTiOne:issue-812-alpine-timezone-tests

Conversation

@SemTiOne

Copy link
Copy Markdown
Collaborator

Linked issue

Description

Fixes dateutil timezone detection when it uses its bundled zoneinfo. Makes the timezone tests independent of the installed tzdata version and adds an Alpine Linux CI job.

Checklist

  • I added a change log entry, following the instructions in all subsections under Change log requirements.
  • I followed icalendar's Artificial intelligence policy and disclosed my Responsible AI use in my commit messages, if applicable.
  • I added or updated tests, if applicable.
  • I ran and ensured all tests pass locally by following Run tests.
  • I added or edited documentation as necessary, both as docstrings to be rendered in the API documentation and narrative documentation, following the Style guide.

AI disclosure: GPT-6 Luna reviewed the patch.

Prompt: Review the patch for potential issues and suggestions.
@github-actions

Copy link
Copy Markdown
Contributor

Thanks for the pull request, @SemTiOne! A maintainer will review it shortly.

@niccokunzmann niccokunzmann 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.

Thanks for taking this on! I added suggestions. Let me know what you think!

By the way: At the moment it is hard to scale with the incoming PRs. Reviews are welcome - and also flagging AI slop.

Comment thread src/icalendar/timezone/tzid.py Resolved
Comment thread .github/workflows/tests.yml Resolved
Comment thread .github/workflows/tests.yml Resolved
Comment thread .github/workflows/tests.yml Resolved
@niccokunzmann

Copy link
Copy Markdown
Member

Let me know when I should have a look.

@SemTiOne

Copy link
Copy Markdown
Collaborator Author

@niccokunzmann Ok I think this looks good now. Could you please have a look? Let me know if there's something wrong.

@dashboard-pycal-org dashboard-pycal-org Bot added the Needs technical review This PR requires technical reviews now. label Nov 21, 2026
@dashboard-pycal-org

dashboard-pycal-org Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Replies of SemTiOne

Thanks for contributing to icalendar @SemTiOne!

Maintainer review

Peer reviews are still welcome.
The maintainers and collaborators of icalendar will review your pull request.

  1. ❌ This PR is not ready for documentation review
    The technical implementation should be fixed, so that the documentation can accurately represent it.
    When the technical review is done, maintainers assign the label Needs documentation review.
  2. ✔️ CI must pass
    All CI check must run for this pull request to be merged.

dashboard.pycal.org feedback

@dashboard-pycal-org dashboard-pycal-org Bot added the Maintainer review Created by dashboard.pycal.org: https://dashboard.pycal.org/projects/icalendar/steps/?step_id=5 label Nov 23, 2026

@niccokunzmann niccokunzmann 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.

Hi, thanks for the PR!

This looks like a good start and we can merge it to test alpine linux.
We should definitely show how to install icalendar on alpine then in the docs.

I have a few ideas that I posted as comments. Please let me know what you think!

Comment thread tox.ini Resolved
Comment thread scripts/docker/compose.yaml Resolved
@SemTiOne

SemTiOne commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator Author

Ok I believe this addresses #2101 (comment). Could you please take another look?

Btw the Alpine installation instructions are already documented in docs/how-to/install.rst:

Alpine Linux
------------

On Alpine Linux the `py3-icalendar <https://pkgs.alpinelinux.org/packages?name=py3-icalendar&branch=edge&repo=&arch=&origin=&flagged=&maintainer=>`_ package can be installed using ``apk``:

.. code-block:: shell

    sudo apk add py3-icalendar

The only thing that needs updating is the package index link, which currently filters for branch=edge. It should use branch=v3.24 to match the Alpine version used by the CI image.

Ref:

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

Labels

Maintainer review Created by dashboard.pycal.org: https://dashboard.pycal.org/projects/icalendar/steps/?step_id=5 Needs technical review This PR requires technical reviews now. PR quality: good

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tests fail on Alpine Linux for v6.1.3

2 participants