From 3ae657aeae32f177088a3959dc327615da8e04a3 Mon Sep 17 00:00:00 2001 From: Maurits van Rees Date: Wed, 29 Apr 2015 11:46:08 +0200 Subject: [PATCH] setup.py: use 'version' so zest.releaser can update it. zest.releaser cannot update the '__version__' with underscores. We could keep this variable, but there is no way to actually access this variable. If we want underscores and want to access this, it should be in zope/globalrequest/__init__.py, something like this: import pkg_resources __version__ = pkg_resources.get_distribution("zope.globalrequest").version See http://zestreleaser.readthedocs.org/en/latest/versions.html --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index de560fa..cce5b9a 100644 --- a/setup.py +++ b/setup.py @@ -1,14 +1,14 @@ from setuptools import setup, find_packages from os.path import join -__version__ = '1.1.dev0' +version = '1.1.dev0' readme = open(join('src', 'zope', 'globalrequest', 'README.rst')).read() changes = open('CHANGES.rst').read() setup( name='zope.globalrequest', - version=__version__, + version=version, description='Global way of retrieving the currently active request.', long_description=readme[readme.find('\n\n'):] + '\n' + changes, classifiers=[