File: setup.py

package info (click to toggle)
python-munch 2.3.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 112 kB
  • sloc: python: 204; makefile: 4
file content (43 lines) | stat: -rw-r--r-- 1,346 bytes parent folder | download | duplicates (2)
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
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="vmalloc@gmail.com",
    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.7",
        "Programming Language :: Python :: 3.5",
        "Programming Language :: Python :: 3.6",
        'Topic :: Software Development',
        'Topic :: Software Development :: Libraries',
        'Topic :: Utilities',
        'License :: OSI Approved :: MIT License',
    ],
    license='MIT',
)