From 0a55fe5aa34434e8dc49ddacd050343573c74cb4 Mon Sep 17 00:00:00 2001 From: David Pursehouse Date: Tue, 6 Aug 2013 14:09:36 +0900 Subject: Add a unit test to ensure dependency package version consistency Add a test to make sure that if depencency package versions are updated that they are updated to consistent versions in both requirements.txt and setup.py Change-Id: I855af3246bfb1013f8a462c99fb2d15ef6454998 --- setup.py | 36 ++++++++++++++++++++++-------------- 1 file changed, 22 insertions(+), 14 deletions(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index 33917d6..abfd7a3 100755 --- a/setup.py +++ b/setup.py @@ -28,17 +28,25 @@ from setuptools import setup from pygerrit import __version__ -setup( - name="pygerrit", - description="Client library for interacting with Gerrit", - version=__version__, - license="The MIT License", - author="David Pursehouse", - author_email="david.pursehouse@sonymobile.com", - maintainer="David Pursehouse", - maintainer_email="david.pursehouse@sonymobile.com", - url="https://github.com/sonyxperiadev/pygerrit", - packages=['pygerrit'], - keywords='gerrit, json', - install_requires=['paramiko==1.11.0', 'pycrypto==2.3'], -) +requires = ['paramiko==1.11.0', 'pycrypto==2.3'] + + +def _main(): + setup( + name="pygerrit", + description="Client library for interacting with Gerrit", + version=__version__, + license="The MIT License", + author="David Pursehouse", + author_email="david.pursehouse@sonymobile.com", + maintainer="David Pursehouse", + maintainer_email="david.pursehouse@sonymobile.com", + url="https://github.com/sonyxperiadev/pygerrit", + packages=['pygerrit'], + keywords='gerrit, json', + install_requires=requires, + ) + + +if __name__ == "__main__": + _main() -- cgit v1.2.1