diff options
Diffstat (limited to 'meta-python/recipes-devtools/python')
-rw-r--r-- | meta-python/recipes-devtools/python/python3-astor/f820f3ff7ad8818475b6e107e63aa9a54252d2a9.patch | 103 | ||||
-rw-r--r-- | meta-python/recipes-devtools/python/python3-astor_0.8.1.bb (renamed from meta-python/recipes-devtools/python/python3-astor_0.8.bb) | 6 |
2 files changed, 2 insertions, 107 deletions
diff --git a/meta-python/recipes-devtools/python/python3-astor/f820f3ff7ad8818475b6e107e63aa9a54252d2a9.patch b/meta-python/recipes-devtools/python/python3-astor/f820f3ff7ad8818475b6e107e63aa9a54252d2a9.patch deleted file mode 100644 index 6d71be9927..0000000000 --- a/meta-python/recipes-devtools/python/python3-astor/f820f3ff7ad8818475b6e107e63aa9a54252d2a9.patch +++ /dev/null | |||
@@ -1,103 +0,0 @@ | |||
1 | From f820f3ff7ad8818475b6e107e63aa9a54252d2a9 Mon Sep 17 00:00:00 2001 | ||
2 | From: Jonathan Ringer <jonringer117@gmail.com> | ||
3 | Date: Thu, 17 Oct 2019 16:54:16 -0700 | ||
4 | Subject: [PATCH] Fix packaging for setuptools>=41.4 | ||
5 | |||
6 | Upstream-Status: Pending | ||
7 | |||
8 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | ||
9 | --- | ||
10 | MANIFEST.in | 1 + | ||
11 | astor/VERSION | 1 + | ||
12 | astor/__init__.py | 5 ++++- | ||
13 | setup.cfg | 3 ++- | ||
14 | setup.py | 16 +--------------- | ||
15 | 5 files changed, 9 insertions(+), 17 deletions(-) | ||
16 | create mode 100644 astor/VERSION | ||
17 | |||
18 | diff --git a/MANIFEST.in b/MANIFEST.in | ||
19 | index b12a6fe..81e72d5 100644 | ||
20 | --- a/MANIFEST.in | ||
21 | +++ b/MANIFEST.in | ||
22 | @@ -1,3 +1,4 @@ | ||
23 | include README.rst AUTHORS LICENSE CHANGES | ||
24 | include setuputils.py | ||
25 | +include astor/VERSION | ||
26 | recursive-include tests *.py | ||
27 | diff --git a/astor/VERSION b/astor/VERSION | ||
28 | new file mode 100644 | ||
29 | index 0000000..a3df0a6 | ||
30 | --- /dev/null | ||
31 | +++ b/astor/VERSION | ||
32 | @@ -0,0 +1 @@ | ||
33 | +0.8.0 | ||
34 | diff --git a/astor/__init__.py b/astor/__init__.py | ||
35 | index 3b02983..8dfcdb1 100644 | ||
36 | --- a/astor/__init__.py | ||
37 | +++ b/astor/__init__.py | ||
38 | @@ -9,6 +9,7 @@ Copyright 2013 (c) Berker Peksag | ||
39 | |||
40 | """ | ||
41 | |||
42 | +import os | ||
43 | import warnings | ||
44 | |||
45 | from .code_gen import SourceGenerator, to_source # NOQA | ||
46 | @@ -19,7 +20,9 @@ from .op_util import get_op_symbol, get_op_precedence # NOQA | ||
47 | from .op_util import symbol_data # NOQA | ||
48 | from .tree_walk import TreeWalk # NOQA | ||
49 | |||
50 | -__version__ = '0.8.0' | ||
51 | +ROOT = os.path.dirname(__file__) | ||
52 | +with open(os.path.join(ROOT, 'VERSION')) as version_file: | ||
53 | + __version__ = version_file.read().strip | ||
54 | |||
55 | parse_file = code_to_ast.parse_file | ||
56 | |||
57 | diff --git a/setup.cfg b/setup.cfg | ||
58 | index 1baf6fc..a43634f 100644 | ||
59 | --- a/setup.cfg | ||
60 | +++ b/setup.cfg | ||
61 | @@ -2,6 +2,7 @@ | ||
62 | name = astor | ||
63 | description = Read/rewrite/write Python ASTs | ||
64 | long_description = file:README.rst | ||
65 | +version = file: astor/VERSION | ||
66 | author = Patrick Maupin | ||
67 | author_email = pmaupin@gmail.com | ||
68 | platforms = Independent | ||
69 | @@ -40,7 +41,7 @@ test_suite = nose.collector | ||
70 | [options.packages.find] | ||
71 | exclude = tests | ||
72 | |||
73 | -[wheel] | ||
74 | +[bdist_wheel] | ||
75 | universal = 1 | ||
76 | |||
77 | [build-system] | ||
78 | diff --git a/setup.py b/setup.py | ||
79 | index 4a111b5..6068493 100644 | ||
80 | --- a/setup.py | ||
81 | +++ b/setup.py | ||
82 | @@ -1,17 +1,3 @@ | ||
83 | -import os | ||
84 | -import sys | ||
85 | - | ||
86 | from setuptools import setup | ||
87 | -from setuptools.config import read_configuration | ||
88 | - | ||
89 | -from setuputils import find_version | ||
90 | - | ||
91 | - | ||
92 | -def here(*paths): | ||
93 | - return os.path.join(os.path.dirname(__file__), *paths) | ||
94 | - | ||
95 | -config = read_configuration(here('setup.cfg')) | ||
96 | -config['metadata']['version'] = find_version(here('astor', '__init__.py')) | ||
97 | -config['options'].update(config['metadata']) | ||
98 | |||
99 | -setup(**config['options']) | ||
100 | +setup() | ||
101 | -- | ||
102 | 2.21.0 | ||
103 | |||
diff --git a/meta-python/recipes-devtools/python/python3-astor_0.8.bb b/meta-python/recipes-devtools/python/python3-astor_0.8.1.bb index 17cc540f00..125a0236ec 100644 --- a/meta-python/recipes-devtools/python/python3-astor_0.8.bb +++ b/meta-python/recipes-devtools/python/python3-astor_0.8.1.bb | |||
@@ -4,10 +4,8 @@ SECTION = "devel/python" | |||
4 | LICENSE = "BSD-3-Clause" | 4 | LICENSE = "BSD-3-Clause" |
5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=561205fdabc3ec52cae2d30815b8ade7" | 5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=561205fdabc3ec52cae2d30815b8ade7" |
6 | 6 | ||
7 | SRC_URI = "git://github.com/berkerpeksag/astor.git \ | 7 | SRC_URI = "git://github.com/berkerpeksag/astor.git " |
8 | file://f820f3ff7ad8818475b6e107e63aa9a54252d2a9.patch \ | 8 | SRCREV ?= "c7553c79f9222e20783fe9bd8a553f932e918072" |
9 | " | ||
10 | SRCREV ?= "3a7607e31f0c17e747ded5cfe0b582d99f7caecf" | ||
11 | 9 | ||
12 | inherit setuptools3 | 10 | inherit setuptools3 |
13 | 11 | ||