From 31d45be0bb7f5b29de0ae06b0be6271a19e810c4 Mon Sep 17 00:00:00 2001 From: urmi-21 Date: Mon, 20 Jan 2020 18:50:13 -0600 Subject: [PATCH] release1.2.2 --- MANIFEST.in | 4 +++- plncpro/{version.py => _version.py} | 4 ++-- setup.py | 19 ++++++++++--------- 3 files changed, 15 insertions(+), 12 deletions(-) rename plncpro/{version.py => _version.py} (80%) diff --git a/MANIFEST.in b/MANIFEST.in index 38721d0..ea2916a 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,2 +1,4 @@ include plncpro/lib/framefinder/framefinder -include plncpro/lib/framefinder/framefinder.model \ No newline at end of file +include plncpro/lib/framefinder/framefinder.model +include *.txt +include *.sh \ No newline at end of file diff --git a/plncpro/version.py b/plncpro/_version.py similarity index 80% rename from plncpro/version.py rename to plncpro/_version.py index 131fab3..357cceb 100644 --- a/plncpro/version.py +++ b/plncpro/_version.py @@ -5,5 +5,5 @@ @author: usingh """ - -__version__="1.2.0" \ No newline at end of file +#__version__="1.2.2" +1.2.2 \ No newline at end of file diff --git a/setup.py b/setup.py index 76b74de..dde2236 100644 --- a/setup.py +++ b/setup.py @@ -20,21 +20,22 @@ long_description = fh.read() #read version info -cwd =os.path.abspath(os.path.dirname("__file__")) -version = {} -with open(os.path.join(cwd, "plncpro", "version.py")) as fp: - exec(fp.read(), version) -version = version["__version__"] +#cwd =os.path.abspath(os.path.dirname("__file__")) +#version = {} +#with open(os.path.join(cwd, "plncpro", "version.py")) as fp: +# exec(fp.read(), version) +#version = version["__version__"] -if version is None: - print("Error: version is missing. Exiting...", file=sys.stderr) - sys.exit(1) +#if version is None: +# print("Error: version is missing. Exiting...", file=sys.stderr) +# sys.exit(1) setuptools.setup( name="plncpro", - version=version, + #version=version, + version=open("plncpro/_version.py").readlines()[-1].split()[-1].strip("\"'"), author="Urminder Singh", author_email="usingh@iastate.edu", description="PlncPRO (Plant Long Non-Coding rna Prediction by Random fOrests) is a program to classify coding (mRNAs) and long non-coding transcripts (lncRNAs).",