summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorDoug Harris <dharris@truthinitiative.org>2018-05-14 11:01:23 -0400
committerDoug Harris <dharris@truthinitiative.org>2018-05-14 11:25:33 -0400
commit4ebaff2a93d3914c940b99fd17894fb96d220cd4 (patch)
tree6dd980dd549dad095777e6d876f8e246bf97cd68 /setup.py
parent4cc1b9e938a42bfd97c46f4ff193f48e770f6160 (diff)
downloadclick-4ebaff2a93d3914c940b99fd17894fb96d220cd4.tar.gz
Updating README to match flask style.
Also added `long_description` to setup.py for PyPI happiness.
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/setup.py b/setup.py
index bc49da0..f762463 100644
--- a/setup.py
+++ b/setup.py
@@ -1,15 +1,18 @@
+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+import io
import re
-import ast
from setuptools import setup
_version_re = re.compile(r'__version__\s+=\s+(.*)')
-with open('click/__init__.py', 'rb') as f:
- version = str(ast.literal_eval(_version_re.search(
- f.read().decode('utf-8')).group(1)))
+with io.open('README.rst', 'rt', encoding='utf8') as f:
+ readme = f.read()
+with io.open('click/__init__.py', 'rt', encoding='utf8') as f:
+ version = re.search(r'__version__ = \'(.*?)\'', f.read()).group(1)
setup(
name='click',
@@ -19,6 +22,7 @@ setup(
author_email='armin.ronacher@active-4.com',
maintainer='Pallets team',
maintainer_email='contact@palletsprojects.com',
+ long_description=readme,
packages=['click'],
description='A simple wrapper around optparse for '
'powerful command line utilities.',