From: Daniel Greenfeld Date: Sun, 18 May 2014 00:59:00 +0000 (-0700) Subject: Fix my dumb habit of importing the package into setup.py X-Git-Tag: 0.1.3^0 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2d7c6b54c564c0c3835066e1ecafce9d8f2ed632;p=cached-property.git Fix my dumb habit of importing the package into setup.py --- 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',