Skip to content

Commit

Permalink
added version.txt file to get version number
Browse files Browse the repository at this point in the history
  • Loading branch information
sumithemmadi committed Apr 22, 2022
1 parent 2d14842 commit 10841e5
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,4 @@
include README.md
include setup.cfg
include LICENSE
include truecallerpy/version.txt
6 changes: 4 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,11 @@

from setuptools import Command, find_packages, setup

version = "0.0.12"

this_dir = abspath(dirname(__file__))

with open(join(this_dir, "truecallerpy","version.txt"), encoding='utf-8') as versionFile:
version = versionFile.read()

with open(join(this_dir, 'README.md'), encoding='utf-8') as file:
long_description = file.read()

Expand Down
9 changes: 8 additions & 1 deletion truecallerpy/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,14 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
#====================================================================================
from codecs import open
from os.path import abspath, dirname, join

def truecallerpy_info():
version = "0.0.12"
this_dir = abspath(dirname(__file__))

with open(join(this_dir,"version.txt"), encoding='utf-8') as versionFile:
version = versionFile.read()
data = '''
truecallerpy
Version : {}
Expand All @@ -35,3 +40,5 @@ def truecallerpy_info():
License : MIT
'''.format(version)
return data

# print(truecallerpy_info())
1 change: 1 addition & 0 deletions truecallerpy/version.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.0.13

0 comments on commit 10841e5

Please sign in to comment.