Bug 265701 - [PATCH] devel/py-tzlocal: Update to 4.2
Summary: [PATCH] devel/py-tzlocal: Update to 4.2
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Wen Heping
URL:
Keywords:
Depends on:
Blocks: 265765 266102 266199
  Show dependency treegraph
 
Reported: 2022-08-08 02:05 UTC by Jesús Daniel Colmenares Oviedo
Modified: 2022-09-03 16:47 UTC (History)
5 users (show)

See Also:
bugzilla: maintainer-feedback? (rob.kruus)


Attachments
patch (1.17 KB, patch)
2022-08-08 02:05 UTC, Jesús Daniel Colmenares Oviedo
no flags Details | Diff
poudriere-portlint (90 bytes, text/plain)
2022-08-29 10:29 UTC, Andrej Ebert
no flags Details
poudriere-testport (18.95 KB, text/plain)
2022-08-29 10:30 UTC, Andrej Ebert
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jesús Daniel Colmenares Oviedo 2022-08-08 02:05:19 UTC
Created attachment 235762 [details]
patch

Update to latest version.
Comment 1 Andrej Ebert 2022-08-29 10:29:59 UTC
Created attachment 236203 [details]
poudriere-portlint
Comment 2 Andrej Ebert 2022-08-29 10:30:20 UTC
Created attachment 236204 [details]
poudriere-testport
Comment 3 commit-hook freebsd_committer freebsd_triage 2022-09-03 13:42:04 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=1d648e548584be2950518c36e2861b5b4aae2c69

commit 1d648e548584be2950518c36e2861b5b4aae2c69
Author:     Wen Heping <wen@FreeBSD.org>
AuthorDate: 2022-09-03 13:39:23 +0000
Commit:     Wen Heping <wen@FreeBSD.org>
CommitDate: 2022-09-03 13:39:23 +0000

    devel/py-tzlocal: Update to 4.2

    PR:             265701
    Reported by:    DtxdF@disroot.org
    Approved by:    maintainer(timeout, > 20 days)

 devel/py-tzlocal/Makefile | 2 +-
 devel/py-tzlocal/distinfo | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)
Comment 4 Jan Beich freebsd_committer freebsd_triage 2022-09-03 15:01:33 UTC
Did you forget to land one of the dependencies?

>>> import tzlocal
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.9/site-packages/tzlocal/__init__.py", line 10, in <module>
    from tzlocal.unix import get_localzone, get_localzone_name, reload_localzone
  File "/usr/local/lib/python3.9/site-packages/tzlocal/unix.py", line 6, in <module>
    import pytz_deprecation_shim as pds
ModuleNotFoundError: No module named 'pytz_deprecation_shim'
Comment 5 Jesús Daniel Colmenares Oviedo 2022-09-03 16:18:46 UTC
(In reply to Jan Beich from comment #4)

Hi Jan,

I just updated py-tzlocal. I couldn't have known that it would generate that error as I already used py-tzlocal when I installed py-textract, a port I'm working with that installs py-extract-msg, a dependency that in turn installs py-pytz-deprecation-shim.

Nevertheless, thanks for reporting it. Simply changing pytz to pytz-deprecation-shim would have no problem. I just tested it from poudriere-testport and it doesn't generate the error you mentioned. I will send a patch to the maintainer in a moment.
Comment 6 Jesús Daniel Colmenares Oviedo 2022-09-03 16:47:05 UTC
(In reply to Jan Beich from comment #4)

I have sent a patch.

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=266203