Commit Graph

4 Commits

Author SHA1 Message Date
Mingli Yu
191add187c python3-astor: switch to python3
As python2 reached end of life(EOL), so convert rtrip.py to python3.

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Acked-by: Trevor Gamblin <trevor.gamblin@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-01-04 14:48:29 -08:00
Wang Mingyu
106c94d086 python3-astor: 0.8 -> 0.8.1
f820f3ff7ad8818475b6e107e63aa9a54252d2a9.patch
Removed since it is included in 0.8.1.

Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-01-13 18:34:32 -08:00
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
Khem Raj
9aae0c91fc python3-astor: Fix build with setuptools>=41.4
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-10-25 10:29:50 -07:00