Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix UnicodeDecodeError in setup.py. #171

Merged
merged 4 commits into from Nov 7, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 11 additions & 1 deletion setup.py
@@ -1,9 +1,16 @@
from setuptools import setup


def read_file(file):
with open(file, 'rb') as fh:
data = fh.read()

return data.decode('utf-8')

setup(name='pyshp',
version='2.0.0',
description='Pure Python read/write support for ESRI Shapefile format',
long_description=open('README.md').read(),
long_description=read_file('README.md'),
author='Joel Lawhead',
author_email='jlawhead@geospatialpython.com',
url='https://github.com/GeospatialPython/pyshp',
Expand All @@ -12,7 +19,10 @@
license='MIT',
zip_safe=False,
keywords='gis geospatial geographic shapefile shapefiles',
python_requires='>= 2.7',
classifiers=['Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Topic :: Scientific/Engineering :: GIS',
'Topic :: Software Development :: Libraries',
sebastic marked this conversation as resolved.
Show resolved Hide resolved
'Topic :: Software Development :: Libraries :: Python Modules'])