-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
47 lines (39 loc) · 1.52 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
47
#!python
# -*- coding: utf-8 -*-
import sys, os, re
from os.path import dirname, abspath, join
from setuptools import setup
HERE = abspath(dirname(__file__))
readme = open(join(HERE, 'README.rst')).read()
package_file = open(join(HERE, 'bunch/__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 = "bunch",
version = __version__,
description = "A dot-accessible dictionary (a la JavaScript objects)",
long_description = readme,
url = "http://github.com/dsc/bunch",
author = "David Schoonover",
author_email = "dsc@less.ly",
packages = ['bunch',],
keywords = ['bunch', '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",
'Topic :: Software Development',
'Topic :: Software Development :: Libraries',
'Topic :: Utilities',
'License :: OSI Approved :: MIT License',
],
# download_url = "http://pypi.python.org/packages/source/b/bunch/bunch-%s.tar.gz" % __version__,
license = 'MIT',
)