Skip to content

Commit

Permalink
setup.py: use 'version' so zest.releaser can update it.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
mauritsvanrees committed Apr 29, 2015
1 parent b891c08 commit 3ae657a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 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=[
Expand Down

0 comments on commit 3ae657a

Please sign in to comment.