Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 696982
Collapse All | Expand All

(-)a/MANIFEST.in (+1 lines)
Lines 1-3 Link Here
1
include README.rst AUTHORS LICENSE CHANGES
1
include README.rst AUTHORS LICENSE CHANGES
2
include setuputils.py
2
include setuputils.py
3
include astor/VERSION
3
recursive-include tests *.py
4
recursive-include tests *.py
(-)a/astor/VERSION (+1 lines)
Line 0 Link Here
1
0.7.1
(-)a/astor/__init__.py (-1 / +4 lines)
Lines 9-14 Copyright 2013 (c) Berker Peksag Link Here
9
9
10
"""
10
"""
11
11
12
import os
12
import warnings
13
import warnings
13
14
14
from .code_gen import to_source  # NOQA
15
from .code_gen import to_source  # NOQA
Lines 19-25 from .op_util import get_op_symbol, get_op_precedence # NOQA Link Here
19
from .op_util import symbol_data  # NOQA
20
from .op_util import symbol_data  # NOQA
20
from .tree_walk import TreeWalk  # NOQA
21
from .tree_walk import TreeWalk  # NOQA
21
22
22
__version__ = '0.7.1'
23
ROOT = os.path.dirname(__file__)
24
with open(os.path.join(ROOT, 'VERSION')) as version_file:
25
    __version__ = version_file.read().strip()
23
26
24
parse_file = code_to_ast.parse_file
27
parse_file = code_to_ast.parse_file
25
28
(-)a/setup.cfg (-1 / +2 lines)
Lines 2-7 Link Here
2
name = astor
2
name = astor
3
description = Read/rewrite/write Python ASTs
3
description = Read/rewrite/write Python ASTs
4
long_description = file:README.rst
4
long_description = file:README.rst
5
version = file: astor/VERSION
5
author = Patrick Maupin
6
author = Patrick Maupin
6
email = pmaupin@gmail.com
7
email = pmaupin@gmail.com
7
platforms = Independent
8
platforms = Independent
Lines 39-45 python_requires = >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.* Link Here
39
[options.packages.find]
40
[options.packages.find]
40
exclude = tests
41
exclude = tests
41
42
42
[wheel]
43
[bdist_wheel]
43
universal = 1
44
universal = 1
44
45
45
[build-system]
46
[build-system]
(-)a/setup.py (-15 / +1 lines)
Lines 1-17 Link Here
1
import os
2
import sys
3
4
from setuptools import setup
1
from setuptools import setup
5
from setuptools.config import read_configuration
6
7
from setuputils import find_version
8
9
10
def here(*paths):
11
    return os.path.join(os.path.dirname(__file__), *paths)
12
13
config = read_configuration(here('setup.cfg'))
14
config['metadata']['version'] = find_version(here('astor', '__init__.py'))
15
config['options'].update(config['metadata'])
16
2
17
setup(**config['options'])
3
setup()

Return to bug 696982