Skip to content

Commit 7ef99aa

Browse files
committed
Forking bunch --> infi.bunch
1 parent 999659e commit 7ef99aa

File tree

7 files changed

+16
-14
lines changed

7 files changed

+16
-14
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
bunch
2-
=====
1+
infi.bunch
2+
==========
3+
4+
infi.bunch is a fork of David Schoonover's bunch package, providing similar functionality. 99% of the work was done by him, and the fork was made mainly for lack of responsiveness for fixes and maintenance on the original code.
35

46
Bunch is a dictionary that supports attribute-style access, a la JavaScript.
57

infi/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__import__('pkg_resources').declare_namespace(__name__)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
converted via Bunch.to/fromDict().
2424
"""
2525

26-
__version__ = '1.0.1'
26+
__version__ = '2.0.0'
2727
VERSION = tuple(map(int, __version__.split('.')))
2828

2929
__all__ = ('Bunch', 'bunchify','unbunchify',)

bunch/test.py renamed to infi/bunch/test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import sys
44

55
def test():
6-
import bunch
6+
from infi import bunch
77
import doctest
88
returned = doctest.testmod(bunch)
99
return returned.failed

setup.py

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
# -*- coding: utf-8 -*-
33
import sys, os, re
44
from os.path import dirname, abspath, join
5-
from setuptools import setup
5+
from setuptools import setup, find_packages
66

77

88
HERE = abspath(dirname(__file__))
99
readme = open(join(HERE, 'README.rst')).read()
1010

11-
package_file = open(join(HERE, 'bunch/__init__.py'), 'rU')
11+
package_file = open(join(HERE, 'infi', 'bunch', '__init__.py'), 'rU')
1212
__version__ = re.sub(
1313
r".*\b__version__\s+=\s+'([^']+)'.*",
1414
r'\1',
@@ -17,17 +17,17 @@
1717

1818

1919
setup(
20-
name = "bunch",
20+
name = "infi.bunch",
2121
version = __version__,
2222
description = "A dot-accessible dictionary (a la JavaScript objects)",
2323
long_description = readme,
24-
url = "http://github.com/dsc/bunch",
24+
url = "http://github.com/Infinidat/infi.bunch",
2525

26-
author = "David Schoonover",
27-
author_email = "[email protected]",
28-
29-
packages = ['bunch',],
26+
author = "Rotem Yaari",
27+
author_email = "[email protected]",
3028

29+
packages = find_packages(exclude=["tests"]),
30+
namespace_packages = ["infi"],
3131
keywords = ['bunch', 'dict', 'mapping', 'container', 'collection'],
3232
classifiers = [
3333
'Development Status :: 5 - Production/Stable',
@@ -42,6 +42,5 @@
4242
'Topic :: Utilities',
4343
'License :: OSI Approved :: MIT License',
4444
],
45-
# download_url = "http://pypi.python.org/packages/source/b/bunch/bunch-%s.tar.gz" % __version__,
4645
license = 'MIT',
4746
)

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ envlist = py26,py27,py32
33

44
[testenv]
55
commands=
6-
python bunch/test.py
6+
python infi/bunch/test.py
77

0 commit comments

Comments
 (0)