Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

unsupported-python-1.0.0.tar.gz (2.4 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page