Bug 266102

Summary: devel/py-apscheduler: remove tzlocal patch, compatibility with devel/py-tzlocal 4.2
Product: Ports & Packages Reporter: Andrej Ebert <andrej>
Component: Individual Port(s)Assignee: Jan Beich <jbeich>
Status: Closed FIXED    
Severity: Affects Many People CC: jbeich, rob.kruus
Priority: --- Keywords: patch
Version: Latest   
Hardware: Any   
OS: Any   
Bug Depends on: 265701    
Bug Blocks: 266199    
Attachments:
Description Flags
git diff
none
tests with tzlocal4.2
none
portlint
none
poudriere testport none

Description Andrej Ebert 2022-08-29 17:24:59 UTC
Created attachment 236222 [details]
git diff

Remove py-tzlocal pin to tzlocal>=1.2<3
The dependency was pinned to tzlocal>=1.2<3 in the makefile and to tzlocal >= 1.2, != 3.*' in the setup.py per patch. 
But upstream actually requires: 'tzlocal >= 2.0, != 3.*'. 
There is already an update of tzlocal to 4.2 in the pipeline: bug #265701
Other consumers of py-tzlocal seem to be fine with tzlocal 4.2.
Comment 1 Andrej Ebert 2022-08-29 17:25:28 UTC
Created attachment 236223 [details]
tests with tzlocal4.2
Comment 2 Andrej Ebert 2022-08-29 17:25:41 UTC
Created attachment 236224 [details]
portlint
Comment 3 Andrej Ebert 2022-08-29 17:25:56 UTC
Created attachment 236225 [details]
poudriere testport
Comment 4 commit-hook freebsd_committer freebsd_triage 2022-09-03 14:54:21 UTC
A commit in branch main references this bug:

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

commit ede29bbe66f42ef35ee0a4bc6614ae1a2c0b560a
Author:     Andrej Ebert <andrej@ebert.su>
AuthorDate: 2022-08-29 17:24:59 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2022-09-03 14:53:36 +0000

    devel/py-apscheduler: unbreak after 1d648e548584

    ===>   py39-apscheduler-3.9.1 depends on package: py39-tzlocal>=1.2<3 - not found
    ===>   Installing existing package /packages/All/py39-tzlocal-4.2.pkg
    Installing py39-tzlocal-4.2...
    Extracting py39-tzlocal-4.2: .......... done
    ===>   py39-apscheduler-3.9.1 depends on package: py39-tzlocal>=1.2<3 - not found
    *** Error code 1

    PR:             266102

 devel/py-apscheduler/Makefile                       |  2 +-
 devel/py-apscheduler/files/patch-tzlocal-1.2 (gone) | 14 --------------
 2 files changed, 1 insertion(+), 15 deletions(-)
Comment 5 Jan Beich freebsd_committer freebsd_triage 2022-09-03 14:55:34 UTC
Thanks. Landed.