forked from mixpanel/mixpanel-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
38 lines (33 loc) · 1.13 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
from codecs import open
from os import path
import re
from setuptools import setup, find_packages
def read(*paths):
filename = path.join(path.abspath(path.dirname(__file__)), *paths)
with open(filename, encoding='utf-8') as f:
return f.read()
def find_version(*paths):
contents = read(*paths)
match = re.search(r'^__version__ = [\'"]([^\'"]+)[\'"]', contents, re.M)
if not match:
raise RuntimeError('Unable to find version string.')
return match.group(1)
setup(
name='mixpanel',
version=find_version('mixpanel', '__init__.py'),
description='Official Mixpanel library for Python',
long_description=read('README.rst'),
url='https://github.com/mixpanel/mixpanel-python',
author='Mixpanel, Inc.',
author_email='[email protected]',
license='Apache',
install_requires=['six >= 1.9.0'],
classifiers=[
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
],
keywords='mixpanel analytics',
packages=find_packages(),
)