Skip to content

Turn tzdata install requirement into optional timezone dependency #10331

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

Merged
merged 1 commit into from
Sep 6, 2024
Merged

Turn tzdata install requirement into optional timezone dependency #10331

merged 1 commit into from
Sep 6, 2024

Conversation

jakob-keller
Copy link
Contributor

@jakob-keller jakob-keller commented Sep 5, 2024

Change Summary

#9896 adds an install requirement for tzdata, which states:

tzdata is intended to be a fallback for systems that do not have system time zone data installed.

Non-Windows system typically have time zone data installed and do not need tzdata. This PR turns the tzdata dependency into an optional dependency group timezone. Documentation is updated accordingly.

Related issue number

fix #10328

Checklist

  • The pull request title is a good summary of the changes - it will be used in the changelog
  • Unit tests for the changes exist
  • Tests pass on CI
  • Documentation reflects the changes where applicable
  • My PR is ready to review, please add a comment including the phrase "please review" to assign reviewers

@github-actions github-actions bot added the relnotes-fix Used for bugfixes. label Sep 5, 2024
Copy link

codspeed-hq bot commented Sep 5, 2024

CodSpeed Performance Report

Merging #10331 will not alter performance

Comparing jakob-keller:optional-tzdata (ca45657) with main (852736c)

Summary

✅ 50 untouched benchmarks

Copy link
Contributor

github-actions bot commented Sep 5, 2024

Coverage report

This PR does not seem to contain any modification to coverable code.

@jakob-keller jakob-keller marked this pull request as ready for review September 5, 2024 23:18
@jakob-keller
Copy link
Contributor Author

@sydney-runkle: Please have a look. Thank you!

Copy link
Contributor

@sydney-runkle sydney-runkle left a comment

Choose a reason for hiding this comment

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

Great, thanks for the quick turnaround!

@sydney-runkle sydney-runkle merged commit 97d357f into pydantic:main Sep 6, 2024
60 checks passed
@jakob-keller jakob-keller deleted the optional-tzdata branch September 6, 2024 05:40
hswong3i pushed a commit to alvistack/pydantic-pydantic that referenced this pull request Sep 6, 2024
    git clean -xdf
    tar zcvf ../python-pydantic_2.9.0.orig.tar.gz --exclude=.git .
    debuild -uc -us
    cp python-pydantic.spec ../python-pydantic_2.9.0-1.spec
    cp ../python*-pydantic*2.9.0*.{gz,xz,spec,dsc} /osc/home\:alvistack/pydantic-pydantic-2.9.0/
    rm -rf ../python*-pydantic*2.9.0*.*

See pydantic#10331

Signed-off-by: Wong Hoi Sing Edison <[email protected]>
hswong3i pushed a commit to alvistack/pydantic-pydantic that referenced this pull request Sep 9, 2024
    git clean -xdf
    tar zcvf ../python-pydantic_2.9.1.orig.tar.gz --exclude=.git .
    debuild -uc -us
    cp python-pydantic.spec ../python-pydantic_2.9.1-1.spec
    cp ../python*-pydantic*2.9.1*.{gz,xz,spec,dsc} /osc/home\:alvistack/pydantic-pydantic-2.9.1/
    rm -rf ../python*-pydantic*2.9.1*.*

See pydantic#10331

Signed-off-by: Wong Hoi Sing Edison <[email protected]>
arnout pushed a commit to buildroot/buildroot that referenced this pull request Sep 9, 2024
pyproject.toml declared the tzdata package as a required dependency, but
this is in fact only needed on win32. This was fixed upstream [1]. Since
we don't actually check the runtime dependencies from pyproject.toml, we
don't need to do anything in Buildroot.

[1] pydantic/pydantic#10331

Signed-off-by: James Hilliard <[email protected]>
[Arnout: remove tzdata runtime dependency]
Signed-off-by: Arnout Vandecappelle <[email protected]>
hswong3i pushed a commit to alvistack/pydantic-pydantic that referenced this pull request Sep 18, 2024
    git clean -xdf
    tar zcvf ../python-pydantic_2.9.2.orig.tar.gz --exclude=.git .
    debuild -uc -us
    cp python-pydantic.spec ../python-pydantic_2.9.2-1.spec
    cp ../python*-pydantic*2.9.2*.{gz,xz,spec,dsc} /osc/home\:alvistack/pydantic-pydantic-2.9.2/
    rm -rf ../python*-pydantic*2.9.2*.*

See pydantic#10331

Signed-off-by: Wong Hoi Sing Edison <[email protected]>
hswong3i pushed a commit to alvistack/pydantic-pydantic that referenced this pull request Nov 14, 2024
    git clean -xdf
    tar zcvf ../python-pydantic_2.9.2.orig.tar.gz --exclude=.git .
    debuild -uc -us
    cp python-pydantic.spec ../python-pydantic_2.9.2-1.spec
    cp ../python*-pydantic*2.9.2*.{gz,xz,spec,dsc} /osc/home\:alvistack/pydantic-pydantic-2.9.2/
    rm -rf ../python*-pydantic*2.9.2*.*

See pydantic#10331

Signed-off-by: Wong Hoi Sing Edison <[email protected]>
sfoster1 pushed a commit to Opentrons/buildroot that referenced this pull request Dec 6, 2024
pyproject.toml declared the tzdata package as a required dependency, but
this is in fact only needed on win32. This was fixed upstream [1]. Since
we don't actually check the runtime dependencies from pyproject.toml, we
don't need to do anything in Buildroot.

[1] pydantic/pydantic#10331

Signed-off-by: James Hilliard <[email protected]>
[Arnout: remove tzdata runtime dependency]
Signed-off-by: Arnout Vandecappelle <[email protected]>
sfoster1 pushed a commit to Opentrons/buildroot that referenced this pull request Dec 9, 2024
pyproject.toml declared the tzdata package as a required dependency, but
this is in fact only needed on win32. This was fixed upstream [1]. Since
we don't actually check the runtime dependencies from pyproject.toml, we
don't need to do anything in Buildroot.

[1] pydantic/pydantic#10331

Signed-off-by: James Hilliard <[email protected]>
[Arnout: remove tzdata runtime dependency]
Signed-off-by: Arnout Vandecappelle <[email protected]>
sfoster1 pushed a commit to Opentrons/buildroot that referenced this pull request Dec 18, 2024
pyproject.toml declared the tzdata package as a required dependency, but
this is in fact only needed on win32. This was fixed upstream [1]. Since
we don't actually check the runtime dependencies from pyproject.toml, we
don't need to do anything in Buildroot.

[1] pydantic/pydantic#10331

Signed-off-by: James Hilliard <[email protected]>
[Arnout: remove tzdata runtime dependency]
Signed-off-by: Arnout Vandecappelle <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
relnotes-fix Used for bugfixes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

tzdata install dependency should be optional, conditional or removed
2 participants