forked from mixpanel/mixpanel-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
41 lines (36 loc) · 1.17 KB
/
setup.py
File metadata and controls
41 lines (36 loc) · 1.17 KB
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
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='dev@mixpanel.com',
license='Apache',
install_requires=[
'six >= 1.9.0',
'urllib3 >= 1.21.1',
],
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(),
)