Commits

Sebastian Wiesner committed 3a43dd5

Version 0.5 with Python 3 support

  • Participants
  • Parent commits 1fb8e21
  • Tags epydoc-0.5

Comments (0)

Files changed (5)

epydoc/CHANGES.rst

+0.5 (Jan 7, 2012)
+=================
+
+- Python 3 support
+- Require Sphinx 1.1 now
+
+
 0.4.1 (Aug 28, 2011)
 ====================
 
 # -*- coding: utf-8 -*-
-# Copyright (c) 2011, Sebastian Wiesner <lunaryorn@googlemail.com>
+# Copyright (c) 2011, 2012, Sebastian Wiesner <lunaryorn@googlemail.com>
 # All rights reserved.
 
 # Redistribution and use in source and binary forms, with or without
 
 setup(
     name='sphinxcontrib-epydoc',
-    version='0.4.1',
+    version='0.5',
     url='http://packages.python.org/sphinxcontrib-epydoc',
     download_url='http://pypi.python.org/pypi/sphinxcontrib-epydoc',
     license='BSD',
     platforms='any',
     packages=find_packages(),
     include_package_data=True,
-    install_requires=['Sphinx>=1.0'],
+    install_requires=['Sphinx>=1.1'],
     namespace_packages=['sphinxcontrib'],
+    use_2to3=True,
 )

epydoc/sphinxcontrib/epydoc.py

 # -*- coding: utf-8 -*-
-# Copyright (c) 2010, 2011, Sebastian Wiesner <lunaryorn@googlemail.com>
+# Copyright (c) 2010, 2011, 2012, Sebastian Wiesner <lunaryorn@googlemail.com>
 # All rights reserved.
 
 # Redistribution and use in source and binary forms, with or without
 """
 
 
+from __future__ import (print_function, division, unicode_literals,
+                        absolute_import)
+
 import re
 import posixpath
 
 def setup(app):
     app.require_sphinx('1.0')
     app.add_config_value('epydoc_mapping', {}, 'env')
-    app.connect('missing-reference', resolve_reference_to_epydoc)
+    app.connect(str('missing-reference'), resolve_reference_to_epydoc)

epydoc/test_epydoc.py

 #!/usr/bin/env python
 # -*- coding: utf-8 -*-
-# Copyright (c) 2011, Sebastian Wiesner <lunaryorn@googlemail.com>
+# Copyright (c) 2011, 2012, Sebastian Wiesner <lunaryorn@googlemail.com>
 # All rights reserved.
 
 # Redistribution and use in source and binary forms, with or without
 
 def pytest_generate_tests(metafunc):
     if metafunc.function == test_filename_for_object:
-        for objtype, testcases in FILENAME_TEST_CASES.iteritems():
-            for name, expected in testcases.iteritems():
+        for objtype, testcases in FILENAME_TEST_CASES.items():
+            for name, expected in testcases.items():
                 args = dict(objtype=objtype, name=name,
                             expected=expected)
                 testid = '%s "%s"' % (objtype, name)
 
 [testenv]
 deps=
+    sphinx>=1.1
     pytest
 commands=
     py.test {posargs:--junitxml={envname}-tests.xml}