Skip to content

Remove upper limit of dependencies version#25

Open
laggykiller wants to merge 1 commit intosignalstickers:masterfrom
laggykiller:remove-lib-upper-version
Open

Remove upper limit of dependencies version#25
laggykiller wants to merge 1 commit intosignalstickers:masterfrom
laggykiller:remove-lib-upper-version

Conversation

@laggykiller
Copy link
Contributor

@laggykiller laggykiller commented Mar 21, 2024

For a library, it is bad practice to to set upper limit of dependencies' version.

Everytime a new python version is released and library releases new version, things break and we have to wait for signalstickers-client to remove the version restriction (#21)

You may argue that the dependency may release a new major version that break signalstickers-client, but this could still be temporarily mitigated by the user by specifying the dependency version themselves in requirements.txt.

However, if signalstickers-client add upper bound to library version and a dependency release a new version that is actually compatible, the only way for the user to install signalstickers-client with newer version of dependency is git clone this repo, change dependency version requirement in setup.py themselves and pip install. Also note that if the user of this library do this, they cannot publish their library to PyPI as the dependency of a library on PyPI cannot be a git repo (Gets rejected during wheel upload).

This article discuss about this problem: https://iscinumpy.dev/post/bound-version-constraints/

This PR removes upper limit on dependencies' version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant