madpilot / pyptv3

Access the Public Transport Victoria API with Python 3
MIT License
7 stars 0 forks source link

import of undeclared dependency "aiohttp" is attempted even if AsyncClient is not required #2

Open Lx opened 5 years ago

Lx commented 5 years ago

Background

Problem

Expectation

Workaround until issue is resolved

Environment

$ pip -V
pip 19.0.3 from /.../pip-19.0.3-py3.7.egg/pip (python 3.7)
$ pip show pyptv3 | grep Version:
Version: 0.0.4
Lx commented 5 years ago

On further reflection, the AsyncClient might be better off in a separate PyPI package (perhaps pyptv3-asyncio?) which can depend on pyptv3 and any asyncio-related dependencies.

Then projects depending on AsyncClient could specify pyptv3 and pyptv3-asyncio as dependencies and have correct access to everything without ImportErrors.