[Bug 266260] devel/py-pytz-deprecation-shim: incomplete dependencies break egginfo
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 07 Sep 2022 12:14:00 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=266260
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 found 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 =
backports.zoneinfo;python_version>="3.6" and python_version<"3.9"
python-dateutil;python_version<"3.6"
tzdata;python_version>="3.6"
devel/py-tzlocal has setup.cfg with the following:
install_requires =
pytz_deprecation_shim
backports.zoneinfo; python_version < "3.9"
tzdata; platform_system == "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 = 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 found
and is required by pytz-deprecation-shim
--
You are receiving this mail because:
You are on the CC list for the bug.