Summary: | [PATCH] devel/py-tzlocal: Update to 4.2 | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | Jesús Daniel Colmenares Oviedo <DtxdF> | ||||||||
Component: | Individual Port(s) | Assignee: | Wen Heping <wen> | ||||||||
Status: | Closed FIXED | ||||||||||
Severity: | Affects Only Me | CC: | andrej, grahamperrin, jbeich, rob.kruus, wen | ||||||||
Priority: | --- | Flags: | bugzilla:
maintainer-feedback?
(rob.kruus) |
||||||||
Version: | Latest | ||||||||||
Hardware: | Any | ||||||||||
OS: | Any | ||||||||||
Bug Depends on: | |||||||||||
Bug Blocks: | 265765, 266102, 266199 | ||||||||||
Attachments: |
|
Created attachment 236203 [details]
poudriere-portlint
Created attachment 236204 [details]
poudriere-testport
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(-) 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'
(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. (In reply to Jan Beich from comment #4) I have sent a patch. https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=266203 |
Created attachment 235762 [details] patch Update to latest version.