Good day. Forgive my novice language. I'm using pants 2.20.0.
I've got a peculiar python package that is installed in a pyenv virtualenv. It is the amazon-sqs-extended-client pypi package. By all appearances, based on the lib contents on the filesystem, it is a 'distro' of nothing, other than to include the actual working code. The working code resides on disk as 'sqs_extended_client'.
My challenge is that, in a regular context, I'm able to successfully import 'sqs_extended_client'.
But in the Pants context, especially in tests, any tests referencing the project code which imports 'sqs_extended_client' results in a ModuleNotFoundError.
The requirements.txt file contains 'amazon-sqs-extended-client~=1.0.0' (without a named reference to 'sqs_extended_client' whatsoever.
I naively attempted to reference the location of the lib dir containing 'sqs_extended_client' in the BUILD python_sources 'sources'; discovering that absolute paths to the /home/user/.pyenv/versions/<project>/lib/python3.8/site-packages are not allowed.
Has anyone experienced a similar situation with other modules? Any suggestions on remedying this conundrum would be most appreciated. Thank you.
amazon-sqs-extended-client pyproject.toml: (From the download files:
https://pypi.org/project/amazon-sqs-extended-client/#files)
name = "amazon-sqs-extended-client"
version = "1.0.0"
description = "Python version of AWS SQS extended client"
authors = ["Amazon Web Service - SQS"]
license = "Apache-2.0"
readme = "README.md"
packages = [{include = "sqs_extended_client", from="src"}]
homepage = "
https://github.com/awslabs/amazon-sqs-python-extended-client-lib"
repository = "
https://github.com/awslabs/amazon-sqs-python-extended-client-lib"
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10"
]