Skip to content

Commit a825132

Browse files
committed
Merge branch 'wo0dyn-my-2-¢'
2 parents fa8b3de + 97b37f4 commit a825132

File tree

4 files changed

+14
-69
lines changed

4 files changed

+14
-69
lines changed

README.md

Lines changed: 0 additions & 62 deletions
This file was deleted.

README.txt renamed to README.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ How to
4040
- Use xmlunittest.XmlTestCase‘s assertion methods to validate
4141
- Keep your test readable
4242

43-
Example::
43+
Example:
44+
45+
.. code-block:: python
4446
4547
from xmlunittest import XmlTestCase
4648

setup.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,15 @@
88
- Source: https://github.com/Exirel/python-xmlunittest
99
1010
"""
11-
from distutils.core import setup
1211

12+
import codecs
13+
import os
1314

14-
with open('README.txt', encoding='utf-8') as fd:
15-
long_description = fd.read()
15+
from setuptools import setup
16+
17+
18+
def read(*parts):
19+
return codecs.open(os.path.join(os.path.dirname(__file__), *parts), encoding='utf-8').read()
1620

1721

1822
classifiers = [
@@ -29,10 +33,12 @@
2933
setup(name='xmlunittest',
3034
version='0.2.0',
3135
description='Library using lxml and unittest for unit testing XML.',
32-
long_description=long_description,
36+
long_description=read('README.rst'),
3337
author='Florian Strzelecki',
3438
author_email='[email protected]',
3539
license='MIT',
3640
url='http://python-xmlunittest.readthedocs.org/en/latest/',
3741
py_modules=['xmlunittest'],
42+
install_requires=['lxml>=3.3.6'],
3843
classifiers=classifiers)
44+

test.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
from __future__ import unicode_literals
44

55
import io
6+
import os
67
import unittest
78

89
from lxml import etree
910
from xmlunittest import XmlTestCase
10-
import os
1111

1212

1313
class TestXmlTestCase(unittest.TestCase):
@@ -884,5 +884,4 @@ def test_assertXmlEquivalentOutputs_namespaces(self):
884884

885885

886886
if __name__ == "__main__":
887-
#import sys;sys.argv = ['', 'Test.test_assertXmlDocument']
888887
unittest.main()

0 commit comments

Comments
 (0)