Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 07 Sep 2022 12:14:00 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 266260] devel/py-pytz-deprecation-shim: incomplete dependencies break egginfo
Message-ID:  <bug-266260-7788-2VDItfJwL5@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-266260-7788@https.bugs.freebsd.org/bugzilla/>
References:  <bug-266260-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D266260

Jan Beich <jbeich@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
              Flags|maintainer-feedback?(jbeich |maintainer-feedback+,
                   |@FreeBSD.org)               |maintainer-feedback?(sunpoe
                   |                            |t@FreeBSD.org)
            Summary|www/flexget 3.3.25 fails to |devel/py-pytz-deprecation-s
                   |run: The 'tzdata'           |him: incomplete
                   |distribution was not found  |dependencies break egginfo
                 CC|                            |sunpoet@FreeBSD.org
           Assignee|ports-bugs@FreeBSD.org      |sunpoet@FreeBSD.org

--- Comment #2 from Jan Beich <jbeich@FreeBSD.org> ---
(In reply to p5B2EA84B3 from comment #0)
> pkg_resources.DistributionNotFound: The 'tzdata' distribution was not fou=
nd and is required by pytz-deprecation-shim

Suggests the dependency itself need to be fixed.

  $ pkg install flexget
  $ find /usr/local -name requires.txt |
    xargs fgrep -l tzdata | xargs pkg which -qo | sort -u
  devel/py-pytz-deprecation-shim
  devel/py-tzlocal

devel/py-pytz-deprecation-shim has setup.cfg with the following:

  install_requires =3D=20
          backports.zoneinfo;python_version>=3D"3.6" and python_version<"3.=
9"
          python-dateutil;python_version<"3.6"
          tzdata;python_version>=3D"3.6"

devel/py-tzlocal has setup.cfg with the following:

  install_requires =3D=20
          pytz_deprecation_shim
          backports.zoneinfo; python_version < "3.9"
          tzdata; platform_system =3D=3D "Windows"

Broken egginfo doesn't affect "import pytz_deprecation_shim", so reproducing
requires devel/py-setuptools e.g.,

  $ pkg install py39-pytz-deprecation-shim
  $ python3.9
  >>> import pkg_resources
  >>> pkg_resources.require('pytz_deprecation_shim')
  Traceback (most recent call last):
    File "<stdin>", line 1, in <module>
    File "/usr/local/lib/python3.9/site-packages/pkg_resources/__init__.py",
line 909, in require
      needed =3D self.resolve(parse_requirements(requirements))
    File "/usr/local/lib/python3.9/site-packages/pkg_resources/__init__.py",
line 795, in resolve
      raise DistributionNotFound(req, requirers)
  pkg_resources.DistributionNotFound: The 'tzdata' distribution was not fou=
nd
and is required by pytz-deprecation-shim

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-266260-7788-2VDItfJwL5>