From 2b144c8c46bd4af8ad29f08b91ad12468ebd63c4 Mon Sep 17 00:00:00 2001 From: jeanrjc Date: Fri, 11 Mar 2016 15:53:49 +0100 Subject: [PATCH] Set version number in setup.py --- setup.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/setup.py b/setup.py index 83b3275..e2bfc80 100644 --- a/setup.py +++ b/setup.py @@ -27,14 +27,14 @@ from distutils.util import get_platform, change_root, convert_path class check_and_build( build ): - + def run(self): chk = True for req in require_python: chk &= self.check_python(req) for req in require_packages: chk &= self.check_package(req) - if not chk: + if not chk: sys.exit(1) build.run(self) @@ -70,7 +70,7 @@ def check_package(self, req): class install_integron_finder(install): #I use record to store all installed files and reuse this record file for uninstall - #so this option is not available anymore for the users + #so this option is not available anymore for the users for i, opt in enumerate(install.user_options): if opt[0] == 'record=': install.user_options.pop(i) @@ -139,7 +139,7 @@ def finalize_options(self): ('force', 'force'), ) self.prefix_data = self.install_dir - self.files_2_install = self.distribution.data_files + self.files_2_install = self.distribution.data_files with open(self.distribution.uninstall_prefix, "a") as _f: _f.write('install_data = {}\n'.format(self.install_dir)) @@ -331,7 +331,7 @@ def subst_vars(src, dst, vars): 'matplotlib (>=1.4.2)'] setup(name='integron_finder', - version=time.strftime("%Y%m%d"), + version="Version 1.4", description="""Integron Finder aims at detecting integrons in DNA sequences by finding particular features of the integron: the attC sites, the integrase