From 91790763ca1347581e55d5140e29f63b6498ce00 Mon Sep 17 00:00:00 2001 From: Sergi Almacellas Abellana Date: Fri, 29 Jul 2016 09:50:07 +0200 Subject: [PATCH] Define version directly in setup.py Otherwise it's not possible to install the package as it tries to import the dependencies which are not installed yet. --- setup.py | 3 +-- sphinxcontrib/trydoc/__init__.py | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/setup.py b/setup.py index acff818..af8306d 100644 --- a/setup.py +++ b/setup.py @@ -1,12 +1,11 @@ # -*- coding: utf-8 -*- from setuptools import setup, find_packages -import sphinxcontrib.trydoc with open('README') as stream: long_desc = stream.read() -version = sphinxcontrib.trydoc.__version__ +version = "0.11" requires = [ 'path.py', 'simplejson', diff --git a/sphinxcontrib/trydoc/__init__.py b/sphinxcontrib/trydoc/__init__.py index af4754d..911f142 100644 --- a/sphinxcontrib/trydoc/__init__.py +++ b/sphinxcontrib/trydoc/__init__.py @@ -7,7 +7,6 @@ from __future__ import print_function :copyright: Copyright 2012-16 by NaN Projectes de Programari Lliure, S.L. :license: BSD, see LICENSE for details. """ -__version__ = "0.11" from path import path import os