-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathsetup.py
executable file
·50 lines (47 loc) · 1.72 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
48
49
50
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
from os.path import dirname, join
import os
import re
def read_file(name):
filename = join(dirname(__file__), name)
with open(filename) as fp:
return fp.read()
file_path = join(dirname(__file__), 'ox3apiclient', '__init__.py')
version = re.search("__version__\s*=\s*['\"](.+)['\"]",
open(file_path, 'r').read()).groups()[0]
setup(name='ox3apiclient',
version=version,
author='OpenX API Team',
author_email='[email protected]',
url='https://github.com/openx/OX3-Python-API-Client',
license='BSD',
platforms=['POSIX'],
description='Client to connect to the OpenX Enterprise API.',
long_description=read_file('README.md'),
long_description_content_type="text/markdown",
packages=find_packages(),
zip_safe=True,
install_requires=['six==1.16.0', 'requests_oauthlib==1.3.0'],
classifiers=[
'Environment :: Console',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: Implementation :: CPython',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries',
'Topic :: Software Development :: Libraries :: Python Modules',
],
test_suite='nose.collector',
tests_require=[
'nose==1.3.7',
'mock==2.0.0; python_version < "3.3"'
]
)