Skip to content
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

Standardize dependency management approach #212

Open
vagenas opened this issue Nov 14, 2022 · 0 comments
Open

Standardize dependency management approach #212

vagenas opened this issue Nov 14, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@vagenas
Copy link
Collaborator

vagenas commented Nov 14, 2022

Standard dependency management practice

Standard Python dependency management practice ([1][2][3]) would look as follows:

  • setup.py (or setup.cfg / pyproject.toml) for capturing only direct dependencies, with loosest applicable constraints
    • this ensures interoperability, i.e. package can operate smoothly alongside others (which have their own dependencies and lifecycle), while mitigating risk of dependency hell
  • requirements*.txt for exhaustively capturing both direct and transitive dependencies, pinned to specific versions
    • this ensures reproducibility, i.e. we can recreate the same environment for our package

Current setup

The approach currently followed by fuse seems to be a bit of a "mix-up":

  • setup.py does not directly define any dependencies, but rather sources various requirements*.txt files
  • requirements*.txt files contain various dependencies, but with mixed/unclear semantics:
    • scope: I understand they do not contain (all) transitive dependencies => can lead to reproducibility issues
    • constraints: mostly unconstrained but some times constrained or even pinned to specific versions => can lead to interoperability issues / "dependency hell"

Proposal

In order to improve interoperability and reproducibility, while also providing clearer semantics for library usage and maintenance, it would be best to align to the dependency management scheme outlined above.


[1] https://packaging.python.org/en/latest/discussions/install-requires-vs-requirements/#install-requires-vs-requirements-files
[2] https://pip.pypa.io/en/stable/topics/dependency-resolution/#possible-solutions
[3] https://pip.pypa.io/en/stable/topics/repeatable-installs/

@vagenas vagenas added the enhancement New feature or request label Nov 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant