From 469e696a95e9f316e3e2ad4e9a11f872874db02e Mon Sep 17 00:00:00 2001 From: "J. Tanner Netterville" Date: Wed, 23 Jul 2014 16:02:57 -0500 Subject: [PATCH] remove silly import from setup.py --- mdx_oembed/__init__.py | 2 +- setup.py | 11 ++++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/mdx_oembed/__init__.py b/mdx_oembed/__init__.py index 1cc6cba..97960a4 100644 --- a/mdx_oembed/__init__.py +++ b/mdx_oembed/__init__.py @@ -2,7 +2,7 @@ from mdx_oembed.extension import OEmbedExtension -VERSION = '0.1.3' +VERSION = '0.1.4' def makeExtension(configs=None): diff --git a/setup.py b/setup.py index 8514cd7..6c19af5 100644 --- a/setup.py +++ b/setup.py @@ -4,17 +4,18 @@ try: from setuptools import setup except ImportError: from distutils.core import setup -import mdx_oembed -with open('README.markdown', 'r') as readme: - LONG_DESCRIPTION = readme.read() -VERSION = mdx_oembed.VERSION +try: + with open('README.markdown', 'r') as readme: + LONG_DESCRIPTION = readme.read() +except Exception: + LONG_DESCRIPTION = None setup( name='python-markdown-oembed', - version=VERSION, + version='0.1.4', description="Markdown extension to allow media embedding using the oEmbed " "standard.", long_description=LONG_DESCRIPTION,