Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Installation of only one component of the package #101

Open
@Askaholic

Description

@Askaholic

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 pullrequests 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 theextras_require argument tosetup() (with setuptools) to add optional dependencies. Maybe something like:

extras_require={"all": ["requests>=2.24.0,<3.0.0","aiohttp>=3.6.2,<4.0.0"],"requests":"requests>=2.24.0,<3.0.0","aiohttp":"aiohttp>=3.6.2,<4.0.0",}

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 thaturllib3 is listed in the requirements, but I don't see it being imported anywhere. Maybe that can be removed?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp