Skip to content

Commit

Permalink
Set version to correctly reflect upstream.
Browse files Browse the repository at this point in the history
  • Loading branch information
Viktor Dick committed Jan 15, 2020
1 parent aec3f43 commit 6011872
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
Changelog
=========

2.4.7.dev1+perfact.1
-------------------
Collection of PerFact patches to the Product, including reorganization of how
pooling works.


2.4.7
-------------------

Expand Down
2 changes: 1 addition & 1 deletion Products/ZPsycopgDA/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# their work without bothering about the module dependencies.

__doc__ = "ZPsycopg Database Adapter Registration."
__version__ = '2.4.7.dev1'
__version__ = '2.4.7.dev1+perfact.1'

# Python2 backward compatibility
try:
Expand Down
14 changes: 13 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
from setuptools import setup

# Get the version number from the package
f = open('Products/ZPsycopgDA/__init__.py')
try:
for line in f:
if line.startswith('__version__'):
version = line.split()[-1].replace("'", "")
break
else:
raise ValueError('__version__ not found')
finally:
f.close()

long_description = (
open('README.rst').read()
+ '\n' +
Expand All @@ -14,7 +26,7 @@

setup(
name='Products.ZPsycopgDA',
version='3.0',
version=version,
description="Zope bindings for psycopg2.",
long_description=long_description,
# Get more strings from
Expand Down

0 comments on commit 6011872

Please sign in to comment.