From 2d7c6b54c564c0c3835066e1ecafce9d8f2ed632 Mon Sep 17 00:00:00 2001 From: Daniel Greenfeld Date: Sat, 17 May 2014 17:59:00 -0700 Subject: [PATCH] Fix my dumb habit of importing the package into setup.py --- cached_property.py | 2 +- setup.py | 10 +++------- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/cached_property.py b/cached_property.py index ec9bb2f..5a86c0c 100644 --- a/cached_property.py +++ b/cached_property.py @@ -2,7 +2,7 @@ __author__ = 'Daniel Greenfeld' __email__ = 'pydanny@gmail.com' -__version__ = '0.1.2' +__version__ = '0.1.3' __license__ = 'BSD' diff --git a/setup.py b/setup.py index 071a3f6..0611005 100755 --- a/setup.py +++ b/setup.py @@ -4,30 +4,26 @@ import os import sys - try: from setuptools import setup except ImportError: from distutils.core import setup +__version__ = '0.1.3' readme = open('README.rst').read() history = open('HISTORY.rst').read().replace('.. :changelog:', '') - -import cached_property - if sys.argv[-1] == 'publish': os.system('python setup.py sdist bdist_wheel upload') print("You probably want to also tag the version now:") - print(" git tag -a %s -m 'version %s'" % (cached_property.__version__, - cached_property.__version__)) + print(" git tag -a %s -m 'version %s'" % (__version__, __version__)) print(" git push --tags") sys.exit() setup( name='cached-property', - version=cached_property.__version__, + version=__version__, description='A cached-property for decorating methods in classes.', long_description=readme + '\n\n' + history, author='Daniel Greenfeld', -- 2.30.2