Skip to content
This repository has been archived by the owner on Nov 3, 2019. It is now read-only.

Commit

Permalink
1.2.2 Release
Browse files Browse the repository at this point in the history
  • Loading branch information
scottphilip committed Aug 2, 2017
1 parent 85d782a commit 1775f1b
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,24 @@
import os
from setuptools import setup

VERSION = (1, 2)


def read(name):
with open(os.path.join(os.path.dirname(__file__), name)) as f:
return f.read()


def get_version_number():
parts = []
for v in VERSION:
parts.append(str(v))
if "TRAVIS_JOB_NUMBER" in os.environ:
job_number = os.environ["TRAVIS_JOB_NUMBER"]
parts.append(str(job_number).split(".")[0])
return ".".join(parts)


setup(
name='CallerLookup',
description='Reverse Caller Identity',
Expand All @@ -15,7 +27,7 @@ def read(name):
author='Scott Philip',
author_email='sp@scottphilip.com',
packages=['CallerLookup'],
version='1.2.3',
version=get_version_number(),
install_requires=read('REQUIREMENTS.txt').splitlines(),
test_suite='nose.collector',
tests_require=['nose'],
Expand Down

0 comments on commit 1775f1b

Please sign in to comment.