forked from numberly/appnexus-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
45 lines (38 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
import os
import subprocess
import sys
from setuptools import setup
def get_version():
if not os.path.isdir(".git"):
sys.stderr.write("This does not appear to be a Git repository.")
return ""
return subprocess.check_output(["git", "describe", "--tags", "--always"],
universal_newlines=True)[:-1]
def get_description():
with open("README.rst") as file:
return file.read()
setup(
name="AppNexus-client",
version=get_version(),
license="MIT",
author="numberly",
author_email="[email protected]",
description="General purpose Python client for the AppNexus API",
long_description=get_description(),
url="https://github.com/numberly/appnexus-client",
download_url="https://github.com/numberly/appnexus-client/tags",
platforms="any",
packages=["appnexus"],
install_requires=["requests>=2.20.0",
"Thingy>=0.8.3"],
classifiers=[
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Topic :: Software Development :: Libraries :: Python Modules"
]
)