forked from Infinidat/munch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
46 lines (41 loc) · 1.46 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
46
import re
from os.path import dirname, abspath, join
from setuptools import setup, find_packages
HERE = abspath(dirname(__file__))
readme = open(join(HERE, 'README.md')).read()
package_file = open(join(HERE, 'munch', '__init__.py'), 'rU')
__version__ = re.sub(
r".*\b__version__\s+=\s+'([^']+)'.*",
r'\1',
[line.strip() for line in package_file if '__version__' in line].pop(0)
)
setup(
name="munch",
version=__version__,
description="A dot-accessible dictionary (a la JavaScript objects).",
url="http://github.com/Infinidat/munch",
author="Rotem Yaari",
author_email="[email protected]",
install_requires=[
'six',
],
packages=find_packages(exclude=["tests"]),
keywords=['munch', 'dict', 'mapping', 'container', 'collection'],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Programming Language :: Python',
"Programming Language :: Python :: 2.5",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
'Topic :: Software Development',
'Topic :: Software Development :: Libraries',
'Topic :: Utilities',
'License :: OSI Approved :: MIT License',
],
license='MIT',
)