Conditional dependency to indicate unsupported Python versions
Project description
unsupported-python
This package can be used as a conditional dependency to indicate lack of support for particular versions of Python.
[project]
name = "my-test-package"
version = "1.0.0"
dependencies = [
# package does not work on Python 3.11 and beyond
"unsupported-python; python_version>='3.11'",
]
Installing a package which depends on unsupported-python
will fail with an
error message, without breaking the installation further by going back to
earlier versions of said package.
To allow installation of the unsupported-python
dependency, and hence any
package that conditionally depends on it, set the ALLOW_UNSUPPORTED_PYTHON
environment variable to any value.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file unsupported-python-1.0.0.tar.gz
.
File metadata
- Download URL: unsupported-python-1.0.0.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64e4eb0c4d99b9ad17247dc2c34e0a9b8be2b21dc1c28079ab625457a74a5abe |
|
MD5 | 289a125002cf5d7957d7f4689840207b |
|
BLAKE2b-256 | e1efe6f8232d0f7f3c402b05b186aacdfc632bca5ad33d114375cf9eefd749ef |