Coder Social home page Coder Social logo

Make docker dependency optional about pyvespa HOT 6 CLOSED

andreer avatar andreer commented on July 22, 2024
Make docker dependency optional

from pyvespa.

Comments (6)

thomasht86 avatar thomasht86 commented on July 22, 2024

Is it mostly to make the package lighter, or have you encountered any issues with regards to the docker dependency?
If only the first, considering the small size of the docker-package: https://pypi.org/project/docker/7.0.0/#files, i think it would not justify much effort.
If the latter, it would be easy to make a lightweight option (pip install pyvespa[no-docker]).
Then we wouldn't need to change anything in CI etc.

from pyvespa.

tokle avatar tokle commented on July 22, 2024

Suggestion: pip install pyvespa[no-docker]

from pyvespa.

thomasht86 avatar thomasht86 commented on July 22, 2024

Upon further investigation, I found that the suggestion contradicts the related PEP, and thus is not supported in pyproject.toml by default.

For projects which are packages, extras are a common solution for defining development dependencies, but even under these circumstances they have downsides:

  • Because an extra defines optional additional dependencies, it is not possible to install an extra without installing the current package and its dependencies.
  • Because they are user-installable, extras are part of the public interface for packages. Because extras are published, package developers often are concerned about ensuring that their development extras are not confused with user-facing extras.

I could still make it happen, by adding back a setup.py, but it doesn't feel like a good practice.

Given the small size of the docker dependency (259kB), is it worth it? @andreer @jobergum

from pyvespa.

jobergum avatar jobergum commented on July 22, 2024

no

from pyvespa.

thomasht86 avatar thomasht86 commented on July 22, 2024

Checked whether the docker-package introduced many other dependencies as well, but it does not.

pip show docker

Name: docker
Version: 7.0.0
Summary: A Python library for the Docker Engine API.
Home-page: https://github.com/docker/docker-py
Author: 
Author-email: 
License: Apache License 2.0
Location: /Users/thomas/.pyenv/versions/3.11.8/envs/pyvespa-build/lib/python3.11/site-packages
Requires: packaging, requests, urllib3
Required-by: pyvespa

Ok to close the issue?

from pyvespa.

jobergum avatar jobergum commented on July 22, 2024

👍

from pyvespa.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.