[Python-modules-commits] [python-odf] 104/118: Update URLs for new repository.

Wolfgang Borgert debacle at moszumanska.debian.org
Fri Oct 3 21:27:29 UTC 2014


This is an automated email from the git hooks/post-receive script.

debacle pushed a commit to reference refs/remotes/upstream/master
in repository python-odf.

commit 8e551c8d96869622fee1d9a4cd52371c54c0ef17
Author: Søren Roug <soren.roug at eea.europa.eu>
Date:   Wed Dec 14 19:03:24 2011 +0000

    Update URLs for new repository.
---
 setup.py            | 8 +++++---
 tests/teststyles.py | 4 ++--
 tests/testxmlgen.py | 9 ++++++++-
 3 files changed, 15 insertions(+), 6 deletions(-)

diff --git a/setup.py b/setup.py
index c5a88b1..95cd74f 100644
--- a/setup.py
+++ b/setup.py
@@ -49,11 +49,13 @@ setup(name='odfpy',
         'Intended Audience :: End Users/Desktop',
         'Intended Audience :: Developers',
         'Intended Audience :: System Administrators',
+        'License :: OSI Approved :: Apache Software License',
         'License :: OSI Approved :: GNU General Public License (GPL)',
+        'License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)'
         'Operating System :: MacOS :: MacOS X',
         'Operating System :: Microsoft :: Windows',
         'Operating System :: POSIX',
-        'Programming Language :: Python',
+        'Programming Language :: Python :: 2 :: Only',
         'Topic :: Office/Business',
         'Topic :: Software Development :: Libraries :: Python Modules',
       ],
@@ -84,11 +86,11 @@ In addition to the API, there are a few scripts:
 - odfuserfield - List or change the user-field declarations in an ODF file
 - xml2odf - Create OD? package from OpenDocument in XML form
 
-Visit http://odfpy.forge.osor.eu/ for documentation and examples."""
+Visit https://joinup.ec.europa.eu/software/odfpy/home for documentation and examples."""
 ),
       author='Soren Roug',
       author_email='soren.roug at eea.europa.eu',
-      url='http://opendocumentfellowship.com/development/projects/odfpy',
+      url='https://joinup.ec.europa.eu/software/odfpy/home',
       packages=['odf'],
       scripts=[
           'csv2ods/csv2ods',
diff --git a/tests/teststyles.py b/tests/teststyles.py
index 8d0f23b..cade4e3 100644
--- a/tests/teststyles.py
+++ b/tests/teststyles.py
@@ -85,8 +85,8 @@ class TestQattributes(unittest.TestCase):
         textdoc.styles.addElement(standard)
         s = unicode(textdoc.stylesxml(),'UTF-8')
         s.index(u"""<?xml version='1.0' encoding='UTF-8'?>\n""")
-        s.index(u'xmlns:ns36="http://foreignuri.com"')
-        s.index(u'<style:paragraph-properties ns36:enable-numbering="true"/>')
+        s.index(u'xmlns:ns41="http://foreignuri.com"')
+        s.index(u'<style:paragraph-properties ns41:enable-numbering="true"/>')
         e = ElementParser(s,'style:style')
 #        e = ElementParser(u'<style:style style:name="Standard" style:display-name="Standard" style:family="paragraph">')
         self.assertEqual(e.element,'style:style')
diff --git a/tests/testxmlgen.py b/tests/testxmlgen.py
index d56ac0f..e0e1f9f 100644
--- a/tests/testxmlgen.py
+++ b/tests/testxmlgen.py
@@ -70,7 +70,14 @@ class TestXMLGenerator(unittest.TestCase):
 <a:greetings xmlns:a="http://example.com/ns">
   <a:greet xml:lang="en">Hello world</a:greet>
 </a:greetings>"""
-        self.assertRaises(KeyError, parser.feed, testcontent)
+        parser.feed(testcontent)
+        parser.close()
+        expectedresult="""<?xml version="1.0" encoding="utf-8"?>
+<a:greetings xmlns:a="http://example.com/ns">
+  <a:greet xml:lang="en">Hello world</a:greet>
+</a:greetings>"""
+        self.assertEqual( outfp.getvalue(), expectedresult)
+#       self.assertRaises(KeyError, parser.feed, testcontent)
 
     def test_myxml(self):
         """ Test that my patch works """

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-odf.git



More information about the Python-modules-commits mailing list