Closed andreoliwa closed 3 years ago
The current version should be working. It's OK to use setup.py or setup.cfg. The current master was not released for some reason and I just bumped the version and uploaded it to PyPI.
Can you please check if it works as expected now? In case it's not working I will review this PR again.
It's working now, thanks. 👍🏻
I'm closing this, it's not needed anymore.
Problem
The
typing
module is being installed on Python 3.8 despite the specifications insetup.py
:https://github.com/Doist/todoist-python/blob/605443c67a8e2f105071e0da001c9f6f2a89ef19/setup.py#L23-L26
It happens in this specific situation:
todoist-python
together with a local dependency: https://github.com/andreoliwa/dontforget/commit/885c7f52397dfa45b54f5b1adc33613a4509ce7fPoetry doesn't read constraints from
setup.py
, which is not executed for security reasons. See https://github.com/python-poetry/poetry/issues/1287#issuecomment-519655153(see "Details" of the problem below)
Solution
Using the recommended PEP 508 environment markers for
install_requires
insetup.cfg
, instead ofsetup.py
.Then Poetry can resolve dependencies.
Details
poetry update
currently raisesAttributeError: type object 'Callable' has no attribute '_abc_registry'
, because thetyping
module is still being installed:The error is fixed by this pull request. Now the
typing
module is removed, and my local Python lib is installed: