# HG changeset patch # User Jeff Hammel # Date 1330641856 28800 # Node ID 59368c0bbd8d8ba1ed17d7644ae5575f6a022402 # Parent 6a8071eab89ebf6487919d85420b7004627d3a91 * addition sdist tests * stub extracting the tarball diff -r 6a8071eab89e -r 59368c0bbd8d tests-require.txt --- a/tests-require.txt Thu Mar 01 14:33:50 2012 -0800 +++ b/tests-require.txt Thu Mar 01 14:44:16 2012 -0800 @@ -1,1 +1,2 @@ Paste +virtualenv diff -r 6a8071eab89e -r 59368c0bbd8d tests/doctest.txt --- a/tests/doctest.txt Thu Mar 01 14:33:50 2012 -0800 +++ b/tests/doctest.txt Thu Mar 01 14:44:16 2012 -0800 @@ -7,6 +7,7 @@ >>> import pkginfo >>> import shutil >>> import simpypi + >>> import tarfile >>> import tempfile >>> from paste.fixture import TestApp @@ -42,10 +43,15 @@ 'HelloWorld' >>> sdist.version '0.0' + >>> sdist.home_page + 'http://helloworld.example.com/' + >>> sdist.author + 'Jeff Hammel' Install the package and inspect the installation:: >>> tmpdir = tempfile.mkdtemp() + >>> archive = tarfile.TarFile.open(path) >>> shutil.rmtree(tmpdir) Upload the same package but with the wrong name::