[Zope-CVS] CVS: Packages/zpkgtools/zpkgtools/tests -
test_setup.py:1.2
Fred L. Drake, Jr.
fred at zope.com
Mon Jun 7 13:52:35 EDT 2004
Update of /cvs-repository/Packages/zpkgtools/zpkgtools/tests
In directory cvs.zope.org:/tmp/cvs-serv29647/zpkgtools/tests
Modified Files:
test_setup.py
Log Message:
do not install extension sources and public headers as package data
=== Packages/zpkgtools/zpkgtools/tests/test_setup.py 1.1 => 1.2 ===
--- Packages/zpkgtools/zpkgtools/tests/test_setup.py:1.1 Fri Jun 4 00:20:50 2004
+++ Packages/zpkgtools/zpkgtools/tests/test_setup.py Mon Jun 7 13:52:04 2004
@@ -42,6 +42,14 @@
finally:
os.unlink(publicationcfg)
+ def test_extension_sources_are_not_package_data(self):
+ packagedir = os.path.join(here, "input", "package2")
+ setupfile = os.path.join(here, "input", "setup.py")
+ context = setup.SetupContext("package2", "0.1.234", setupfile)
+ context.package_data["package2"].sort()
+ self.assertEqual(context.package_data,
+ {"package2": ["PUBLICATION.cfg", "SETUP.cfg"]})
+
def test_suite():
return unittest.makeSuite(SetupContextTestCase)
More information about the Zope-CVS
mailing list