Update to 0.3.0

- Update WWW

Changes:	https://github.com/etingof/pysmi/releases
PR:		228380
Submitted by:	John W. O'Brien <john@saltant.com> (maintainer)
This commit is contained in:
Sunpoet Po-Chuan Hsieh 2018-05-20 19:19:28 +00:00
parent 84af718070
commit c33ac1f58c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=470482
5 changed files with 10 additions and 43 deletions

View File

@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= pysmi
PORTVERSION= 0.2.2
PORTVERSION= 0.3.0
CATEGORIES= net-mgmt python
MASTER_SITES= CHEESESHOP \
SF/pysmi/pysmi/${PORTVERSION}
@ -13,12 +13,13 @@ COMMENT= SNMP/SMI MIB parsing in Python
LICENSE= BSD2CLAUSE
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}snmp4>=0:net-mgmt/py-snmp4@${FLAVOR} \
${PYTHON_PKGNAMEPREFIX}ply>=0:devel/py-ply@${FLAVOR}
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}ply>=0:devel/py-ply@${FLAVOR}
NO_ARCH= yes
USES= python shebangfix
USES= python
USE_PYTHON= autoplist concurrent distutils
SHEBANG_FILES= scripts/mibdump.py
OPTIONS_DEFINE= DOCS EXAMPLES
@ -27,9 +28,8 @@ PORTEXAMPLES= *
BASEDOCS= CHANGES.rst README.md THANKS.txt TODO.txt
post-patch:
${CP} ${FILESDIR}/tests__init__.py ${WRKSRC}/tests/__init__.py
${MV} ${WRKSRC}/tests ${WRKSRC}/${PORTNAME}
post-build:
@(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test)
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}

View File

@ -1,3 +1,3 @@
TIMESTAMP = 1514129467
SHA256 (pysmi-0.2.2.tar.gz) = 2a315cc3e556b3428372b69da663a24d2f0df9e9ab075b022cb133855f25aef7
SIZE (pysmi-0.2.2.tar.gz) = 90568
TIMESTAMP = 1526841426
SHA256 (pysmi-0.3.0.tar.gz) = 87b464df6e68dedc28959f3d16b57d5138c8959c0af5cdea9747df26e20858fc
SIZE (pysmi-0.3.0.tar.gz) = 92850

View File

@ -1,13 +0,0 @@
--- setup.py.orig 2017-12-24 15:32:10 UTC
+++ setup.py
@@ -112,7 +112,9 @@ params.update({
'pysmi.parser',
'pysmi.codegen',
'pysmi.borrower',
- 'pysmi.writer'],
+ 'pysmi.writer',
+ 'pysmi.tests',
+ ],
'scripts': [os.path.join('scripts', 'mibdump.py')]
})

View File

@ -1,20 +0,0 @@
from unittest import SkipTest, TestSuite
def load_tests(*args, **kwargs):
import suite
return suite.suite
try:
from pysnmp.smi.builder import MibBuilder
except ImportError:
# python -m unittest pysmi.tests
def load_tests(*args, **kwars):
print("Skipping test suite: pysnmp is not installed")
return TestSuite()
# nosetests pysmi
def setup():
raise SkipTest("pysnmp is not installed")

View File

@ -1,3 +1,3 @@
Pure-Python implementation of SNMP/SMI MIB parsing and conversion library
WWW: http://pysmi.sourceforge.net/
WWW: http://snmplabs.com/pysmi/