forked from scottphilip/caller-lookup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
47 lines (40 loc) · 1.36 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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',
long_description=read('README.rst'),
url='http://github.com/scottphilip/caller-lookup',
author='Scott Philip',
author_email='sp@scottphilip.com',
packages=['CallerLookup'],
version=get_version_number(),
install_requires=read('REQUIREMENTS.txt').splitlines(),
test_suite='nose.collector',
tests_require=['nose'],
license='GNU (v3) License',
keywords=['Reverse Caller Identity', 'TrueCaller'],
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6'
],
)