-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
executable file
·44 lines (39 loc) · 1.29 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
import re
import os
import sys
init_py = open('akamaiservice/__init__.py').read()
author = re.search("__author__ = ['\"]([^'\"]+)['\"]", init_py).group(1)
version = re.search("__version__ = ['\"]([^'\"]+)['\"]", init_py).group(1)
if sys.argv[-1] == 'publish':
os.system("python setup.py sdist upload")
print("You probably want to also tag the version now:")
print(" git tag -a %s -m 'version %s'" % (version, version))
print(" git push --tags")
sys.exit()
setup(
name='python-akamai-webservice',
version=version,
description="Python client for Akamai's web services.",
long_description=open('README.md').read(),
classifiers=[
"Development Status :: 2 - Pre-Alpha",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 2.7",
"Topic :: Software Development :: Libraries :: Python Modules",
],
keywords='akamai,webservice',
author=author,
author_email='[email protected]',
url='https://github.com/mobilerider/python-akamai-webservice',
license='MIT',
packages=[
'akamaiservice',
],
include_package_data=True,
install_requires=[],
zip_safe=False,
)