Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

rename to "magicsuper"; autosuper name was alread in sparse use

  • Loading branch information...
commit 992ef10eb3f01be77b9d3a7e8f01b2eaccd881a5 1 parent 0e0e2db
@rfk authored
View
6 ChangeLog.txt
@@ -1,4 +1,10 @@
+v0.2.0:
+
+ * renamed to "magicsuper"; the "autosuper" name is already used by e.g.
+ http://code.activestate.com/recipes/412856-autosuper-to-the-limit/
+ * added some more tests
+
v0.1.0:
* initial release; you might say *everything* has changed.
View
4 README.rst
@@ -1,6 +1,6 @@
-autosuper: backport the magical zero-argument super() to python2
+magicsuper: backport the magical zero-argument super() to python2
=================================================================
This is an (awful, hacky, wtf-were-you-thinking) attempt to port the magical
@@ -13,7 +13,7 @@ class and instance objects when you call super, like this:
def hello(self):
super(Hello,self).hello()
-Using autosuper, you can get the friendlier behaviour from python3 where it
+Using magicsuper, you can get the friendlier behaviour from python3 where it
just figures out the correct call at runtime:
class Hello(Base):
View
6 autosuper/__init__.py → magicsuper/__init__.py
@@ -1,6 +1,6 @@
"""
-autosuper: backport the magical zero-argument super() to python2
+magicsuper: backport the magical zero-argument super() to python2
=================================================================
This is an (awful, hacky, wtf-were-you-thinking) attempt to port the magical
@@ -13,7 +13,7 @@ class Hello(Base):
def hello(self):
super(Hello,self).hello()
-Using autosuper, you can get the friendlier behaviour from python3 where it
+Using magicsuper, you can get the friendlier behaviour from python3 where it
just figures out the correct call at runtime:
class Hello(Base):
@@ -33,7 +33,7 @@ def hello(self):
__ver_major__ = 0
-__ver_minor__ = 1
+__ver_minor__ = 2
__ver_patch__ = 0
__ver_sub__ = ""
__version__ = "%d.%d.%d%s" % (__ver_major__,__ver_minor__,__ver_patch__,__ver_sub__)
View
16 autosuper/tests.py → magicsuper/tests.py
@@ -1,13 +1,13 @@
"""
- autosuper.tests: testcases for autosuper module.
+ magicsuper.tests: testcases for magicsuper module.
"""
import os
import unittest
-import autosuper
+import magicsuper
class TestAutoSuperDocs(unittest.TestCase):
@@ -15,20 +15,20 @@ def test_readme_matches_docstring(self):
"""Ensure that the README is in sync with the docstring.
This test should always pass; if the README is out of sync it just
- updates it with the contents of autosuper.__doc__.
+ updates it with the contents of magicsuper.__doc__.
"""
dirname = os.path.dirname
readme = os.path.join(dirname(dirname(__file__)),"README.rst")
if not os.path.isfile(readme):
f = open(readme,"wb")
- f.write(autosuper.__doc__.encode())
+ f.write(magicsuper.__doc__.encode())
f.close()
else:
f = open(readme,"rb")
- if f.read() != autosuper.__doc__:
+ if f.read() != magicsuper.__doc__:
f.close()
f = open(readme,"wb")
- f.write(autosuper.__doc__.encode())
+ f.write(magicsuper.__doc__.encode())
f.close()
@@ -107,8 +107,8 @@ def calc(self,value):
return 3 * super().calc(value)
for cls in (Base,Sub1,Sub2,Diamond,):
obj = cls()
- self.assertSuperEquals(autosuper._builtin_super(cls),super(cls))
- self.assertSuperEquals(autosuper._builtin_super(cls,obj),
+ self.assertSuperEquals(magicsuper._builtin_super(cls),super(cls))
+ self.assertSuperEquals(magicsuper._builtin_super(cls,obj),
super(cls,obj))
View
12 setup.py
@@ -4,16 +4,16 @@
from distutils.core import setup
-import autosuper
+import magicsuper
-NAME = "autosuper"
-PACKAGES = ["autosuper"]
-VERSION = autosuper.__version__
+NAME = "magicsuper"
+PACKAGES = ["magicsuper"]
+VERSION = magicsuper.__version__
DESCRIPTION = "backport the magical zero-argument super() to python2"
-LONG_DESC = autosuper.__doc__
+LONG_DESC = magicsuper.__doc__
AUTHOR = "Ryan Kelly"
AUTHOR_EMAIL = "ryan@rfk.id.au"
-URL="http://github.com/rfk/autosuper"
+URL="http://github.com/rfk/magicsuper"
LICENSE = "MIT"
KEYWORDS = "super mro"
CLASSIFIERS = [
View
2  tox.ini
@@ -6,5 +6,5 @@ deps= coverage
nose
commands = coverage erase
coverage run {envbindir}/nosetests
- coverage report --include=*autosuper* --omit=*test*
+ coverage report --include=*magicsuper* --omit=*test*
Please sign in to comment.
Something went wrong with that request. Please try again.