• Bug#1044079: augur 24 still ftbfs against pandas 2.1.4

    From =?UTF-8?Q?=C3=89tienne?= Mollier@21:1/5 to All on Wed Feb 7 19:40:01 2024
    Control: reopen -1

    I must have mistaken something about pandas versions when
    uploading augur 24.0.0, because the error is still there and is
    now causing ftbfs again with at least pandas 2.1.4. This is
    still the same error in the same test:

    self = <test_parse.TestParse object at 0x7fc3d83abe50>
    capsys = <_pytest.capture.CaptureFixture object at 0x7fc3d81d59d0>

    def test_fix_dates(self, capsys):
    full_date = "4-5-2020"
    assert parse.fix_dates(full_date) == "2020-05-04"

    tests/test_parse.py:14:
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

    d = '4-5-2020', dayfirst = True

    def fix_dates(d, dayfirst=True):
    '''
    attempt to parse a date string using pandas date parser. If ambiguous,
    the argument 'dayfirst' determines whether month or day is assumed to be
    the first field. Incomplete dates will be padded with XX.
    On failure to parse the date, the function will return the input.
    '''
    try:
    from pandas.core.tools.datetimes import parsing
    results = parsing.parse_time_string(d, dayfirst=dayfirst)
    E AttributeError: module 'pandas._libs.tslibs.parsing' has no attribute 'parse_time_string'

    Too bad things looked promising,
    --
    .''`. Étienne Mollier <emollier@debian.org>
    : :' : pgp: 8f91 b227 c7d6 f2b1 948c 8236 793c f67e 8f0d 11da
    `. `' sent from /dev/pts/3, please excuse my verbosity
    `-

    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCgAdFiEEj5GyJ8fW8rGUjII2eTz2fo8NEdoFAmXDy4UACgkQeTz2fo8N EdreHRAAuKVypeHHc4lu1l7s9kdnkQJJGg3HwUz1NlOOf+QyCDOrjK3JZhtdECPU Xs6NFkVYcpKOmlPJOn2AH+tBwihuM1mdeBhU3ddXaOuBde2QH2lceIiWBlSIt3Vd xWoyvb4vMoyqBUxzODNqYf5BEe+kdE7gdzoHFqlpeyRzWZPcEidgaeN5qADKDVIb MvhBtYcQFYpxnaldnK4j6f5W2Ifd+DqSlKJj4AQgZteVBZo08zUHBt/SrBf4U8dp shm8LaaQjdP2e7tpl/IN6P+y5HjrT848IOVeC/9DdQjfkRS/w2fjd46QqdwJ31X8 +uatwi8e3H5onEI4RVj3rD81t81L0SQjwTL3TUD1w8GMwfoKJmC4UYaGd2eB5zCI 7R09zdd1SUNclDPBg6JBAVEY22KvkXDkwTOJkgAvlOBUSFEbUlT7EhGquSdKw26o 3Qu/OVXDw/VhQCrIK+FQJCzYEbE9phHVf66V0DwJspytp7546zaQ9ZY/oCB1RnB+ wI+dKf2A+YqADjiW/2KoHKmBW+UcaiJcYfoKk0t0574bpiv2ObYm47s7hbZMx0xK 4NlXjL5I+7aTFqUX5Q9Yb1URY5CwZy56Bjr1s35o9faBeLqzi6bLOzRikNolcIf2 pRrrlD3U+knFC1hcu8ltMyJT0E5fwWkNF5B5x2QByTmQSsUCLck=
    =ouH1
    -----END PGP SIG