meta-openembedded/meta-python/recipes-devtools/python/python3-astor
Hongxu Jia 13042b49ea python3-astor: fix VERSION file not found
...
import astor
  File "/usr/lib/python3.7/site-packages/astor/__init__.py", line 24, in <module>
    with open(os.path.join(ROOT, 'VERSION')) as version_file:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3.7/site-packages/astor/VERSION'
...

Place the value in a simple VERSION text file and have both setup.py and the
project code read it. With this approach you must make sure that the VERSION
file is included in all your source and binary distributions (e.g. add include
VERSION to your MANIFEST.in). [1]

[1] https://packaging.python.org/guides/single-sourcing-package-version/

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-01-02 09:48:20 -08:00
..
f820f3ff7ad8818475b6e107e63aa9a54252d2a9.patch python3-astor: fix VERSION file not found 2020-01-02 09:48:20 -08:00