Kaydet (Commit) 7560d4a9 authored tarafından Berker Peksag's avatar Berker Peksag

Fix Python 3 installation.

In Python 3, the long_description field should not be a bytes object.

I also cleanup the Python version classfiers.

Note: This issue can be reproduced by installing astor manually(e.g.
python3 setup.py install) or adding astor to install_requires in your
project(e.g. https://github.com/hylang/hy/pull/328/files)
üst c2bf13a2
...@@ -3,14 +3,13 @@ ...@@ -3,14 +3,13 @@
from distutils.core import setup from distutils.core import setup
def readdoc(): def readdoc():
f = open('README.rst', 'rb') with open('README.rst') as fobj:
data = f.read() data = fobj.read()
f.close()
return data return data
setup( setup(
name='astor', name='astor',
version='0.2.1', version='0.2.2',
description='Read/rewrite/write Python ASTs', description='Read/rewrite/write Python ASTs',
long_description=readdoc(), long_description=readdoc(),
author='Patrick Maupin', author='Patrick Maupin',
...@@ -25,9 +24,13 @@ setup( ...@@ -25,9 +24,13 @@ setup(
'Intended Audience :: Developers', 'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License', 'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent', 'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3',
'Programming Language :: Python', 'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Topic :: Software Development :: Code Generators', 'Topic :: Software Development :: Code Generators',
'Topic :: Software Development :: Compilers', 'Topic :: Software Development :: Compilers',
], ],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment