diff options
-rw-r--r-- | mail/py-pyspf/Makefile | 4 | ||||
-rw-r--r-- | mail/py-pyspf/distinfo | 5 | ||||
-rw-r--r-- | mail/py-pyspf/files/patch-test_testspf.py | 24 | ||||
-rw-r--r-- | mail/py-pyspf/pkg-descr | 10 |
4 files changed, 21 insertions, 22 deletions
diff --git a/mail/py-pyspf/Makefile b/mail/py-pyspf/Makefile index 7575f26bd9f7..ba17c4efca71 100644 --- a/mail/py-pyspf/Makefile +++ b/mail/py-pyspf/Makefile @@ -2,9 +2,7 @@ # $FreeBSD$ PORTNAME= pyspf -PORTVERSION= 2.0.12 -DISTVERSIONSUFFIX= t -PORTREVISION= 5 +PORTVERSION= 2.0.13 CATEGORIES= mail python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} diff --git a/mail/py-pyspf/distinfo b/mail/py-pyspf/distinfo index 40019b93eee8..f7a269d177b2 100644 --- a/mail/py-pyspf/distinfo +++ b/mail/py-pyspf/distinfo @@ -1,2 +1,3 @@ -SHA256 (pyspf-2.0.12t.tar.gz) = 8aa21ba0e3aff8a4e8ad8f586c500a5d1f9c4c902c3f11bcc107465857cd41a2 -SIZE (pyspf-2.0.12t.tar.gz) = 67189 +TIMESTAMP = 1572806140 +SHA256 (pyspf-2.0.13.tar.gz) = 62dc1be39519e343202d480da7ef93d834b5a50cd4f217bef9335ed15292929b +SIZE (pyspf-2.0.13.tar.gz) = 65960 diff --git a/mail/py-pyspf/files/patch-test_testspf.py b/mail/py-pyspf/files/patch-test_testspf.py index 816b539f0ac4..b844193a802d 100644 --- a/mail/py-pyspf/files/patch-test_testspf.py +++ b/mail/py-pyspf/files/patch-test_testspf.py @@ -1,19 +1,19 @@ ---- test/testspf.py.orig 2015-01-12 22:47:56 UTC +--- test/testspf.py.orig 2019-08-31 02:49:19 UTC +++ test/testspf.py -@@ -221,9 +221,9 @@ def makeSuite(filename): +@@ -237,9 +237,9 @@ def docsuite(): - def suite(): - suite = unittest.makeSuite(SPFTestCases,'test') + def suite(skipdoc=False): + suite = docsuite() - suite.addTest(makeSuite('test.yml')) - suite.addTest(makeSuite('rfc7208-tests.yml')) - suite.addTest(makeSuite('rfc4408-tests.yml')) + suite.addTest(makeSuite('test/test.yml')) + suite.addTest(makeSuite('test/rfc7208-tests.yml')) + suite.addTest(makeSuite('test/rfc4408-tests.yml')) - import doctest - suite.addTest(doctest.DocTestSuite(spf)) return suite -@@ -237,9 +237,9 @@ if __name__ == '__main__': + + if __name__ == '__main__': +@@ -255,9 +255,9 @@ if __name__ == '__main__': # a specific test selected by id from YAML files if not tc: tc = unittest.TestSuite() @@ -26,12 +26,12 @@ if i in t0: tc.addTest(SPFTestCase(t0[i])) if i in t1: -@@ -248,7 +248,7 @@ if __name__ == '__main__': +@@ -266,7 +266,7 @@ if __name__ == '__main__': tc.addTest(SPFTestCase(t2[i])) if not tc: # load zonedata for doctests -- fp = open('doctest.yml','rb') -+ fp = open('test/doctest.yml','rb') - try: +- with open('doctest.yml','rb') as fp: ++ with open('test/doctest.yml','rb') as fp: zonedata = loadZone(next(yaml.safe_load_all(fp))) - finally: fp.close() + if doctest: + tc = docsuite() # doctests only diff --git a/mail/py-pyspf/pkg-descr b/mail/py-pyspf/pkg-descr index 5a424975265a..28f679623599 100644 --- a/mail/py-pyspf/pkg-descr +++ b/mail/py-pyspf/pkg-descr @@ -1,6 +1,6 @@ -The pyspf Python module has been released as version 2.0. pyspf 2.0 -was the first SPF implementation to fully conform to RFC 4408. This -release has also added IPv6 support. pyspf is the library behind -several of the open SPF project's SPF record testing tools. +The pyspf Python module has been released as version 2.0. pyspf 2.0 was the +first SPF implementation to fully conform to RFC 4408. This release has also +added IPv6 support. pyspf is the library behind several of the open SPF +project's SPF record testing tools. -WWW: https://pypi.org/project/pyspf/ +WWW: https://github.com/sdgathman/pyspf |