https://github.com/python-poetry/poetry/issues/1122 is probably the issue mentioned above.
Also, from requirements.txt:
# Backward compatibility
|
enum34; python_version < '3.5'
|
That line has been there since 2017
All the requirements.txt are popped in the call to setup(), for both the setup_requires and install_requires keys. So all I can see that could be an issue is each of these have a newline at the end, and there are comments as well (though, they are supposed to be handled without problems by pip). We can easily strip them out, and see. But I see the correct stuff coming back from pip (commented in that ticket on poetry).
That's weird, it is and has always been a conditional dependency:
https://github.com/couchbase/couchbase-python-client/blob/2.5.9/setup.py#L194
https://github.com/couchbase/couchbase-python-client/commit/bbdd7d4e63da06c5447ec77e960536299ec44f5c
Will read through the 'poetry' issue here in detail soon.
For my own and others' reference, the maintainer mentions it here: https://github.com/sdispater/poetry/issues/1122#issuecomment-551755349
Not sure why the dependency isn't listed conditionally in the JSON file that PyPi produces.