forked from voronind/vk
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
executable file
·42 lines (33 loc) · 1.19 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
#!/usr/bin/env python
import os
import re
from setuptools import setup, find_packages
def get_version(file_rel_path):
base_dir = os.path.dirname(__file__)
file_abs_path = os.path.join(base_dir, file_rel_path)
with open(file_abs_path) as file_object:
file_content = file_object.read()
version = re.findall(r'^VERSION\s*=\s*[\'"](.+)[\'"]', file_content, re.MULTILINE)[0]
return version
setup(
name='vk',
version=get_version('vk/api.py'),
author='Dmitry Voronin',
author_email='[email protected]',
url='https://github.com/dimka665/vk',
description='vk.com API Python wrapper',
packages=find_packages(),
install_requires='requests>=2.8,<3.0',
license='MIT License',
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Topic :: Software Development :: Libraries :: Python Modules',
],
keywords='vk.com api vk wrappper',
)