Products.validation/master: Remove unnecessary dependencies

Tom Gross <jenkins-z4DKO/[email protected]> Tue, 01 Aug 2017 02:10:39 -0700 (PDT)
Newsgroups gmane.comp.web.zope.plone.cvs
Message-ID <[email protected]>
Repository: Products.validation
Branch: refs/heads/master
Date: 2017-07-30T20:15:56Z
Author: Tom Gross (tomgross) <[email protected]>
Commit: https://github.com/plone/Products.validation/commit/d5fc6721a44a3ef1ca7cc50d000467e676dd0428

Remove unnecessary dependencies

Files changed:
M Products/validation/tests/test_validation.py
M Products/validation/validators/ExpressionValidator.py
M buildout.cfg
M setup.py
D setup.cfg

diff --git a/Products/validation/tests/test_validation.py b/Products/validation/tests/test_validation.py
index 61d18cc..c1561da 100644
--- a/Products/validation/tests/test_validation.py
+++ b/Products/validation/tests/test_validation.py
@@ -1,11 +1,9 @@
-
-from Testing import ZopeTestCase
-from Products.Archetypes.tests.atsitetestcase import ATSiteTestCase
-from Testing.ZopeTestCase import doctest
+import unittest
+import doctest
 
 from Products.validation import validation
 
-class TestValidation(ATSiteTestCase):
+class TestValidation(unittest.TestCase):
 
     def test_inNumericRange(self):
         v = validation.validatorFor('inNumericRange')
@@ -78,7 +76,6 @@ def test_isUnixLikeName(self):
     def test_isValidId(self):
         v = validation.validatorFor("isValidId")
         self.failUnlessEqual(v("a b", object()), u"Spaces are not allowed in ids")
-        # TODO: more tests require a site
 
 
 def test_suite():
diff --git a/Products/validation/validators/ExpressionValidator.py b/Products/validation/validators/ExpressionValidator.py
index ad45b45..ccf1d92 100644
--- a/Products/validation/validators/ExpressionValidator.py
+++ b/Products/validation/validators/ExpressionValidator.py
@@ -19,7 +19,6 @@
 #
 ##############################################################################
 """
-$Id: __init__.py,v 1.2 2005/02/26 17:56:10 sidnei Exp $
 """
 
 from Products.validation.interfaces.IValidator import IValidator
diff --git a/buildout.cfg b/buildout.cfg
index eb5b38d..36f0a41 100644
--- a/buildout.cfg
+++ b/buildout.cfg
@@ -1,8 +1,8 @@
 [buildout]
-extends = https://raw.githubusercontent.com/collective/buildout.plonetest/master/test-4.3.x.cfg
-package-name = Products.validation
-package-extras = [test]
+parts = test
+extends = https://raw.githubusercontent.com/zopefoundation/Zope/4.0a6/versions.cfg
 develop = .
 
-[versions]
-Products.validation = 
+[test]
+recipe = zc.recipe.testrunner
+eggs = Products.validation [test]
diff --git a/setup.cfg b/setup.cfg
deleted file mode 100644
index e116e38..0000000
--- a/setup.cfg
+++ /dev/null
@@ -1,3 +0,0 @@
-[check-manifest]
-ignore = bootstrap.py
-         .installed.cfg
diff --git a/setup.py b/setup.py
index f6acbd7..17434c0 100644
--- a/setup.py
+++ b/setup.py
@@ -27,11 +27,7 @@
     namespace_packages=['Products'],
     include_package_data=True,
     zip_safe=False,
-    extras_require=dict(
-        test=[
-            'Products.Archetypes[test]',
-        ]
-    ),
+    extras_require={},
     install_requires=[
         'setuptools',
         'zope.i18n',



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot