-
Notifications
You must be signed in to change notification settings - Fork 142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installation of only one component of the package #101
Comments
I noticed a similar issue when putting together an offline install of this package. I've also noticed the version of I've raised Pull Request #104 to
I can understand if the maintainers don't want to make |
In our case is exactly the opposite, but still the same principle. We have |
Maxmind is retiring legacy databases on May 31 2022, forcing users to upgrade to GeoIP2 format. This means that all projects which are using only the offline database are now forced to install the unnecessary aiohttp client and its dependencies. Is there any plan to make this dependency optional? |
There is no immediate plans on doing this. As mentioned above, it may make sense to break this package into several packages at some point, but it is unlikely to happen soon. If you are particularly concerned about unnecessary dependencies, I would suggest using |
thanks for the db reader tip, this is exactly what I was looking for! |
Closes maxmind#104 (supersedes it) Fixes maxmind#101
Closes maxmind#104 (supersedes it) Fixes maxmind#101
I use only the database functionality of this package, and do all web management myself using aiohttp. It would be great if this package didn't pull
requests
into my dependency graph as my application is entirely async, (and also didn't force my aiohttp version to be less than 4 in case that ever gets updated).I think you can use the
extras_require
argument tosetup()
(with setuptools) to add optional dependencies. Maybe something like:For reference: https://setuptools.readthedocs.io/en/latest/userguide/dependency_management.html#id7
And example: https://github.com/palantir/python-language-server/blob/0fa74bae6fbb331498dbc39b6257d74357edea2f/setup.py#L51
Additionally, I see that
urllib3
is listed in the requirements, but I don't see it being imported anywhere. Maybe that can be removed?The text was updated successfully, but these errors were encountered: