sphinx-contrib / autoprogram

Documenting CLI programs
https://pypi.org/project/sphinxcontrib-autoprogram/
Other
44 stars 23 forks source link

Require future-annotations on Python <3.7 #43

Closed elyezer closed 3 years ago

elyezer commented 3 years ago

In order to use from __future__ import annotations on Python 3.6 we need to install the future-annotations package.

Fix #42

kdelee commented 3 years ago

looks like it doesn't like that semi-colon

Run python setup.py sdist
error in sphinxcontrib-autoprogram setup command: 'install_requires' must be a string or list of strings containing valid project/version requirement specifiers; Parse error at "';python_'": Expected stringEnd
Error: Process completed with exit code 1.
elyezer commented 3 years ago

@kdelee yeah trying to see why. I've followed the format suggested here https://setuptools.readthedocs.io/en/latest/userguide/dependency_management.html?highlight=install_requires#platform-specific-dependencies

elyezer commented 3 years ago

Oh it seems I missed having some quotes around 3.7. Now this seems good to go 🎉

elyezer commented 3 years ago

OK this is somewhat tricky, having the future-annotations package is not enough to prevent the import error.

elyezer commented 3 years ago

Opened this expecting to be able to support Python 3.6+ but it will require more work than initially expected. Not sure if this is an intended thing so I will close this for now.